@pisell/materials 1.0.699 → 1.0.700
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/meta.js +1 -1
- package/build/lowcode/render/default/view.js +1 -1
- package/build/lowcode/view.js +1 -1
- package/es/components/walletCard/Guest/index.d.ts +0 -1
- package/es/components/walletCard/Guest/index.js +9 -8
- package/lib/components/walletCard/Guest/index.d.ts +0 -1
- package/lib/components/walletCard/Guest/index.js +18 -14
- package/lowcode/wallet-card/meta.ts +5 -18
- package/package.json +1 -1
- package/es/components/TimeResourceSelector/index.d.ts +0 -21
- package/es/components/collapse/index.d.ts +0 -15
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +0 -98
- package/es/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -79
- package/es/components/drag-sort-tree/index.d.ts +0 -3
- package/es/components/picker-view/index.d.ts +0 -2
- package/es/components/pisell-config-provider/index.d.ts +0 -12
- package/es/components/pisellAvatar/index.d.ts +0 -19
- package/es/components/pisellCard/index.d.ts +0 -19
- package/es/components/pisellCustomCheckboxGroup/index.d.ts +0 -16
- package/es/components/pisellDropdown/index.d.ts +0 -20
- package/es/components/pisellEmpty/index.d.ts +0 -19
- package/es/components/pisellHeaderProgressBar/index.d.ts +0 -29
- package/es/components/pisellImageCarousels/index.d.ts +0 -18
- package/es/components/pisellInformationEntry/index.d.ts +0 -33
- package/es/components/pisellList01/index.d.ts +0 -17
- package/es/components/pisellNavigationMenu/PisellNavigationMenu.d.ts +0 -5
- package/es/components/pisellSectionHeaders/index.d.ts +0 -21
- package/es/components/productCard/components/Action/index.d.ts +0 -3
- package/es/components/productCard/components/AmountFooter/index.d.ts +0 -3
- package/es/components/productCard/components/Divider/index.d.ts +0 -3
- package/es/components/productCard/components/Header/DeleteButton/index.d.ts +0 -3
- package/es/components/productCard/components/Header/index.d.ts +0 -3
- package/es/components/productCard/components/MultiDay/index.d.ts +0 -3
- package/es/components/productCard/components/MultiDay/utils.d.ts +0 -14
- package/es/components/productCard/components/Note/index.d.ts +0 -3
- package/es/components/productCard/components/Packages/components/collapsibleList/index.d.ts +0 -10
- package/es/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +0 -1
- package/es/components/productCard/components/Packages/components/options/index.d.ts +0 -3
- package/es/components/productCard/components/Packages/index.d.ts +0 -3
- package/es/components/productCard/components/Packages/utils.d.ts +0 -20
- package/es/components/productCard/components/Sales/index.d.ts +0 -3
- package/es/components/productCard/components/Time/components/Like/index.d.ts +0 -8
- package/es/components/productCard/components/Time/index.d.ts +0 -3
- package/es/components/productCard/hooks/useOpenNote.d.ts +0 -3
- package/es/components/productCard/index.d.ts +0 -5
- package/es/components/productCard/locales.d.ts +0 -45
- package/es/components/productCard/status.d.ts +0 -32
- package/es/components/productCard/types.d.ts +0 -78
- package/es/components/productCard/utils.d.ts +0 -31
- package/es/components/section-footers/index.d.ts +0 -9
- package/es/components/table/Actions/component/ExportImport/index.d.ts +0 -7
- package/es/components/table/Actions/component/ExportImport/utils/index.d.ts +0 -9
- package/es/components/table/Gallery/components/GalleryItem/index.d.ts +0 -14
- package/es/components/table/Gallery/index.d.ts +0 -5
- package/es/components/table/Table/index.d.ts +0 -4
- package/es/components/table/Table/utils.d.ts +0 -173
- package/es/components/table/hooks/useTableSetting.d.ts +0 -22
- package/es/components/table/hooks/useTransDataSource.d.ts +0 -12
- package/es/components/table/types.d.ts +0 -253
- package/es/index.d.ts +0 -141
- package/es/locales/en-US.d.ts +0 -241
- package/es/locales/index.d.ts +0 -1
- package/es/locales/zh-CN.d.ts +0 -236
- package/es/locales/zh-TW.d.ts +0 -236
- package/lib/components/TimeResourceSelector/index.d.ts +0 -21
- package/lib/components/collapse/index.d.ts +0 -15
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +0 -98
- package/lib/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -79
- package/lib/components/drag-sort-tree/index.d.ts +0 -3
- package/lib/components/picker-view/index.d.ts +0 -2
- package/lib/components/pisell-config-provider/index.d.ts +0 -12
- package/lib/components/pisellAvatar/index.d.ts +0 -19
- package/lib/components/pisellCard/index.d.ts +0 -19
- package/lib/components/pisellCustomCheckboxGroup/index.d.ts +0 -16
- package/lib/components/pisellDropdown/index.d.ts +0 -20
- package/lib/components/pisellEmpty/index.d.ts +0 -19
- package/lib/components/pisellHeaderProgressBar/index.d.ts +0 -29
- package/lib/components/pisellImageCarousels/index.d.ts +0 -18
- package/lib/components/pisellInformationEntry/index.d.ts +0 -33
- package/lib/components/pisellList01/index.d.ts +0 -17
- package/lib/components/pisellNavigationMenu/PisellNavigationMenu.d.ts +0 -5
- package/lib/components/pisellSectionHeaders/index.d.ts +0 -21
- package/lib/components/productCard/components/Action/index.d.ts +0 -3
- package/lib/components/productCard/components/AmountFooter/index.d.ts +0 -3
- package/lib/components/productCard/components/Divider/index.d.ts +0 -3
- package/lib/components/productCard/components/Header/DeleteButton/index.d.ts +0 -3
- package/lib/components/productCard/components/Header/index.d.ts +0 -3
- package/lib/components/productCard/components/MultiDay/index.d.ts +0 -3
- package/lib/components/productCard/components/MultiDay/utils.d.ts +0 -14
- package/lib/components/productCard/components/Note/index.d.ts +0 -3
- package/lib/components/productCard/components/Packages/components/collapsibleList/index.d.ts +0 -10
- package/lib/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +0 -1
- package/lib/components/productCard/components/Packages/components/options/index.d.ts +0 -3
- package/lib/components/productCard/components/Packages/index.d.ts +0 -3
- package/lib/components/productCard/components/Packages/utils.d.ts +0 -20
- package/lib/components/productCard/components/Sales/index.d.ts +0 -3
- package/lib/components/productCard/components/Time/components/Like/index.d.ts +0 -8
- package/lib/components/productCard/components/Time/index.d.ts +0 -3
- package/lib/components/productCard/hooks/useOpenNote.d.ts +0 -3
- package/lib/components/productCard/index.d.ts +0 -5
- package/lib/components/productCard/locales.d.ts +0 -45
- package/lib/components/productCard/status.d.ts +0 -32
- package/lib/components/productCard/types.d.ts +0 -78
- package/lib/components/productCard/utils.d.ts +0 -31
- package/lib/components/section-footers/index.d.ts +0 -9
- package/lib/components/table/Actions/component/ExportImport/index.d.ts +0 -7
- package/lib/components/table/Actions/component/ExportImport/utils/index.d.ts +0 -9
- package/lib/components/table/Gallery/components/GalleryItem/index.d.ts +0 -14
- package/lib/components/table/Gallery/index.d.ts +0 -5
- package/lib/components/table/Table/index.d.ts +0 -4
- package/lib/components/table/Table/utils.d.ts +0 -173
- package/lib/components/table/hooks/useTableSetting.d.ts +0 -22
- package/lib/components/table/hooks/useTransDataSource.d.ts +0 -12
- package/lib/components/table/types.d.ts +0 -253
- package/lib/index.d.ts +0 -141
- package/lib/locales/en-US.d.ts +0 -241
- package/lib/locales/index.d.ts +0 -1
- package/lib/locales/zh-CN.d.ts +0 -236
- package/lib/locales/zh-TW.d.ts +0 -236
|
@@ -3,11 +3,12 @@ import useEngineContext from "../../../hooks/useEngineContext";
|
|
|
3
3
|
import Button from "../../button";
|
|
4
4
|
import "./index.less";
|
|
5
5
|
var Guest = function Guest(props) {
|
|
6
|
-
var _setting$titleConfig, _setting$subtitleConf, _setting$buttonConfig, _setting$buttonConfig2;
|
|
6
|
+
var _utils$translation, _utils$translation2, _utils$translation3, _utils$translation4, _utils$translation5, _setting$titleConfig, _utils$translation6, _setting$subtitleConf, _utils$translation7, _setting$buttonConfig, _utils$translation8, _setting$buttonConfig2;
|
|
7
7
|
var setting = props.setting;
|
|
8
8
|
var context = useEngineContext();
|
|
9
9
|
var _ref = context.appHelper || {},
|
|
10
10
|
utils = _ref.utils;
|
|
11
|
+
console.log('%c [ utils ]-10', 'font-size:13px; background:pink; color:#bf2c9f;', utils);
|
|
11
12
|
|
|
12
13
|
/**
|
|
13
14
|
* @title: 拉起登录
|
|
@@ -49,11 +50,11 @@ var Guest = function Guest(props) {
|
|
|
49
50
|
style: {
|
|
50
51
|
backgroundColor: setting === null || setting === void 0 ? void 0 : setting.backgroundColor
|
|
51
52
|
}
|
|
52
|
-
}, utils !== null && utils !== void 0 && utils.translation(setting === null || setting === void 0 ? void 0 : setting.backgroundImage) ? /*#__PURE__*/React.createElement("img", {
|
|
53
|
+
}, utils !== null && utils !== void 0 && (_utils$translation = utils.translation) !== null && _utils$translation !== void 0 && _utils$translation.call(utils, setting === null || setting === void 0 ? void 0 : setting.backgroundImage) ? /*#__PURE__*/React.createElement("img", {
|
|
53
54
|
className: "pisell-wallet-guest-bg",
|
|
54
|
-
src: utils === null || utils === void 0 ? void 0 :
|
|
55
|
-
alt: utils === null || utils === void 0 ? void 0 :
|
|
56
|
-
title: utils === null || utils === void 0 ? void 0 :
|
|
55
|
+
src: (utils === null || utils === void 0 || (_utils$translation2 = utils.translation) === null || _utils$translation2 === void 0 ? void 0 : _utils$translation2.call(utils, setting.backgroundImage)) || '',
|
|
56
|
+
alt: (utils === null || utils === void 0 || (_utils$translation3 = utils.translation) === null || _utils$translation3 === void 0 ? void 0 : _utils$translation3.call(utils, setting === null || setting === void 0 ? void 0 : setting.backgroundImageAlt)) || '',
|
|
57
|
+
title: (utils === null || utils === void 0 || (_utils$translation4 = utils.translation) === null || _utils$translation4 === void 0 ? void 0 : _utils$translation4.call(utils, setting === null || setting === void 0 ? void 0 : setting.backgroundImageAlt)) || ''
|
|
57
58
|
}) : null, /*#__PURE__*/React.createElement("div", {
|
|
58
59
|
className: "pisell-wallet-guest-content ".concat(setting.align === 'center' ? 'pisell-wallet-guest-center' : '')
|
|
59
60
|
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
@@ -62,12 +63,12 @@ var Guest = function Guest(props) {
|
|
|
62
63
|
size: 18,
|
|
63
64
|
weight: 600
|
|
64
65
|
})
|
|
65
|
-
}, utils === null || utils === void 0 ? void 0 :
|
|
66
|
+
}, (utils === null || utils === void 0 || (_utils$translation5 = utils.translation) === null || _utils$translation5 === void 0 ? void 0 : _utils$translation5.call(utils, (setting === null || setting === void 0 ? void 0 : setting.title) || (setting === null || setting === void 0 || (_setting$titleConfig = setting.titleConfig) === null || _setting$titleConfig === void 0 ? void 0 : _setting$titleConfig.text))) || ''), /*#__PURE__*/React.createElement("div", {
|
|
66
67
|
className: "pisell-wallet-guest-subtitle",
|
|
67
68
|
style: getTextStyle(setting === null || setting === void 0 ? void 0 : setting.subtitleConfig, {
|
|
68
69
|
color: '#D0D5DD'
|
|
69
70
|
})
|
|
70
|
-
}, utils === null || utils === void 0 ? void 0 :
|
|
71
|
+
}, (utils === null || utils === void 0 || (_utils$translation6 = utils.translation) === null || _utils$translation6 === void 0 ? void 0 : _utils$translation6.call(utils, (setting === null || setting === void 0 ? void 0 : setting.subtitle) || (setting === null || setting === void 0 || (_setting$subtitleConf = setting.subtitleConfig) === null || _setting$subtitleConf === void 0 ? void 0 : _setting$subtitleConf.text))) || '')), utils !== null && utils !== void 0 && (_utils$translation7 = utils.translation) !== null && _utils$translation7 !== void 0 && _utils$translation7.call(utils, (setting === null || setting === void 0 ? void 0 : setting.buttonText) || (setting === null || setting === void 0 || (_setting$buttonConfig = setting.buttonConfig) === null || _setting$buttonConfig === void 0 ? void 0 : _setting$buttonConfig.text)) ? /*#__PURE__*/React.createElement("div", {
|
|
71
72
|
className: "pisell-wallet-guest-button-wrap"
|
|
72
73
|
}, /*#__PURE__*/React.createElement(Button, {
|
|
73
74
|
style: {
|
|
@@ -78,6 +79,6 @@ var Guest = function Guest(props) {
|
|
|
78
79
|
style: getTextStyle(setting === null || setting === void 0 ? void 0 : setting.buttonConfig, {
|
|
79
80
|
weight: 600
|
|
80
81
|
})
|
|
81
|
-
}, utils === null || utils === void 0 ? void 0 :
|
|
82
|
+
}, (utils === null || utils === void 0 || (_utils$translation8 = utils.translation) === null || _utils$translation8 === void 0 ? void 0 : _utils$translation8.call(utils, (setting === null || setting === void 0 ? void 0 : setting.buttonText) || (setting === null || setting === void 0 || (_setting$buttonConfig2 = setting.buttonConfig) === null || _setting$buttonConfig2 === void 0 ? void 0 : _setting$buttonConfig2.text))) || ''))) : null));
|
|
82
83
|
};
|
|
83
84
|
export default Guest;
|
|
@@ -37,10 +37,11 @@ var import_useEngineContext = __toESM(require("../../../hooks/useEngineContext")
|
|
|
37
37
|
var import_button = __toESM(require("../../button"));
|
|
38
38
|
var import_index = require("./index.less");
|
|
39
39
|
var Guest = (props) => {
|
|
40
|
-
var _a, _b, _c, _d;
|
|
40
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
|
|
41
41
|
const { setting } = props;
|
|
42
42
|
const context = (0, import_useEngineContext.default)();
|
|
43
43
|
const { utils } = context.appHelper || {};
|
|
44
|
+
console.log("%c [ utils ]-10", "font-size:13px; background:pink; color:#bf2c9f;", utils);
|
|
44
45
|
const goLogin = () => {
|
|
45
46
|
console.log(utils, "wh978796");
|
|
46
47
|
utils == null ? void 0 : utils.action({
|
|
@@ -67,13 +68,13 @@ var Guest = (props) => {
|
|
|
67
68
|
backgroundColor: setting == null ? void 0 : setting.backgroundColor
|
|
68
69
|
}
|
|
69
70
|
},
|
|
70
|
-
(utils == null ? void 0 : utils.translation(setting == null ? void 0 : setting.backgroundImage)) ? /* @__PURE__ */ import_react.default.createElement(
|
|
71
|
+
((_a = utils == null ? void 0 : utils.translation) == null ? void 0 : _a.call(utils, setting == null ? void 0 : setting.backgroundImage)) ? /* @__PURE__ */ import_react.default.createElement(
|
|
71
72
|
"img",
|
|
72
73
|
{
|
|
73
74
|
className: "pisell-wallet-guest-bg",
|
|
74
|
-
src: utils == null ? void 0 : utils.translation(setting.backgroundImage),
|
|
75
|
-
alt: utils == null ? void 0 : utils.translation(setting == null ? void 0 : setting.backgroundImageAlt),
|
|
76
|
-
title: utils == null ? void 0 : utils.translation(setting == null ? void 0 : setting.backgroundImageAlt)
|
|
75
|
+
src: ((_b = utils == null ? void 0 : utils.translation) == null ? void 0 : _b.call(utils, setting.backgroundImage)) || "",
|
|
76
|
+
alt: ((_c = utils == null ? void 0 : utils.translation) == null ? void 0 : _c.call(utils, setting == null ? void 0 : setting.backgroundImageAlt)) || "",
|
|
77
|
+
title: ((_d = utils == null ? void 0 : utils.translation) == null ? void 0 : _d.call(utils, setting == null ? void 0 : setting.backgroundImageAlt)) || ""
|
|
77
78
|
}
|
|
78
79
|
) : null,
|
|
79
80
|
/* @__PURE__ */ import_react.default.createElement(
|
|
@@ -90,7 +91,7 @@ var Guest = (props) => {
|
|
|
90
91
|
weight: 600
|
|
91
92
|
})
|
|
92
93
|
},
|
|
93
|
-
utils == null ? void 0 : utils.translation((setting == null ? void 0 : setting.title) || ((
|
|
94
|
+
((_f = utils == null ? void 0 : utils.translation) == null ? void 0 : _f.call(utils, (setting == null ? void 0 : setting.title) || ((_e = setting == null ? void 0 : setting.titleConfig) == null ? void 0 : _e.text))) || ""
|
|
94
95
|
), /* @__PURE__ */ import_react.default.createElement(
|
|
95
96
|
"div",
|
|
96
97
|
{
|
|
@@ -99,12 +100,14 @@ var Guest = (props) => {
|
|
|
99
100
|
color: "#D0D5DD"
|
|
100
101
|
})
|
|
101
102
|
},
|
|
102
|
-
utils == null ? void 0 : utils.translation(
|
|
103
|
-
|
|
104
|
-
|
|
103
|
+
((_h = utils == null ? void 0 : utils.translation) == null ? void 0 : _h.call(
|
|
104
|
+
utils,
|
|
105
|
+
(setting == null ? void 0 : setting.subtitle) || ((_g = setting == null ? void 0 : setting.subtitleConfig) == null ? void 0 : _g.text)
|
|
106
|
+
)) || ""
|
|
105
107
|
)),
|
|
106
|
-
(utils == null ? void 0 : utils.translation(
|
|
107
|
-
|
|
108
|
+
((_j = utils == null ? void 0 : utils.translation) == null ? void 0 : _j.call(
|
|
109
|
+
utils,
|
|
110
|
+
(setting == null ? void 0 : setting.buttonText) || ((_i = setting == null ? void 0 : setting.buttonConfig) == null ? void 0 : _i.text)
|
|
108
111
|
)) ? /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-wallet-guest-button-wrap" }, /* @__PURE__ */ import_react.default.createElement(
|
|
109
112
|
import_button.default,
|
|
110
113
|
{
|
|
@@ -120,9 +123,10 @@ var Guest = (props) => {
|
|
|
120
123
|
weight: 600
|
|
121
124
|
})
|
|
122
125
|
},
|
|
123
|
-
utils == null ? void 0 : utils.translation(
|
|
124
|
-
|
|
125
|
-
|
|
126
|
+
((_l = utils == null ? void 0 : utils.translation) == null ? void 0 : _l.call(
|
|
127
|
+
utils,
|
|
128
|
+
(setting == null ? void 0 : setting.buttonText) || ((_k = setting == null ? void 0 : setting.buttonConfig) == null ? void 0 : _k.text)
|
|
129
|
+
)) || ""
|
|
126
130
|
)
|
|
127
131
|
)) : null
|
|
128
132
|
)
|
|
@@ -43,23 +43,10 @@ export default {
|
|
|
43
43
|
componentName: 'RadioGroupSetter',
|
|
44
44
|
props: {
|
|
45
45
|
options: [
|
|
46
|
-
{
|
|
47
|
-
|
|
48
|
-
type: 'i18n',
|
|
49
|
-
'en-US': 'Logged in',
|
|
50
|
-
'zh-CN': '已登录'
|
|
51
|
-
},
|
|
52
|
-
value: true
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
title: {
|
|
56
|
-
type: 'i18n',
|
|
57
|
-
'en-US': 'Not logged in',
|
|
58
|
-
'zh-CN': '未登录'
|
|
59
|
-
},
|
|
60
|
-
value: true
|
|
61
|
-
},
|
|
46
|
+
{ title: '已登录', value: true },
|
|
47
|
+
{ title: '未登录', value: false },
|
|
62
48
|
],
|
|
49
|
+
optionType: 'button'
|
|
63
50
|
},
|
|
64
51
|
},
|
|
65
52
|
defaultValue: true,
|
|
@@ -70,12 +57,12 @@ export default {
|
|
|
70
57
|
label: {
|
|
71
58
|
type: 'i18n',
|
|
72
59
|
'en-US': 'Display Mode',
|
|
73
|
-
'zh-CN': '
|
|
60
|
+
'zh-CN': '展示模式'
|
|
74
61
|
},
|
|
75
62
|
tip: {
|
|
76
63
|
type: 'i18n',
|
|
77
64
|
'en-US': 'Display mode. Values: light | dark',
|
|
78
|
-
'zh-CN': '
|
|
65
|
+
'zh-CN': '展示模式。取值: light | dark'
|
|
79
66
|
}
|
|
80
67
|
},
|
|
81
68
|
setter: {
|
package/package.json
CHANGED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './index.less';
|
|
3
|
-
export interface TimeSlot {
|
|
4
|
-
value: string;
|
|
5
|
-
label: string;
|
|
6
|
-
time: string;
|
|
7
|
-
remainingCount: number;
|
|
8
|
-
disabled?: boolean;
|
|
9
|
-
}
|
|
10
|
-
export interface TimeResourceSelectorProps {
|
|
11
|
-
timeSlots?: TimeSlot[];
|
|
12
|
-
multiple?: boolean;
|
|
13
|
-
showUnavailable?: boolean;
|
|
14
|
-
defaultExpanded?: boolean;
|
|
15
|
-
defaultSelectFirst?: boolean;
|
|
16
|
-
onChange?: (values: string | string[]) => void;
|
|
17
|
-
className?: string;
|
|
18
|
-
style?: React.CSSProperties;
|
|
19
|
-
}
|
|
20
|
-
declare const TimeResourceSelector: React.FC<TimeResourceSelectorProps>;
|
|
21
|
-
export default TimeResourceSelector;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './index.less';
|
|
3
|
-
interface CollapseProps {
|
|
4
|
-
panelBackground?: string;
|
|
5
|
-
panelMarginBottom?: string | 0;
|
|
6
|
-
panelBorderRadius?: string | 0;
|
|
7
|
-
items: any[];
|
|
8
|
-
showHeader?: boolean;
|
|
9
|
-
headerColor?: string | '#101828';
|
|
10
|
-
headerFontSize?: string | 14;
|
|
11
|
-
expandIcon?: any;
|
|
12
|
-
[key: string]: any;
|
|
13
|
-
}
|
|
14
|
-
declare const Collapse: React.FC<CollapseProps>;
|
|
15
|
-
export default Collapse;
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { DataSourceTableProps } from '../type';
|
|
3
|
-
import { OperationItem } from '../type';
|
|
4
|
-
interface UseTablePropsProps {
|
|
5
|
-
data: any;
|
|
6
|
-
originProps: DataSourceTableProps;
|
|
7
|
-
openDrawer: (type: OperationItem) => void;
|
|
8
|
-
closeDrawer: () => void;
|
|
9
|
-
refreshData: () => void;
|
|
10
|
-
handleFilterChange: (changedFields: any, allFields: any) => void;
|
|
11
|
-
tableRef: any;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* 处理table的props
|
|
15
|
-
* 转换title
|
|
16
|
-
* @param props
|
|
17
|
-
* @returns
|
|
18
|
-
*/
|
|
19
|
-
declare const useTableProps: (props: UseTablePropsProps) => {
|
|
20
|
-
title: number | boolean | JSX.Element | React.ReactFragment | (() => React.ReactNode) | null | undefined;
|
|
21
|
-
pagination: {
|
|
22
|
-
total: number;
|
|
23
|
-
current: number;
|
|
24
|
-
pageSize: number;
|
|
25
|
-
size: string;
|
|
26
|
-
showSizeChanger: boolean;
|
|
27
|
-
};
|
|
28
|
-
columns: import("./useColumns").Column[];
|
|
29
|
-
subTitle: number | boolean | JSX.Element | React.ReactFragment | (() => React.ReactNode) | null | undefined;
|
|
30
|
-
buttons: any[] | null;
|
|
31
|
-
filter: JSX.Element | null;
|
|
32
|
-
onRow: (record: any) => any;
|
|
33
|
-
actionButtons: any[] | null;
|
|
34
|
-
titleButtons?: {
|
|
35
|
-
show: boolean;
|
|
36
|
-
maxCount: number;
|
|
37
|
-
items: OperationItem[];
|
|
38
|
-
} | undefined;
|
|
39
|
-
tableButtons?: {
|
|
40
|
-
show: boolean;
|
|
41
|
-
maxCount: number;
|
|
42
|
-
items: OperationItem[];
|
|
43
|
-
} | undefined;
|
|
44
|
-
operation?: {
|
|
45
|
-
show: boolean;
|
|
46
|
-
title: string; /**
|
|
47
|
-
* 处理table的props
|
|
48
|
-
* 转换title
|
|
49
|
-
* @param props
|
|
50
|
-
* @returns
|
|
51
|
-
*/
|
|
52
|
-
width: number;
|
|
53
|
-
align: "center" | "left" | "right";
|
|
54
|
-
fixed: false | "left" | "right";
|
|
55
|
-
type: "button" | "link";
|
|
56
|
-
items: OperationItem[];
|
|
57
|
-
} | undefined;
|
|
58
|
-
operationContent?: {
|
|
59
|
-
[key: string]: React.ReactNode;
|
|
60
|
-
} | undefined;
|
|
61
|
-
dataSource: import("../../provider/dataSource/DataSourceContext").DataSourceType;
|
|
62
|
-
search?: {
|
|
63
|
-
show: boolean;
|
|
64
|
-
placeholder: string;
|
|
65
|
-
} | undefined;
|
|
66
|
-
__designMode: string;
|
|
67
|
-
componentId: string;
|
|
68
|
-
clickToDetail?: {
|
|
69
|
-
show: boolean;
|
|
70
|
-
useCustomAction: boolean;
|
|
71
|
-
actionType: string;
|
|
72
|
-
openMode: "modal" | "drawer";
|
|
73
|
-
openContentSize: "large" | "small" | "middle";
|
|
74
|
-
openTitle: string;
|
|
75
|
-
key: string;
|
|
76
|
-
} | undefined;
|
|
77
|
-
filterBy?: Record<string, any> | undefined;
|
|
78
|
-
sortBy: string;
|
|
79
|
-
tabs?: {
|
|
80
|
-
show: boolean;
|
|
81
|
-
type: string;
|
|
82
|
-
items: {
|
|
83
|
-
name: string;
|
|
84
|
-
filterBy: Record<string, any>;
|
|
85
|
-
sortBy: string;
|
|
86
|
-
}[];
|
|
87
|
-
} | undefined;
|
|
88
|
-
onValuesChange?: ((changedValues: any, values: any) => void) | undefined;
|
|
89
|
-
onDeleteFinish?: ((record: Record<string, any>) => void) | undefined;
|
|
90
|
-
extraParams?: {
|
|
91
|
-
list?: Record<string, any> | undefined;
|
|
92
|
-
get?: Record<string, any> | undefined;
|
|
93
|
-
update?: Record<string, any> | undefined;
|
|
94
|
-
create?: Record<string, any> | undefined;
|
|
95
|
-
destroy?: Record<string, any> | undefined;
|
|
96
|
-
} | undefined;
|
|
97
|
-
};
|
|
98
|
-
export default useTableProps;
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ColumnType } from 'antd/es/table';
|
|
3
|
-
import { DataSourceType } from '../provider/dataSource/DataSourceContext';
|
|
4
|
-
export declare type OperationItem = {
|
|
5
|
-
label?: string;
|
|
6
|
-
openMode: 'modal' | 'drawer' | 'custom';
|
|
7
|
-
openContentSize: 'small' | 'middle' | 'large';
|
|
8
|
-
openTitle: string;
|
|
9
|
-
actionType: 'detail' | 'edit' | 'delete' | 'custom';
|
|
10
|
-
key: string;
|
|
11
|
-
buttonProps?: any;
|
|
12
|
-
onClick?: (record: any) => void;
|
|
13
|
-
};
|
|
14
|
-
export interface DataSourceTableProps {
|
|
15
|
-
title?: string | React.ReactNode | (() => React.ReactNode);
|
|
16
|
-
subTitle?: string | React.ReactNode | (() => React.ReactNode);
|
|
17
|
-
titleButtons?: {
|
|
18
|
-
show: boolean;
|
|
19
|
-
maxCount: number;
|
|
20
|
-
items: OperationItem[];
|
|
21
|
-
};
|
|
22
|
-
tableButtons?: {
|
|
23
|
-
show: boolean;
|
|
24
|
-
maxCount: number;
|
|
25
|
-
items: OperationItem[];
|
|
26
|
-
};
|
|
27
|
-
buttons?: any[];
|
|
28
|
-
operation?: {
|
|
29
|
-
show: boolean;
|
|
30
|
-
title: string;
|
|
31
|
-
width: number;
|
|
32
|
-
align: 'left' | 'center' | 'right';
|
|
33
|
-
fixed: 'left' | 'right' | false;
|
|
34
|
-
type: 'link' | 'button';
|
|
35
|
-
items: OperationItem[];
|
|
36
|
-
};
|
|
37
|
-
operationContent?: {
|
|
38
|
-
[key: string]: React.ReactNode;
|
|
39
|
-
};
|
|
40
|
-
dataSource: DataSourceType;
|
|
41
|
-
columns: ColumnType<any>[];
|
|
42
|
-
filter: any;
|
|
43
|
-
search?: {
|
|
44
|
-
show: boolean;
|
|
45
|
-
placeholder: string;
|
|
46
|
-
};
|
|
47
|
-
__designMode: string;
|
|
48
|
-
componentId: string;
|
|
49
|
-
clickToDetail?: {
|
|
50
|
-
show: boolean;
|
|
51
|
-
useCustomAction: boolean;
|
|
52
|
-
actionType: string;
|
|
53
|
-
openMode: 'modal' | 'drawer';
|
|
54
|
-
openContentSize: 'small' | 'middle' | 'large';
|
|
55
|
-
openTitle: string;
|
|
56
|
-
key: string;
|
|
57
|
-
};
|
|
58
|
-
onRow?: any;
|
|
59
|
-
filterBy?: Record<string, any>;
|
|
60
|
-
sortBy: string;
|
|
61
|
-
tabs?: {
|
|
62
|
-
show: boolean;
|
|
63
|
-
type: string;
|
|
64
|
-
items: {
|
|
65
|
-
name: string;
|
|
66
|
-
filterBy: Record<string, any>;
|
|
67
|
-
sortBy: string;
|
|
68
|
-
}[];
|
|
69
|
-
};
|
|
70
|
-
onValuesChange?: (changedValues: any, values: any) => void;
|
|
71
|
-
onDeleteFinish?: (record: Record<string, any>) => void;
|
|
72
|
-
extraParams?: {
|
|
73
|
-
list?: Record<string, any>;
|
|
74
|
-
get?: Record<string, any>;
|
|
75
|
-
update?: Record<string, any>;
|
|
76
|
-
create?: Record<string, any>;
|
|
77
|
-
destroy?: Record<string, any>;
|
|
78
|
-
};
|
|
79
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { PisellContextType } from './context';
|
|
3
|
-
interface PisellConfigProviderType {
|
|
4
|
-
platform?: PisellContextType['platform'];
|
|
5
|
-
children: React.ReactNode;
|
|
6
|
-
/** 货币符号 */
|
|
7
|
-
symbol?: string;
|
|
8
|
-
/** 当前语言环境 */
|
|
9
|
-
locale?: string;
|
|
10
|
-
}
|
|
11
|
-
declare const PisellConfigProvider: React.FC<PisellConfigProviderType>;
|
|
12
|
-
export default PisellConfigProvider;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { AvatarProps } from 'antd';
|
|
3
|
-
import './index.less';
|
|
4
|
-
export declare type AvatarSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl';
|
|
5
|
-
export interface PisellAvatarProps extends Omit<AvatarProps, 'size' | 'shape'> {
|
|
6
|
-
shape?: 'circle' | 'square';
|
|
7
|
-
size?: AvatarSize;
|
|
8
|
-
src?: string;
|
|
9
|
-
alt?: string;
|
|
10
|
-
icon?: React.ReactNode;
|
|
11
|
-
children?: React.ReactNode;
|
|
12
|
-
className?: string;
|
|
13
|
-
style?: React.CSSProperties;
|
|
14
|
-
useTextAvatar?: boolean;
|
|
15
|
-
borderRadius?: number;
|
|
16
|
-
onError?: () => boolean;
|
|
17
|
-
}
|
|
18
|
-
declare const PisellAvatar: React.FC<PisellAvatarProps>;
|
|
19
|
-
export default PisellAvatar;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { CardProps } from 'antd';
|
|
2
|
-
import './index.less';
|
|
3
|
-
export interface PisellCardProps extends CardProps {
|
|
4
|
-
bordered?: boolean;
|
|
5
|
-
selected?: boolean;
|
|
6
|
-
loading?: boolean;
|
|
7
|
-
padding?: number;
|
|
8
|
-
borderRadius?: number;
|
|
9
|
-
disabled?: boolean;
|
|
10
|
-
onClick?: () => void;
|
|
11
|
-
isClickable?: boolean;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Pisell 卡片容器组件
|
|
15
|
-
* @param props
|
|
16
|
-
* @constructor
|
|
17
|
-
*/
|
|
18
|
-
declare const PisellCard: (props: PisellCardProps) => JSX.Element;
|
|
19
|
-
export default PisellCard;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './index.less';
|
|
3
|
-
export interface PisellCustomCheckboxGroupProps {
|
|
4
|
-
dataSource?: any[];
|
|
5
|
-
disabled?: boolean;
|
|
6
|
-
allowAdd?: boolean;
|
|
7
|
-
isMultiple?: boolean;
|
|
8
|
-
id?: string | string[];
|
|
9
|
-
onClick?: (value: any) => void;
|
|
10
|
-
onAdd?: () => void;
|
|
11
|
-
renderAddItem?: (item: any) => React.ReactNode;
|
|
12
|
-
[key: string]: any;
|
|
13
|
-
className?: string;
|
|
14
|
-
}
|
|
15
|
-
declare const PisellCustomCheckboxGroup: React.FC<PisellCustomCheckboxGroupProps>;
|
|
16
|
-
export default PisellCustomCheckboxGroup;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './index.less';
|
|
3
|
-
export interface MenuItemType {
|
|
4
|
-
key: string;
|
|
5
|
-
label: string;
|
|
6
|
-
icon?: React.ReactNode;
|
|
7
|
-
shortcut?: string;
|
|
8
|
-
divider?: boolean;
|
|
9
|
-
}
|
|
10
|
-
export interface PisellDropdownProps {
|
|
11
|
-
trigger?: React.ReactNode;
|
|
12
|
-
items?: MenuItemType[];
|
|
13
|
-
showShortcut?: boolean;
|
|
14
|
-
triggerType?: ('click' | 'hover')[];
|
|
15
|
-
className?: string;
|
|
16
|
-
style?: React.CSSProperties;
|
|
17
|
-
onSelect?: (key: string) => void;
|
|
18
|
-
}
|
|
19
|
-
declare const PisellDropdown: React.FC<PisellDropdownProps>;
|
|
20
|
-
export default PisellDropdown;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { EmptyProps } from 'antd';
|
|
3
|
-
import { PisellContextType } from '../pisell-config-provider/context';
|
|
4
|
-
import './index.less';
|
|
5
|
-
export interface PisellEmptyProps extends EmptyProps {
|
|
6
|
-
/** 平台 */
|
|
7
|
-
platform?: PisellContextType['platform'];
|
|
8
|
-
/** 额外内容描述 */
|
|
9
|
-
extraDescription?: React.ReactNode;
|
|
10
|
-
/** 额外内容描述 */
|
|
11
|
-
icon?: React.ReactNode;
|
|
12
|
-
/** 自定义底部额外操作区域 */
|
|
13
|
-
footer?: React.ReactNode;
|
|
14
|
-
/** 最大宽度 */
|
|
15
|
-
maxWidth?: number;
|
|
16
|
-
[key: string]: any;
|
|
17
|
-
}
|
|
18
|
-
declare const PisellEmpty: (props: PisellEmptyProps) => JSX.Element;
|
|
19
|
-
export default PisellEmpty;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './index.less';
|
|
3
|
-
export interface PisellHeaderProgressBarProps {
|
|
4
|
-
title?: React.ReactNode;
|
|
5
|
-
stepText?: React.ReactNode;
|
|
6
|
-
showClose?: boolean;
|
|
7
|
-
/** 是否启用投影 */
|
|
8
|
-
enableShadow?: boolean;
|
|
9
|
-
/** 是否启用描边 */
|
|
10
|
-
enableBorder?: boolean;
|
|
11
|
-
/** 描边粗细 */
|
|
12
|
-
borderWidth?: number;
|
|
13
|
-
/** 描边颜色 */
|
|
14
|
-
borderColor?: string;
|
|
15
|
-
/** 头部背景颜色 */
|
|
16
|
-
backgroundColor?: string;
|
|
17
|
-
/** 自定义类名 */
|
|
18
|
-
className?: string;
|
|
19
|
-
/** 自定义样式 */
|
|
20
|
-
style?: React.CSSProperties;
|
|
21
|
-
/** 是否显示返回键 */
|
|
22
|
-
showBack?: boolean;
|
|
23
|
-
/** 返回按钮点击事件 */
|
|
24
|
-
onBack?: () => void;
|
|
25
|
-
/** 关闭按钮点击事件 */
|
|
26
|
-
onClose?: () => void;
|
|
27
|
-
}
|
|
28
|
-
declare const PisellHeaderProgressBar: React.FC<PisellHeaderProgressBarProps>;
|
|
29
|
-
export default PisellHeaderProgressBar;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import 'swiper/swiper-bundle.css';
|
|
3
|
-
import './index.less';
|
|
4
|
-
export interface PisellImageCarouselsProps {
|
|
5
|
-
dataSource?: string[];
|
|
6
|
-
width?: number | string;
|
|
7
|
-
height?: number;
|
|
8
|
-
showArrows?: boolean;
|
|
9
|
-
showDots?: boolean;
|
|
10
|
-
autoplay?: boolean;
|
|
11
|
-
interval?: number;
|
|
12
|
-
borderRadius?: number;
|
|
13
|
-
loop?: boolean;
|
|
14
|
-
className?: string;
|
|
15
|
-
style?: React.CSSProperties;
|
|
16
|
-
}
|
|
17
|
-
declare const PisellImageCarousels: React.FC<PisellImageCarouselsProps>;
|
|
18
|
-
export default PisellImageCarousels;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { PisellContextType } from '../pisell-config-provider/context';
|
|
3
|
-
import './index.less';
|
|
4
|
-
export declare type EntryModeType = {
|
|
5
|
-
/**
|
|
6
|
-
* 录入模式名称
|
|
7
|
-
* scanCode: 扫码录入
|
|
8
|
-
* input: 手动录入
|
|
9
|
-
* scanner: 扫码枪录入
|
|
10
|
-
* nfc: NFC录入
|
|
11
|
-
*/
|
|
12
|
-
type: 'scanCode' | 'input' | 'scanner' | 'nfc';
|
|
13
|
-
/**
|
|
14
|
-
* 录入模式文案 没有使用默认文案
|
|
15
|
-
*/
|
|
16
|
-
name?: string;
|
|
17
|
-
};
|
|
18
|
-
export interface PisellInformationEntryProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'title' | 'onChange'> {
|
|
19
|
-
/** 平台 */
|
|
20
|
-
platform?: PisellContextType['platform'];
|
|
21
|
-
/** 录入模式 */
|
|
22
|
-
entryModes: EntryModeType[];
|
|
23
|
-
/** 标题文案 */
|
|
24
|
-
title?: React.ReactNode;
|
|
25
|
-
/** 搜索框描述文案 */
|
|
26
|
-
searchDescribe?: React.ReactNode;
|
|
27
|
-
/** 录入信息值改变 */
|
|
28
|
-
onChange?: (val: string) => void;
|
|
29
|
-
/** 录入类型切换时候触发的 */
|
|
30
|
-
onChangeType?: (val: null | EntryModeType['type']) => void;
|
|
31
|
-
}
|
|
32
|
-
declare const PisellInformationEntry: (props: PisellInformationEntryProps) => JSX.Element;
|
|
33
|
-
export default PisellInformationEntry;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './index.less';
|
|
3
|
-
export interface PisellList01Props {
|
|
4
|
-
dataSource?: any[];
|
|
5
|
-
showSearch: boolean;
|
|
6
|
-
showCategory: boolean;
|
|
7
|
-
placeholder?: string;
|
|
8
|
-
renderItem?: (item: any, index: number) => React.ReactNode;
|
|
9
|
-
className?: string;
|
|
10
|
-
style?: React.CSSProperties;
|
|
11
|
-
onChange?: (anchor: string) => void;
|
|
12
|
-
onSearch?: (value: any) => void;
|
|
13
|
-
isShowEmpty?: boolean;
|
|
14
|
-
description?: any;
|
|
15
|
-
}
|
|
16
|
-
declare const PisellList01: React.FC<PisellList01Props>;
|
|
17
|
-
export default PisellList01;
|