@pisell/materials 1.0.520 → 1.0.522
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/preview.js +7 -7
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +22 -54
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +23 -55
- package/es/components/dataSourceComponents/dataSourceForm/BaseForm.js +7 -7
- package/es/components/dataSourceComponents/dataSourceForm/utils.js +1 -1
- package/es/components/page-header/index.d.ts +14 -0
- package/es/components/page-header/index.js +36 -0
- package/es/components/page-header/index.less +45 -0
- package/es/components/pisellAvatar/index.js +1 -1
- package/es/components/pisellCustomCheckboxGroup/index.d.ts +2 -1
- package/es/components/pisellCustomCheckboxGroup/index.js +8 -61
- package/es/components/pisellImageCarousels/index.d.ts +1 -1
- package/es/components/pisellModal/components/PcModal/index.js +1 -1
- package/es/components/pisellText/components/Amount/index.js +1 -1
- package/es/components/pisellViewGrid/index.js +0 -41
- package/es/components/profileMenu/index.js +3 -3
- package/es/components/section-footers/index.d.ts +1 -0
- package/es/components/section-footers/index.js +3 -2
- package/es/components/table/Actions/component/ExportImport/utils/index.d.ts +9 -0
- package/es/components/table/Actions/component/ExportImport/utils/index.js +11 -0
- package/es/components/table/Header/index.js +8 -11
- package/es/components/walletCard/img/wallet_bg_black.png +0 -0
- package/es/components/walletCard/img/wallet_bg_white.png +0 -0
- package/es/components/walletCard/index.js +3 -3
- package/es/index.d.ts +1 -0
- package/es/index.js +2 -1
- package/lib/components/dataSourceComponents/dataSourceForm/BaseForm.js +10 -1
- package/lib/components/dataSourceComponents/dataSourceForm/utils.js +1 -1
- package/lib/components/page-header/index.d.ts +14 -0
- package/lib/components/page-header/index.js +63 -0
- package/lib/components/page-header/index.less +45 -0
- package/lib/components/pisellAvatar/index.js +1 -1
- package/lib/components/pisellCustomCheckboxGroup/index.d.ts +2 -1
- package/lib/components/pisellCustomCheckboxGroup/index.js +4 -27
- package/lib/components/pisellImageCarousels/index.d.ts +1 -1
- package/lib/components/pisellModal/components/PcModal/index.js +1 -1
- package/lib/components/pisellText/components/Amount/index.js +2 -2
- package/lib/components/pisellViewGrid/index.js +1 -40
- package/lib/components/profileMenu/index.js +3 -3
- package/lib/components/section-footers/index.d.ts +1 -0
- package/lib/components/section-footers/index.js +2 -2
- package/lib/components/table/Actions/component/ExportImport/utils/index.d.ts +9 -0
- package/lib/components/table/Actions/component/ExportImport/utils/index.js +31 -0
- package/lib/components/table/Header/index.js +11 -1
- package/lib/components/walletCard/img/wallet_bg_black.png +0 -0
- package/lib/components/walletCard/img/wallet_bg_white.png +0 -0
- package/lib/components/walletCard/index.js +3 -6
- package/lib/index.d.ts +1 -0
- package/lib/index.js +3 -0
- package/lowcode/page-header/meta.ts +67 -123
- package/package.json +1 -1
- /package/{es/components/walletCard/img/light.png → build/lowcode/assets/6fc685dd528aab5ce3c42c88eaec2905.png} +0 -0
- /package/{es/components/walletCard/img/drak.png → build/lowcode/assets/7116b3b05dcdff1d0dd3116cd1c96995.png} +0 -0
- /package/{lib/components/walletCard/img/light.png → build/lowcode/render/default/assets/6fc685dd528aab5ce3c42c88eaec2905.png} +0 -0
- /package/{lib/components/walletCard/img/drak.png → build/lowcode/render/default/assets/7116b3b05dcdff1d0dd3116cd1c96995.png} +0 -0
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
.pisell-lowcode-page-header-wrap {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
gap: 4px;
|
|
5
|
+
margin-bottom: 16px;
|
|
6
|
+
.pisell-lowcode-page-header {
|
|
7
|
+
display: flex;
|
|
8
|
+
align-items: center;
|
|
9
|
+
justify-content: space-between;
|
|
10
|
+
width: 100%;
|
|
11
|
+
|
|
12
|
+
.pisell-lowcode-page-header-left {
|
|
13
|
+
display: flex;
|
|
14
|
+
flex-direction: column;
|
|
15
|
+
gap: 4px;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.pisell-lowcode-page-header-title {
|
|
19
|
+
color: var(--Colors-Neutral-Text-colorText, rgba(0, 0, 0, 0.88));
|
|
20
|
+
font-size: var(--Typography-Font-Size-fontSizeHeading4, 20px);
|
|
21
|
+
font-weight: var(--Typography-Font-Weight-fontWeightStrong, 700);
|
|
22
|
+
line-height: var(
|
|
23
|
+
--Typography-Line-Height-lineHeightHeading4,
|
|
24
|
+
28px
|
|
25
|
+
);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.pisell-lowcode-page-header-extra {
|
|
29
|
+
display: flex;
|
|
30
|
+
align-items: center;
|
|
31
|
+
gap: 8px;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
.pisell-lowcode-page-header-sub-title {
|
|
35
|
+
color: var(--Colors-Neutral-Text-colorTextSecondary, rgba(0, 0, 0, 0.65));
|
|
36
|
+
font-size: var(--Typography-Font-Size-fontSize, 14px);
|
|
37
|
+
font-style: normal;
|
|
38
|
+
font-weight: var(--Typography-Font-Weight-fontWeightNormal, 400);
|
|
39
|
+
line-height: var(--Typography-Line-Height-lineHeight, 22px);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.pisell-lowcode-page-header-divider {
|
|
43
|
+
margin: 16px 0 0;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
@@ -80,7 +80,7 @@ var PisellAvatar = ({
|
|
|
80
80
|
...style,
|
|
81
81
|
width: sizeMap[size],
|
|
82
82
|
height: sizeMap[size],
|
|
83
|
-
fontSize:
|
|
83
|
+
fontSize: fontSizeMap[size],
|
|
84
84
|
lineHeight: `${sizeMap[size]}px`,
|
|
85
85
|
borderRadius: shape === "square" ? `${borderRadius}px` : "50%"
|
|
86
86
|
};
|
|
@@ -6,8 +6,9 @@ export interface PisellCustomCheckboxGroupProps {
|
|
|
6
6
|
allowAdd?: boolean;
|
|
7
7
|
isMultiple?: boolean;
|
|
8
8
|
id?: string | string[];
|
|
9
|
-
|
|
9
|
+
onClick?: (value: any) => void;
|
|
10
10
|
onAdd?: () => void;
|
|
11
|
+
renderAddItem?: (item: any) => React.ReactNode;
|
|
11
12
|
[key: string]: any;
|
|
12
13
|
className?: string;
|
|
13
14
|
}
|
|
@@ -40,6 +40,8 @@ var PisellCustomCheckboxGroup = ({
|
|
|
40
40
|
dataSource = [],
|
|
41
41
|
allowAdd = false,
|
|
42
42
|
onAdd,
|
|
43
|
+
onClick,
|
|
44
|
+
renderAddItem,
|
|
43
45
|
disabled = false,
|
|
44
46
|
isMultiple = false,
|
|
45
47
|
value,
|
|
@@ -47,37 +49,12 @@ var PisellCustomCheckboxGroup = ({
|
|
|
47
49
|
className,
|
|
48
50
|
...rest
|
|
49
51
|
}) => {
|
|
50
|
-
const [selectedValues, setSelectedValues] = (0, import_react.useState)(
|
|
51
|
-
Array.isArray(value) ? value : value ? [value] : []
|
|
52
|
-
);
|
|
53
52
|
const finalDataSource = (0, import_react.useMemo)(() => {
|
|
54
|
-
return allowAdd ? [{ id: 0, text: "
|
|
53
|
+
return allowAdd ? [{ id: 0, text: "+", isAddCard: true }, ...dataSource] : dataSource;
|
|
55
54
|
}, [allowAdd, dataSource]);
|
|
56
|
-
const handleItemClick = (item) => {
|
|
57
|
-
if (disabled)
|
|
58
|
-
return;
|
|
59
|
-
const value2 = item == null ? void 0 : item.id;
|
|
60
|
-
let newValues;
|
|
61
|
-
if (!isMultiple) {
|
|
62
|
-
newValues = [value2];
|
|
63
|
-
} else {
|
|
64
|
-
if (selectedValues.includes(value2)) {
|
|
65
|
-
newValues = selectedValues.filter((v) => v !== id);
|
|
66
|
-
} else {
|
|
67
|
-
newValues = [...selectedValues, value2];
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
setSelectedValues(newValues);
|
|
71
|
-
onChange == null ? void 0 : onChange(!isMultiple ? newValues[0] : newValues);
|
|
72
|
-
};
|
|
73
55
|
const renderGridItem = (item, index) => {
|
|
74
56
|
var _a;
|
|
75
|
-
|
|
76
|
-
if (selectedValues) {
|
|
77
|
-
const selected = selectedValues.includes(item == null ? void 0 : item.id);
|
|
78
|
-
obj = { ...item, disabled, selected };
|
|
79
|
-
}
|
|
80
|
-
return /* @__PURE__ */ import_react.default.createElement("div", { onClick: () => (item == null ? void 0 : item.isAddCard) ? onAdd : handleItemClick(item) }, (_a = rest == null ? void 0 : rest.renderItem) == null ? void 0 : _a.call(rest, obj, index));
|
|
57
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { onClick: () => onClick(item) }, (item == null ? void 0 : item.isAddCard) && renderAddItem ? renderAddItem(item) : (_a = rest == null ? void 0 : rest.renderItem) == null ? void 0 : _a.call(rest, item, index));
|
|
81
58
|
};
|
|
82
59
|
return /* @__PURE__ */ import_react.default.createElement(
|
|
83
60
|
import_pisellViewGrid.default,
|
|
@@ -37,7 +37,7 @@ var import_antd = require("antd");
|
|
|
37
37
|
var import_classnames = __toESM(require("classnames"));
|
|
38
38
|
var import_utils = require("@pisell/utils");
|
|
39
39
|
var import_XClose = __toESM(require("@pisell/icon/es/XClose"));
|
|
40
|
-
var import_Delete_wght300_24px = __toESM(require("@pisell/icon/
|
|
40
|
+
var import_Delete_wght300_24px = __toESM(require("@pisell/icon/es/Delete_wght300_24px"));
|
|
41
41
|
var import_modal = __toESM(require("../../../modal"));
|
|
42
42
|
var import_constants = require("../../constants");
|
|
43
43
|
var import_index = require("./index.less");
|
|
@@ -33,7 +33,7 @@ __export(Amount_exports, {
|
|
|
33
33
|
});
|
|
34
34
|
module.exports = __toCommonJS(Amount_exports);
|
|
35
35
|
var import_react = __toESM(require("react"));
|
|
36
|
-
var
|
|
36
|
+
var import_utils = require("@pisell/utils");
|
|
37
37
|
var import_usePisellConfig = __toESM(require("../../../pisell-config-provider/hooks/usePisellConfig"));
|
|
38
38
|
var Amount = (props) => {
|
|
39
39
|
const {
|
|
@@ -46,7 +46,7 @@ var Amount = (props) => {
|
|
|
46
46
|
} = props;
|
|
47
47
|
const config = (0, import_usePisellConfig.default)();
|
|
48
48
|
const amount = (0, import_react.useMemo)(() => {
|
|
49
|
-
return (0,
|
|
49
|
+
return (0, import_utils.formatAmountWithOptions)(value, (config == null ? void 0 : config.symbol) || "", {
|
|
50
50
|
precision,
|
|
51
51
|
showCurrencySymbol,
|
|
52
52
|
useThousandsSeparator,
|
|
@@ -55,38 +55,6 @@ var PisellViewGrid = ({
|
|
|
55
55
|
},
|
|
56
56
|
className
|
|
57
57
|
);
|
|
58
|
-
const containerStyle = {
|
|
59
|
-
...style,
|
|
60
|
-
display: "flex",
|
|
61
|
-
flexWrap: singleRow ? "nowrap" : "wrap",
|
|
62
|
-
margin: 0,
|
|
63
|
-
// 移除外边距
|
|
64
|
-
padding: 0,
|
|
65
|
-
// 移除内边距
|
|
66
|
-
overflowX: singleRow ? "auto" : "visible",
|
|
67
|
-
// position: 'relative' as const,
|
|
68
|
-
width: "100%",
|
|
69
|
-
height: "100%"
|
|
70
|
-
// 确保填充父容器
|
|
71
|
-
};
|
|
72
|
-
const renderGridItems = () => {
|
|
73
|
-
const items = (dataSource == null ? void 0 : dataSource.length) ? dataSource : import_react.default.Children.toArray(children);
|
|
74
|
-
return items.map((item, index) => /* @__PURE__ */ import_react.default.createElement(
|
|
75
|
-
"div",
|
|
76
|
-
{
|
|
77
|
-
key: index,
|
|
78
|
-
className: "pisell-view-grid-item",
|
|
79
|
-
style: {
|
|
80
|
-
width: `calc(${100 / columns}% - ${horizontalGap}px)`,
|
|
81
|
-
// 修正宽度计算
|
|
82
|
-
marginRight: (index + 1) % columns === 0 ? 0 : horizontalGap,
|
|
83
|
-
marginBottom: singleRow ? 0 : verticalGap,
|
|
84
|
-
flexShrink: 0
|
|
85
|
-
}
|
|
86
|
-
},
|
|
87
|
-
(dataSource == null ? void 0 : dataSource.length) ? renderItem == null ? void 0 : renderItem(item, index) : index
|
|
88
|
-
));
|
|
89
|
-
};
|
|
90
58
|
return /* @__PURE__ */ import_react.default.createElement(import_pisellLoading.default, { loading, fullscreen: false, style: { width: "100%" } }, /* @__PURE__ */ import_react.default.createElement("div", { className: classes, style }, /* @__PURE__ */ import_react.default.createElement(
|
|
91
59
|
"div",
|
|
92
60
|
{
|
|
@@ -100,14 +68,7 @@ var PisellViewGrid = ({
|
|
|
100
68
|
overflowX: "auto"
|
|
101
69
|
}
|
|
102
70
|
},
|
|
103
|
-
dataSource.map((item, index) => /* @__PURE__ */ import_react.default.createElement(
|
|
104
|
-
"div",
|
|
105
|
-
{
|
|
106
|
-
key: index,
|
|
107
|
-
className: "pisell-view-grid-item"
|
|
108
|
-
},
|
|
109
|
-
renderItem == null ? void 0 : renderItem(item, index)
|
|
110
|
-
))
|
|
71
|
+
dataSource.map((item, index) => /* @__PURE__ */ import_react.default.createElement("div", { key: index, className: "pisell-view-grid-item" }, renderItem == null ? void 0 : renderItem(item, index)))
|
|
111
72
|
)));
|
|
112
73
|
};
|
|
113
74
|
var pisellViewGrid_default = PisellViewGrid;
|
|
@@ -42,9 +42,9 @@ var ProfileMenu = ({
|
|
|
42
42
|
menuIcon,
|
|
43
43
|
userName = "",
|
|
44
44
|
email = "",
|
|
45
|
-
isShowUserName =
|
|
46
|
-
isShowEmail =
|
|
47
|
-
isShowUserInfo =
|
|
45
|
+
isShowUserName = true,
|
|
46
|
+
isShowEmail = true,
|
|
47
|
+
isShowUserInfo = true,
|
|
48
48
|
onClick,
|
|
49
49
|
avatar,
|
|
50
50
|
className,
|
|
@@ -28,13 +28,13 @@ var SectionFooters = (props) => {
|
|
|
28
28
|
(0, import_react.useEffect)(() => {
|
|
29
29
|
document.body.id = "body";
|
|
30
30
|
}, []);
|
|
31
|
-
const { left, middle, right } = props;
|
|
31
|
+
const { left, middle, right, className } = props;
|
|
32
32
|
return /* @__PURE__ */ React.createElement(
|
|
33
33
|
import_antd.Flex,
|
|
34
34
|
{
|
|
35
35
|
gap: "middle",
|
|
36
36
|
justify: "space-between",
|
|
37
|
-
className:
|
|
37
|
+
className: `pisell-section-footers-wrapper ${className}`
|
|
38
38
|
},
|
|
39
39
|
left,
|
|
40
40
|
middle,
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// src/components/table/Actions/component/ExportImport/utils/index.ts
|
|
20
|
+
var utils_exports = {};
|
|
21
|
+
__export(utils_exports, {
|
|
22
|
+
formatApiUrl: () => formatApiUrl
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(utils_exports);
|
|
25
|
+
var formatApiUrl = (url) => {
|
|
26
|
+
return url || "/shop/form/data";
|
|
27
|
+
};
|
|
28
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
29
|
+
0 && (module.exports = {
|
|
30
|
+
formatApiUrl
|
|
31
|
+
});
|
|
@@ -34,6 +34,7 @@ __export(Header_exports, {
|
|
|
34
34
|
module.exports = __toCommonJS(Header_exports);
|
|
35
35
|
var import_react = __toESM(require("react"));
|
|
36
36
|
var import_utils = require("@pisell/utils");
|
|
37
|
+
var import_page_header = __toESM(require("../../page-header"));
|
|
37
38
|
var import_Buttons = __toESM(require("./Buttons"));
|
|
38
39
|
var import_index = require("./index.less");
|
|
39
40
|
var Header = ({
|
|
@@ -64,6 +65,15 @@ var Header = ({
|
|
|
64
65
|
}
|
|
65
66
|
return subTitle;
|
|
66
67
|
}, [subTitle]);
|
|
67
|
-
return showHeader ? /* @__PURE__ */ import_react.default.createElement(
|
|
68
|
+
return showHeader ? /* @__PURE__ */ import_react.default.createElement(
|
|
69
|
+
import_page_header.default,
|
|
70
|
+
{
|
|
71
|
+
title: titleNode,
|
|
72
|
+
showTitle,
|
|
73
|
+
subTitle: subTitleNode,
|
|
74
|
+
showSubTitle,
|
|
75
|
+
extra: buttonsNode
|
|
76
|
+
}
|
|
77
|
+
) : null;
|
|
68
78
|
};
|
|
69
79
|
var Header_default = Header;
|
|
Binary file
|
|
Binary file
|
|
@@ -34,16 +34,16 @@ __export(walletCard_exports, {
|
|
|
34
34
|
module.exports = __toCommonJS(walletCard_exports);
|
|
35
35
|
var import_react = __toESM(require("react"));
|
|
36
36
|
var import_antd = require("antd");
|
|
37
|
-
var import_configs = __toESM(require("./../../../../../application/admin/src/configs"));
|
|
38
37
|
var import_iconfont = __toESM(require("./../iconfont"));
|
|
39
38
|
var import_useEngineContext = __toESM(require("../../hooks/useEngineContext"));
|
|
40
39
|
var import_react_barcode = __toESM(require("react-barcode"));
|
|
41
|
-
var import_utils = require("@pisell/utils");
|
|
42
40
|
var import_Amount = __toESM(require("./../pisellText/components/Amount"));
|
|
43
41
|
var import_index = require("./index.less");
|
|
44
42
|
var import_pisellModal = __toESM(require("./../pisellModal"));
|
|
45
43
|
var import_classnames = __toESM(require("classnames"));
|
|
46
44
|
var import_locales = require("../../locales/index");
|
|
45
|
+
var import_wallet_bg_black = __toESM(require("./img/wallet_bg_black.png"));
|
|
46
|
+
var import_wallet_bg_white = __toESM(require("./img/wallet_bg_white.png"));
|
|
47
47
|
var WalletCard = (props) => {
|
|
48
48
|
var _a;
|
|
49
49
|
const {
|
|
@@ -105,10 +105,7 @@ var WalletCard = (props) => {
|
|
|
105
105
|
vertical: true,
|
|
106
106
|
className: (0, import_classnames.default)("pisell-wallet-card-content", mode),
|
|
107
107
|
style: {
|
|
108
|
-
backgroundImage: `url(
|
|
109
|
-
`${import_configs.default.static}/static/${mode === "dark" ? "wallet_bg_black" : "wallet_bg_white"}.jpeg`,
|
|
110
|
-
360
|
|
111
|
-
)}')`
|
|
108
|
+
backgroundImage: `url(${mode === "dark" ? import_wallet_bg_black.default : import_wallet_bg_white.default})`
|
|
112
109
|
}
|
|
113
110
|
},
|
|
114
111
|
/* @__PURE__ */ import_react.default.createElement(
|
package/lib/index.d.ts
CHANGED
|
@@ -151,3 +151,4 @@ export { default as PisellSectionHeaders } from './components/pisellSectionHeade
|
|
|
151
151
|
export { default as PisellImageCarousels } from './components/pisellImageCarousels';
|
|
152
152
|
export { default as PisellHeaderProgressBar } from './components/pisellHeaderProgressBar';
|
|
153
153
|
export { default as PisellList01 } from './components/pisellList01';
|
|
154
|
+
export { default as PageHeader } from './components/page-header';
|
package/lib/index.js
CHANGED
|
@@ -96,6 +96,7 @@ __export(src_exports, {
|
|
|
96
96
|
Menu: () => import_antd16.Menu,
|
|
97
97
|
Modal: () => import_modal.default,
|
|
98
98
|
Page: () => import_page.default,
|
|
99
|
+
PageHeader: () => import_page_header.default,
|
|
99
100
|
Pagination: () => import_antd20.Pagination,
|
|
100
101
|
PickerView: () => import_picker_view.default,
|
|
101
102
|
PisellAdjustPrice: () => import_pisellAdjustPrice.default,
|
|
@@ -338,6 +339,7 @@ var import_pisellSectionHeaders = __toESM(require("./components/pisellSectionHea
|
|
|
338
339
|
var import_pisellImageCarousels = __toESM(require("./components/pisellImageCarousels"));
|
|
339
340
|
var import_pisellHeaderProgressBar = __toESM(require("./components/pisellHeaderProgressBar"));
|
|
340
341
|
var import_pisellList01 = __toESM(require("./components/pisellList01"));
|
|
342
|
+
var import_page_header = __toESM(require("./components/page-header"));
|
|
341
343
|
// Annotate the CommonJS export names for ESM import in node:
|
|
342
344
|
0 && (module.exports = {
|
|
343
345
|
Affix,
|
|
@@ -407,6 +409,7 @@ var import_pisellList01 = __toESM(require("./components/pisellList01"));
|
|
|
407
409
|
Menu,
|
|
408
410
|
Modal,
|
|
409
411
|
Page,
|
|
412
|
+
PageHeader,
|
|
410
413
|
Pagination,
|
|
411
414
|
PickerView,
|
|
412
415
|
PisellAdjustPrice,
|
|
@@ -5,153 +5,97 @@ export default {
|
|
|
5
5
|
componentName: 'PageHeader',
|
|
6
6
|
title: '页头',
|
|
7
7
|
category: '导航',
|
|
8
|
-
docUrl:
|
|
9
|
-
screenshot:
|
|
10
|
-
devMode:
|
|
8
|
+
docUrl: '',
|
|
9
|
+
screenshot: '',
|
|
10
|
+
devMode: 'proCode',
|
|
11
11
|
npm: {
|
|
12
|
-
package:
|
|
13
|
-
version:
|
|
14
|
-
exportName:
|
|
15
|
-
main:
|
|
12
|
+
package: '@pisell/materials',
|
|
13
|
+
version: '1.0.1',
|
|
14
|
+
exportName: 'PageHeader',
|
|
15
|
+
main: 'src/index.tsx',
|
|
16
16
|
destructuring: true,
|
|
17
|
-
subName:
|
|
17
|
+
subName: '',
|
|
18
18
|
},
|
|
19
19
|
props: [
|
|
20
20
|
{
|
|
21
21
|
name: 'title',
|
|
22
|
-
title: {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
22
|
+
title: {
|
|
23
|
+
label: {
|
|
24
|
+
type: 'i18n',
|
|
25
|
+
'zh-CN': '标题',
|
|
26
|
+
'en-US': 'Title',
|
|
27
|
+
'zh-HK': '標題',
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
setter: ['PisellI18nSetter', 'SlotSetter'],
|
|
29
31
|
},
|
|
30
32
|
{
|
|
31
|
-
name: '
|
|
32
|
-
title: {
|
|
33
|
-
|
|
33
|
+
name: 'showTitle',
|
|
34
|
+
title: {
|
|
35
|
+
label: {
|
|
36
|
+
type: 'i18n',
|
|
37
|
+
'zh-CN': '是否显示标题',
|
|
38
|
+
'en-US': 'Show Title',
|
|
39
|
+
'zh-HK': '是否顯示標題',
|
|
40
|
+
},
|
|
41
|
+
},
|
|
34
42
|
defaultValue: true,
|
|
35
|
-
|
|
36
|
-
// {
|
|
37
|
-
// name: 'backIcon',
|
|
38
|
-
// title: {
|
|
39
|
-
// label: '返回按钮',
|
|
40
|
-
// tip: '自定义 back icon ,如果为 false 不渲染 back icon',
|
|
41
|
-
// },
|
|
42
|
-
// propType: { type: 'oneOfType', value: ['node', 'bool'] },
|
|
43
|
-
// },
|
|
44
|
-
{
|
|
45
|
-
name: 'tags',
|
|
46
|
-
title: { label: 'tag 列表', tip: 'title 旁的 tag 列表' },
|
|
47
|
-
propType: 'node',
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
name: 'extra',
|
|
51
|
-
title: { label: '操作区', tip: '操作区,位于 title 行的行尾' },
|
|
52
|
-
propType: 'node',
|
|
43
|
+
setter: 'BoolSetter',
|
|
53
44
|
},
|
|
54
45
|
{
|
|
55
|
-
name: '
|
|
56
|
-
title: {
|
|
57
|
-
|
|
46
|
+
name: 'subTitle',
|
|
47
|
+
title: {
|
|
48
|
+
label: {
|
|
49
|
+
type: 'i18n',
|
|
50
|
+
'zh-CN': '副标题',
|
|
51
|
+
'en-US': 'Sub Title',
|
|
52
|
+
'zh-HK': '副標題',
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
setter: ['PisellI18nSetter', 'SlotSetter'],
|
|
58
56
|
},
|
|
59
57
|
{
|
|
60
|
-
name: '
|
|
61
|
-
title: {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
props: {
|
|
68
|
-
config: {
|
|
69
|
-
items: [
|
|
70
|
-
{
|
|
71
|
-
name: 'src',
|
|
72
|
-
title: { label: '地址', tip: '头像地址' },
|
|
73
|
-
setter: {
|
|
74
|
-
componentName: 'StringSetter',
|
|
75
|
-
},
|
|
76
|
-
},
|
|
77
|
-
],
|
|
78
|
-
},
|
|
79
|
-
},
|
|
58
|
+
name: 'showSubTitle',
|
|
59
|
+
title: {
|
|
60
|
+
label: {
|
|
61
|
+
type: 'i18n',
|
|
62
|
+
'zh-CN': '是否显示副标题',
|
|
63
|
+
'en-US': 'Show Sub Title',
|
|
64
|
+
'zh-HK': '是否顯示副標題',
|
|
80
65
|
},
|
|
81
|
-
|
|
82
|
-
|
|
66
|
+
},
|
|
67
|
+
defaultValue: true,
|
|
68
|
+
setter: 'BoolSetter',
|
|
83
69
|
},
|
|
84
70
|
{
|
|
85
|
-
name: '
|
|
86
|
-
title: {
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
props: {
|
|
93
|
-
config: {
|
|
94
|
-
items: [
|
|
95
|
-
{
|
|
96
|
-
name: 'routes',
|
|
97
|
-
title: { label: '路由栈信息', tip: '路由栈信息' },
|
|
98
|
-
setter: {
|
|
99
|
-
componentName: 'ArraySetter',
|
|
100
|
-
props: {
|
|
101
|
-
itemSetter: {
|
|
102
|
-
componentName: 'ObjectSetter',
|
|
103
|
-
initialValue: {
|
|
104
|
-
path: 'path',
|
|
105
|
-
breadcrumbName: 'pathName',
|
|
106
|
-
},
|
|
107
|
-
isRequired: true,
|
|
108
|
-
props: {
|
|
109
|
-
config: {
|
|
110
|
-
items: [
|
|
111
|
-
{
|
|
112
|
-
name: 'path',
|
|
113
|
-
defaultValue: 'path',
|
|
114
|
-
title: { label: '路径', tip: 'path | 路径' },
|
|
115
|
-
setter: 'StringSetter',
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
name: 'breadcrumbName',
|
|
119
|
-
defaultValue: 'pathName',
|
|
120
|
-
title: {
|
|
121
|
-
label: '名称',
|
|
122
|
-
tip: 'breadcrumbName | 名称',
|
|
123
|
-
},
|
|
124
|
-
setter: 'StringSetter',
|
|
125
|
-
},
|
|
126
|
-
],
|
|
127
|
-
},
|
|
128
|
-
},
|
|
129
|
-
},
|
|
130
|
-
},
|
|
131
|
-
},
|
|
132
|
-
},
|
|
133
|
-
],
|
|
134
|
-
},
|
|
135
|
-
},
|
|
71
|
+
name: 'showDivider',
|
|
72
|
+
title: {
|
|
73
|
+
label: {
|
|
74
|
+
type: 'i18n',
|
|
75
|
+
'zh-CN': '是否显示分割线',
|
|
76
|
+
'en-US': 'Show Divider',
|
|
77
|
+
'zh-HK': '是否顯示分割線',
|
|
136
78
|
},
|
|
137
|
-
|
|
138
|
-
|
|
79
|
+
},
|
|
80
|
+
setter: 'BoolSetter',
|
|
139
81
|
},
|
|
140
82
|
{
|
|
141
|
-
name: '
|
|
142
|
-
title: {
|
|
143
|
-
|
|
83
|
+
name: 'extra',
|
|
84
|
+
title: {
|
|
85
|
+
label: {
|
|
86
|
+
type: 'i18n',
|
|
87
|
+
'zh-CN': '额外内容',
|
|
88
|
+
'en-US': 'Extra',
|
|
89
|
+
'zh-HK': '額外內容',
|
|
90
|
+
},
|
|
91
|
+
},
|
|
92
|
+
setter: ['PisellI18nSetter', 'SlotSetter'],
|
|
144
93
|
},
|
|
145
94
|
],
|
|
146
95
|
configure: {
|
|
147
96
|
supports: {
|
|
148
97
|
style: true,
|
|
149
|
-
events: [
|
|
150
|
-
{
|
|
151
|
-
name: 'onBack',
|
|
152
|
-
template: "onBack(${extParams}){\n// 返回按钮的点击事件\nconsole.log('onBack');}",
|
|
153
|
-
},
|
|
154
|
-
],
|
|
98
|
+
events: [],
|
|
155
99
|
},
|
|
156
100
|
},
|
|
157
101
|
};
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|