@pisell/materials 6.4.15 → 6.4.16
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 +22 -22
- package/build/lowcode/view.js +23 -23
- package/es/components/Pagination/index.d.ts +1 -1
- package/es/components/cardPro/index.js +10 -3
- package/es/components/dataSourceComponents/dataSourceForm/formItem.d.ts +0 -1
- package/es/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +0 -1
- package/es/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +0 -1
- package/es/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +0 -1
- package/es/components/dataSourceComponents/dataSourceTable/filter/utils.d.ts +0 -1
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -1
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +4 -4
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +0 -1
- package/es/components/dataSourceComponents/dataSourceWrapper/index.d.ts +0 -1
- package/es/components/dataSourceComponents/fields/Input.Phone/serve.js +158 -22
- package/es/components/dataSourceComponents/fields/Select/index.d.ts +0 -1
- package/es/components/dataSourceComponents/fields/index.d.ts +17 -18
- package/es/components/filter/index.d.ts +0 -1
- package/es/components/iconfont/index.js +1 -1
- package/es/components/list/index.d.ts +0 -1
- package/es/components/table/Actions/component/ExportImport/components/ExportFile/index.d.ts +0 -1
- package/es/components/table/Actions/component/ExportImport/components/ExportTable/index.d.ts +0 -1
- package/es/components/table/Actions/component/ExportImport/components/ImportLog/index.d.ts +0 -1
- package/es/components/table/Actions/component/ExportImport/components/ImportTable/index.d.ts +0 -1
- package/es/components/table/Actions/component/ExportImport/index.d.ts +0 -1
- package/es/components/table/Actions/component/GallerySetting/index.d.ts +0 -1
- package/es/components/table/Actions/component/Group/index.d.ts +0 -1
- package/es/components/table/Actions/component/ViewMode/index.d.ts +0 -1
- package/es/components/table/Actions/index.d.ts +0 -1
- package/es/components/table/BasicTable/index.d.ts +0 -1
- package/es/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +0 -1
- package/es/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +0 -1
- package/es/components/table/Table/SelectField/index.d.ts +0 -1
- package/es/components/table/Table/fields/index.d.ts +2 -3
- package/es/components/table/Table/fields/text/Show/index.d.ts +0 -1
- package/es/components/table/Table/fields/text/index.d.ts +0 -1
- package/es/components/table/Table/tableConfig/SortRow/index.d.ts +0 -1
- package/es/components/table/Table/utils.d.ts +1 -1
- package/es/components/table/View/index.d.ts +0 -1
- package/es/locales/en-US.js +16 -1
- package/es/locales/zh-CN.js +16 -1
- package/es/locales/zh-TW.js +16 -1
- package/lib/components/Pagination/index.d.ts +1 -1
- package/lib/components/cardPro/index.js +3 -2
- package/lib/components/dataSourceComponents/dataSourceForm/formItem.d.ts +0 -1
- package/lib/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +0 -1
- package/lib/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +0 -1
- package/lib/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +0 -1
- package/lib/components/dataSourceComponents/dataSourceTable/filter/utils.d.ts +0 -1
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -1
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +4 -4
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +0 -1
- package/lib/components/dataSourceComponents/dataSourceWrapper/index.d.ts +0 -1
- package/lib/components/dataSourceComponents/fields/Input.Phone/serve.js +182 -18
- package/lib/components/dataSourceComponents/fields/Select/index.d.ts +0 -1
- package/lib/components/dataSourceComponents/fields/index.d.ts +17 -18
- package/lib/components/filter/index.d.ts +0 -1
- package/lib/components/iconfont/index.js +1 -1
- package/lib/components/list/index.d.ts +0 -1
- package/lib/components/table/Actions/component/ExportImport/components/ExportFile/index.d.ts +0 -1
- package/lib/components/table/Actions/component/ExportImport/components/ExportTable/index.d.ts +0 -1
- package/lib/components/table/Actions/component/ExportImport/components/ImportLog/index.d.ts +0 -1
- package/lib/components/table/Actions/component/ExportImport/components/ImportTable/index.d.ts +0 -1
- package/lib/components/table/Actions/component/ExportImport/index.d.ts +0 -1
- package/lib/components/table/Actions/component/GallerySetting/index.d.ts +0 -1
- package/lib/components/table/Actions/component/Group/index.d.ts +0 -1
- package/lib/components/table/Actions/component/ViewMode/index.d.ts +0 -1
- package/lib/components/table/Actions/index.d.ts +0 -1
- package/lib/components/table/BasicTable/index.d.ts +0 -1
- package/lib/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +0 -1
- package/lib/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +0 -1
- package/lib/components/table/Table/SelectField/index.d.ts +0 -1
- package/lib/components/table/Table/fields/index.d.ts +2 -3
- package/lib/components/table/Table/fields/text/Show/index.d.ts +0 -1
- package/lib/components/table/Table/fields/text/index.d.ts +0 -1
- package/lib/components/table/Table/tableConfig/SortRow/index.d.ts +0 -1
- package/lib/components/table/Table/utils.d.ts +1 -1
- package/lib/components/table/View/index.d.ts +0 -1
- package/lib/locales/en-US.js +12 -1
- package/lib/locales/zh-CN.js +12 -1
- package/lib/locales/zh-TW.js +12 -1
- package/package.json +1 -1
- package/es/components/auto-resize-text/auto-text-size-standalone.d.ts +0 -20
- package/es/components/auto-resize-text/index.d.ts +0 -6
- package/es/components/cardPro/index.d.ts +0 -4
- package/es/components/drag-sort-tree/TreeItem/index.d.ts +0 -19
- package/es/components/iconfont/index.d.ts +0 -8
- package/es/components/keyboard/index.d.ts +0 -22
- package/es/components/pisell-config-provider/context.d.ts +0 -22
- package/es/components/pisell-config-provider/index.d.ts +0 -13
- package/es/components/pisellAdjustPrice/index.d.ts +0 -4
- package/es/components/pisellAdjustPrice/status.d.ts +0 -32
- package/es/components/pisellAdjustPrice/type.d.ts +0 -22
- package/es/components/pisellCheckboxGroup/index.d.ts +0 -40
- package/es/components/pisellQRScanner/index.d.ts +0 -24
- package/es/components/pisellText/components/Amount/index.d.ts +0 -20
- package/es/components/pisellToast/index.d.ts +0 -17
- package/es/components/pisellToast/squareToast/index.d.ts +0 -15
- package/es/components/pisellToast/squareToast/methods.d.ts +0 -13
- package/es/components/pisellToast/squareToast/renderImperatively.d.ts +0 -29
- package/es/components/pisellToast/squareToast/toast.d.ts +0 -25
- package/es/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +0 -3
- package/es/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +0 -3
- package/es/components/productCard/cartSkuCard/components/MultiDay/utils.d.ts +0 -14
- package/es/components/productCard/cartSkuCard/components/Note/index.d.ts +0 -3
- package/es/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +0 -27
- package/es/components/productCard/cartSkuCard/components/discountReason/index.d.ts +0 -2
- package/es/components/productCard/cartSkuCard/components/holders/index.d.ts +0 -3
- package/es/components/productCard/cartSkuCard/components/packages/index.d.ts +0 -10
- package/es/components/productCard/cartSkuCard/components/packages/utils.d.ts +0 -20
- package/es/components/productCard/cartSkuCard/components/resources/index.d.ts +0 -3
- package/es/components/productCard/cartSkuCard/components/sales/index.d.ts +0 -12
- package/es/components/productCard/cartSkuCard/components/specs/index.d.ts +0 -3
- package/es/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +0 -46
- package/es/components/productCard/cartSkuCard/components/timeRange/index.d.ts +0 -6
- package/es/components/productCard/cartSkuCard/index.d.ts +0 -10
- package/es/components/productCard/cartSkuCard/locales.d.ts +0 -96
- package/es/components/productCard/components/Action/index.d.ts +0 -3
- package/es/components/productCard/components/Header/index.d.ts +0 -3
- package/es/components/productCard/components/Sales/index.d.ts +0 -3
- package/es/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +0 -13
- package/es/components/productCard/locales.d.ts +0 -84
- package/es/components/virtual-keyboard/Amount/index.d.ts +0 -6
- package/es/components/virtual-keyboard/Amount/themeConfig.d.ts +0 -32
- package/es/components/virtual-keyboard/Amount/types.d.ts +0 -44
- package/es/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +0 -15
- package/es/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +0 -25
- package/es/components/virtual-keyboard/Keyboard/index.d.ts +0 -21
- package/es/components/virtual-keyboard/Number/index.d.ts +0 -5
- package/es/components/virtual-keyboard/Number/themeConfig.d.ts +0 -32
- package/es/components/virtual-keyboard/Number/types.d.ts +0 -26
- package/es/components/virtual-keyboard/VirtualKeyInput/index.d.ts +0 -13
- package/es/components/virtual-keyboard/index.d.ts +0 -25
- package/es/components/virtualInput/BaseVirtualInput/index.d.ts +0 -40
- package/es/components/virtualInput/index.d.ts +0 -24
- package/es/locales/en-US.d.ts +0 -297
- package/es/locales/zh-CN.d.ts +0 -292
- package/es/locales/zh-TW.d.ts +0 -292
- package/lib/components/auto-resize-text/auto-text-size-standalone.d.ts +0 -20
- package/lib/components/auto-resize-text/index.d.ts +0 -6
- package/lib/components/cardPro/index.d.ts +0 -4
- package/lib/components/drag-sort-tree/TreeItem/index.d.ts +0 -19
- package/lib/components/iconfont/index.d.ts +0 -8
- package/lib/components/keyboard/index.d.ts +0 -22
- package/lib/components/pisell-config-provider/context.d.ts +0 -22
- package/lib/components/pisell-config-provider/index.d.ts +0 -13
- package/lib/components/pisellAdjustPrice/index.d.ts +0 -4
- package/lib/components/pisellAdjustPrice/status.d.ts +0 -32
- package/lib/components/pisellAdjustPrice/type.d.ts +0 -22
- package/lib/components/pisellCheckboxGroup/index.d.ts +0 -40
- package/lib/components/pisellQRScanner/index.d.ts +0 -24
- package/lib/components/pisellText/components/Amount/index.d.ts +0 -20
- package/lib/components/pisellToast/index.d.ts +0 -17
- package/lib/components/pisellToast/squareToast/index.d.ts +0 -15
- package/lib/components/pisellToast/squareToast/methods.d.ts +0 -13
- package/lib/components/pisellToast/squareToast/renderImperatively.d.ts +0 -29
- package/lib/components/pisellToast/squareToast/toast.d.ts +0 -25
- package/lib/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +0 -3
- package/lib/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +0 -3
- package/lib/components/productCard/cartSkuCard/components/MultiDay/utils.d.ts +0 -14
- package/lib/components/productCard/cartSkuCard/components/Note/index.d.ts +0 -3
- package/lib/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +0 -27
- package/lib/components/productCard/cartSkuCard/components/discountReason/index.d.ts +0 -2
- package/lib/components/productCard/cartSkuCard/components/holders/index.d.ts +0 -3
- package/lib/components/productCard/cartSkuCard/components/packages/index.d.ts +0 -10
- package/lib/components/productCard/cartSkuCard/components/packages/utils.d.ts +0 -20
- package/lib/components/productCard/cartSkuCard/components/resources/index.d.ts +0 -3
- package/lib/components/productCard/cartSkuCard/components/sales/index.d.ts +0 -12
- package/lib/components/productCard/cartSkuCard/components/specs/index.d.ts +0 -3
- package/lib/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +0 -46
- package/lib/components/productCard/cartSkuCard/components/timeRange/index.d.ts +0 -6
- package/lib/components/productCard/cartSkuCard/index.d.ts +0 -10
- package/lib/components/productCard/cartSkuCard/locales.d.ts +0 -96
- package/lib/components/productCard/components/Action/index.d.ts +0 -3
- package/lib/components/productCard/components/Header/index.d.ts +0 -3
- package/lib/components/productCard/components/Sales/index.d.ts +0 -3
- package/lib/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +0 -13
- package/lib/components/productCard/locales.d.ts +0 -84
- package/lib/components/virtual-keyboard/Amount/index.d.ts +0 -6
- package/lib/components/virtual-keyboard/Amount/themeConfig.d.ts +0 -32
- package/lib/components/virtual-keyboard/Amount/types.d.ts +0 -44
- package/lib/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +0 -15
- package/lib/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +0 -25
- package/lib/components/virtual-keyboard/Keyboard/index.d.ts +0 -21
- package/lib/components/virtual-keyboard/Number/index.d.ts +0 -5
- package/lib/components/virtual-keyboard/Number/themeConfig.d.ts +0 -32
- package/lib/components/virtual-keyboard/Number/types.d.ts +0 -26
- package/lib/components/virtual-keyboard/VirtualKeyInput/index.d.ts +0 -13
- package/lib/components/virtual-keyboard/index.d.ts +0 -25
- package/lib/components/virtualInput/BaseVirtualInput/index.d.ts +0 -40
- package/lib/components/virtualInput/index.d.ts +0 -24
- package/lib/locales/en-US.d.ts +0 -297
- package/lib/locales/zh-CN.d.ts +0 -292
- package/lib/locales/zh-TW.d.ts +0 -292
|
@@ -5,7 +5,7 @@ export declare const paginationConfig: {
|
|
|
5
5
|
className: string;
|
|
6
6
|
defaultCurrent: number;
|
|
7
7
|
showTotal: (total: number, range: [number, number]) => string;
|
|
8
|
-
itemRender: (page: number, type: "page" | "
|
|
8
|
+
itemRender: (page: number, type: "page" | "prev" | "next" | "jump-prev" | "jump-next", element: React.ReactNode) => React.ReactNode;
|
|
9
9
|
responsive: boolean;
|
|
10
10
|
size: string;
|
|
11
11
|
};
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
1
7
|
import React from 'react';
|
|
2
8
|
import { withWrap } from "../../utils/hoc";
|
|
3
9
|
import { Card, Flex } from 'antd';
|
|
@@ -19,12 +25,13 @@ var CardPro = function CardPro(props) {
|
|
|
19
25
|
isShowHead = props.isShowHead,
|
|
20
26
|
className = props.className,
|
|
21
27
|
coverHeight = props.coverHeight,
|
|
22
|
-
badge = props.badge
|
|
28
|
+
badge = props.badge,
|
|
29
|
+
style = props.style;
|
|
23
30
|
return /*#__PURE__*/React.createElement(Card, {
|
|
24
31
|
title: null,
|
|
25
|
-
style: {
|
|
32
|
+
style: _objectSpread({
|
|
26
33
|
padding: 0
|
|
27
|
-
},
|
|
34
|
+
}, style),
|
|
28
35
|
className: classNames('pisell-cardPro-wrap', className, cover && 'pisell-cardPro-wrap-with-cover')
|
|
29
36
|
}, !!cover && /*#__PURE__*/React.createElement("div", {
|
|
30
37
|
className: classNames('pisell-cardPro-cover'),
|
|
@@ -19,7 +19,7 @@ interface UseTablePropsProps {
|
|
|
19
19
|
*/
|
|
20
20
|
declare const useTableProps: (props: UseTablePropsProps) => {
|
|
21
21
|
currentComponentId: any;
|
|
22
|
-
title: number | boolean |
|
|
22
|
+
title: number | boolean | JSX.Element | React.ReactFragment | (() => React.ReactNode) | null | undefined;
|
|
23
23
|
pagination: {
|
|
24
24
|
total: number;
|
|
25
25
|
current: number;
|
|
@@ -28,7 +28,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
|
|
|
28
28
|
showSizeChanger: boolean;
|
|
29
29
|
};
|
|
30
30
|
columns: import("./useColumns").Column[];
|
|
31
|
-
subTitle: number | boolean |
|
|
31
|
+
subTitle: number | boolean | JSX.Element | React.ReactFragment | (() => React.ReactNode) | null | undefined;
|
|
32
32
|
buttons: any[] | null;
|
|
33
33
|
filter: {
|
|
34
34
|
dom: any;
|
|
@@ -54,7 +54,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
|
|
|
54
54
|
width: number;
|
|
55
55
|
align: "center" | "left" | "right";
|
|
56
56
|
fixed: false | "left" | "right";
|
|
57
|
-
type: "
|
|
57
|
+
type: "button" | "link";
|
|
58
58
|
items: OperationItem[];
|
|
59
59
|
} | undefined;
|
|
60
60
|
operationContent?: {
|
|
@@ -72,7 +72,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
|
|
|
72
72
|
useCustomAction: boolean;
|
|
73
73
|
actionType: string;
|
|
74
74
|
openMode: "modal" | "drawer";
|
|
75
|
-
openContentSize: "
|
|
75
|
+
openContentSize: "large" | "small" | "middle";
|
|
76
76
|
openTitle: string;
|
|
77
77
|
key: string;
|
|
78
78
|
} | undefined;
|
|
@@ -119,37 +119,173 @@ export var useCountries = function useCountries() {
|
|
|
119
119
|
}
|
|
120
120
|
}, [isShop]);
|
|
121
121
|
var currentData = useMemo(function () {
|
|
122
|
+
var codeList = null;
|
|
122
123
|
if (isShop) {
|
|
123
124
|
var _appHelper$utils2;
|
|
124
|
-
|
|
125
|
-
return _objectSpread(_objectSpread({}, item), {}, {
|
|
126
|
-
prefix: "+".concat(item.calling_code)
|
|
127
|
-
});
|
|
128
|
-
});
|
|
125
|
+
codeList = (appHelper === null || appHelper === void 0 || (_appHelper$utils2 = appHelper.utils) === null || _appHelper$utils2 === void 0 || (_appHelper$utils2 = _appHelper$utils2.store) === null || _appHelper$utils2 === void 0 || (_appHelper$utils2 = _appHelper$utils2.getState()) === null || _appHelper$utils2 === void 0 || (_appHelper$utils2 = _appHelper$utils2.global) === null || _appHelper$utils2 === void 0 ? void 0 : _appHelper$utils2.codeList) || shopData;
|
|
129
126
|
} else if (isPc) {
|
|
130
127
|
var _appHelper$utils3;
|
|
131
|
-
|
|
132
|
-
if (codeList) {
|
|
133
|
-
return codeList.map(function (item) {
|
|
134
|
-
return _objectSpread(_objectSpread({}, item), {}, {
|
|
135
|
-
prefix: "+".concat(item.calling_code)
|
|
136
|
-
});
|
|
137
|
-
});
|
|
138
|
-
}
|
|
128
|
+
codeList = appHelper === null || appHelper === void 0 || (_appHelper$utils3 = appHelper.utils) === null || _appHelper$utils3 === void 0 || (_appHelper$utils3 = _appHelper$utils3.store) === null || _appHelper$utils3 === void 0 || (_appHelper$utils3 = _appHelper$utils3.getState()) === null || _appHelper$utils3 === void 0 || (_appHelper$utils3 = _appHelper$utils3.country) === null || _appHelper$utils3 === void 0 ? void 0 : _appHelper$utils3.country;
|
|
139
129
|
} else if (isH5) {
|
|
140
130
|
var _appHelper$utils4;
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
131
|
+
codeList = appHelper === null || appHelper === void 0 || (_appHelper$utils4 = appHelper.utils) === null || _appHelper$utils4 === void 0 || (_appHelper$utils4 = _appHelper$utils4.getStore()) === null || _appHelper$utils4 === void 0 || (_appHelper$utils4 = _appHelper$utils4.getState()) === null || _appHelper$utils4 === void 0 || (_appHelper$utils4 = _appHelper$utils4.country) === null || _appHelper$utils4 === void 0 ? void 0 : _appHelper$utils4.country;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
// 在shop、pc、h5中使用store中的数据,如果没有数据,则使用默认数据
|
|
135
|
+
if (isShop || isPc || isH5) {
|
|
136
|
+
var _codeList;
|
|
137
|
+
codeList = ((_codeList = codeList) === null || _codeList === void 0 ? void 0 : _codeList.length) > 0 ? codeList : defaultData;
|
|
138
|
+
console.log('codeList', codeList);
|
|
139
|
+
return codeList.map(function (item) {
|
|
140
|
+
return _objectSpread(_objectSpread({}, item), {}, {
|
|
141
|
+
prefix: "+".concat(item.calling_code)
|
|
147
142
|
});
|
|
148
|
-
}
|
|
143
|
+
});
|
|
149
144
|
}
|
|
150
145
|
return data;
|
|
151
|
-
}, [isShop, data, shopData]);
|
|
146
|
+
}, [isShop, isPc, isH5, data, shopData]);
|
|
152
147
|
return {
|
|
153
148
|
data: currentData
|
|
154
149
|
};
|
|
155
|
-
};
|
|
150
|
+
};
|
|
151
|
+
var defaultData = [{
|
|
152
|
+
name: 'Mexico',
|
|
153
|
+
code: 'MX',
|
|
154
|
+
calling_code: '52',
|
|
155
|
+
currency_code: 'MXN'
|
|
156
|
+
}, {
|
|
157
|
+
name: '美国',
|
|
158
|
+
code: 'US',
|
|
159
|
+
calling_code: '1',
|
|
160
|
+
currency_code: 'USD'
|
|
161
|
+
}, {
|
|
162
|
+
name: '加拿大',
|
|
163
|
+
code: 'CA',
|
|
164
|
+
calling_code: '1',
|
|
165
|
+
currency_code: 'CAD'
|
|
166
|
+
}, {
|
|
167
|
+
name: '澳大利亚',
|
|
168
|
+
code: 'AU',
|
|
169
|
+
calling_code: '61',
|
|
170
|
+
currency_code: 'AUD'
|
|
171
|
+
}, {
|
|
172
|
+
name: '新西兰',
|
|
173
|
+
code: 'NZ',
|
|
174
|
+
calling_code: '64',
|
|
175
|
+
currency_code: 'NZD'
|
|
176
|
+
}, {
|
|
177
|
+
name: '新加坡',
|
|
178
|
+
code: 'SG',
|
|
179
|
+
calling_code: '65',
|
|
180
|
+
currency_code: 'SGD'
|
|
181
|
+
}, {
|
|
182
|
+
name: '香港特别行政区',
|
|
183
|
+
code: 'HK',
|
|
184
|
+
calling_code: '852',
|
|
185
|
+
currency_code: 'HKD'
|
|
186
|
+
}, {
|
|
187
|
+
name: '台湾',
|
|
188
|
+
code: 'TW',
|
|
189
|
+
calling_code: '886',
|
|
190
|
+
currency_code: 'TWD'
|
|
191
|
+
}, {
|
|
192
|
+
name: '中国',
|
|
193
|
+
code: 'CN',
|
|
194
|
+
calling_code: '86',
|
|
195
|
+
currency_code: 'AUD'
|
|
196
|
+
}, {
|
|
197
|
+
name: '日本',
|
|
198
|
+
code: 'JP',
|
|
199
|
+
calling_code: '81',
|
|
200
|
+
currency_code: 'JPY'
|
|
201
|
+
}, {
|
|
202
|
+
name: '韩国',
|
|
203
|
+
code: 'KR',
|
|
204
|
+
calling_code: '82',
|
|
205
|
+
currency_code: 'KRW'
|
|
206
|
+
}, {
|
|
207
|
+
name: '马来西亚',
|
|
208
|
+
code: 'MY',
|
|
209
|
+
calling_code: '60',
|
|
210
|
+
currency_code: 'USD'
|
|
211
|
+
}, {
|
|
212
|
+
name: '英国',
|
|
213
|
+
code: 'GB',
|
|
214
|
+
calling_code: '44',
|
|
215
|
+
currency_code: 'GBP'
|
|
216
|
+
}, {
|
|
217
|
+
name: '法国',
|
|
218
|
+
code: 'FR',
|
|
219
|
+
calling_code: '33',
|
|
220
|
+
currency_code: 'EUR'
|
|
221
|
+
}, {
|
|
222
|
+
name: '意大利',
|
|
223
|
+
code: 'IT',
|
|
224
|
+
calling_code: '39',
|
|
225
|
+
currency_code: 'EUR'
|
|
226
|
+
}, {
|
|
227
|
+
name: 'Ireland',
|
|
228
|
+
code: 'IE',
|
|
229
|
+
calling_code: '353',
|
|
230
|
+
currency_code: 'EUR'
|
|
231
|
+
}, {
|
|
232
|
+
name: 'Netherlands',
|
|
233
|
+
code: 'NL',
|
|
234
|
+
calling_code: '31',
|
|
235
|
+
currency_code: 'EUR'
|
|
236
|
+
}, {
|
|
237
|
+
name: 'Germany',
|
|
238
|
+
code: 'DE',
|
|
239
|
+
calling_code: '49',
|
|
240
|
+
currency_code: 'EUR'
|
|
241
|
+
}, {
|
|
242
|
+
name: 'Spain',
|
|
243
|
+
code: 'ES',
|
|
244
|
+
calling_code: '34',
|
|
245
|
+
currency_code: 'EUR'
|
|
246
|
+
}, {
|
|
247
|
+
name: 'Finland',
|
|
248
|
+
code: 'FI',
|
|
249
|
+
calling_code: '358',
|
|
250
|
+
currency_code: 'EUR'
|
|
251
|
+
}, {
|
|
252
|
+
name: 'Hungary',
|
|
253
|
+
code: 'HU',
|
|
254
|
+
calling_code: '36',
|
|
255
|
+
currency_code: 'HUF'
|
|
256
|
+
}, {
|
|
257
|
+
name: 'Indonesia',
|
|
258
|
+
code: 'ID',
|
|
259
|
+
calling_code: '62',
|
|
260
|
+
currency_code: 'IDR'
|
|
261
|
+
}, {
|
|
262
|
+
name: 'India',
|
|
263
|
+
code: 'IND',
|
|
264
|
+
calling_code: '91',
|
|
265
|
+
currency_code: 'INR'
|
|
266
|
+
}, {
|
|
267
|
+
name: 'Nigeria',
|
|
268
|
+
code: 'NG',
|
|
269
|
+
calling_code: '234',
|
|
270
|
+
currency_code: 'NGN'
|
|
271
|
+
}, {
|
|
272
|
+
name: 'Islamic Republic of Pakistan',
|
|
273
|
+
code: 'PAK',
|
|
274
|
+
calling_code: '92',
|
|
275
|
+
currency_code: 'PRK'
|
|
276
|
+
}, {
|
|
277
|
+
name: 'Philippines',
|
|
278
|
+
code: 'PH',
|
|
279
|
+
calling_code: '63',
|
|
280
|
+
currency_code: 'PHP'
|
|
281
|
+
}, {
|
|
282
|
+
name: 'Thailand',
|
|
283
|
+
code: 'TH',
|
|
284
|
+
calling_code: '66',
|
|
285
|
+
currency_code: 'THB'
|
|
286
|
+
}, {
|
|
287
|
+
name: 'South Africa',
|
|
288
|
+
code: 'ZA',
|
|
289
|
+
calling_code: '27',
|
|
290
|
+
currency_code: 'ZAR'
|
|
291
|
+
}];
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
declare const SelectWithDataSource: (props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../../dataSourceForm/utils").WithModeProps & import("../../dataSourceForm/utils").WithFormItemProps & {
|
|
3
2
|
options?: any;
|
|
4
3
|
optionSourceType?: "default" | "custom" | "api" | undefined;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
declare const formFieldMap: {
|
|
3
2
|
FormItemCheckbox: import("react").FC<{}> & {
|
|
4
3
|
Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
@@ -60,21 +59,7 @@ declare const formFieldMap: {
|
|
|
60
59
|
FormItemTranslation: import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
61
60
|
FormItemIconSelect: import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
62
61
|
};
|
|
63
|
-
declare const getFieldComponent: (fieldComponent: string) =>
|
|
64
|
-
options?: any;
|
|
65
|
-
optionSourceType?: "default" | "custom" | "api" | undefined;
|
|
66
|
-
labelField: string;
|
|
67
|
-
valueField: string;
|
|
68
|
-
extraParams?: Record<string, any> | undefined;
|
|
69
|
-
} & {
|
|
70
|
-
dataSource?: any;
|
|
71
|
-
}) => JSX.Element) | import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps> | (import("react").FC<{}> & {
|
|
72
|
-
Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
73
|
-
} & {
|
|
74
|
-
Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
75
|
-
}) | import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & {
|
|
76
|
-
onChange: (value: string) => void;
|
|
77
|
-
} & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Phone/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Mobile/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<import("./Input/type").InputProps> & {
|
|
62
|
+
declare const getFieldComponent: (fieldComponent: string) => (import("react").FC<import("./Input/type").InputProps> & {
|
|
78
63
|
JSON: import("react").FC<any>;
|
|
79
64
|
Password: import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
80
65
|
TextArea: import("react").FC<import("antd/es/input").TextAreaProps & import("react").RefAttributes<import("antd/es/input/TextArea").TextAreaRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
@@ -94,9 +79,23 @@ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<
|
|
|
94
79
|
name?: string | undefined;
|
|
95
80
|
fieldKey?: string | undefined;
|
|
96
81
|
} & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
97
|
-
}) |
|
|
82
|
+
}) | (import("react").FC<{}> & {
|
|
98
83
|
Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
99
84
|
} & {
|
|
100
85
|
Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
101
|
-
})
|
|
86
|
+
}) | import("react").FC<import("./ColorPicker/type").ColorPickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<(import("antd").DatePickerProps & import("../dataSourceForm/utils").WithModeProps) & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<{}> & {
|
|
87
|
+
Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
88
|
+
} & {
|
|
89
|
+
Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
90
|
+
}) | ((props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
|
|
91
|
+
options?: any;
|
|
92
|
+
optionSourceType?: "default" | "custom" | "api" | undefined;
|
|
93
|
+
labelField: string;
|
|
94
|
+
valueField: string;
|
|
95
|
+
extraParams?: Record<string, any> | undefined;
|
|
96
|
+
} & {
|
|
97
|
+
dataSource?: any;
|
|
98
|
+
}) => JSX.Element) | import("react").FC<any> | import("react").FC<import("./TimePicker/type").TimePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Phone/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Mobile/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & {
|
|
99
|
+
onChange: (value: string) => void;
|
|
100
|
+
} & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps> | import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps> | import("react").FC<import("./DateRangePicker/type").DateRangePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Upload/type").UploadProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
102
101
|
export { getFieldComponent, formFieldMap };
|
|
@@ -2,7 +2,7 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
|
|
|
2
2
|
import { createFromIconfontCN } from '@ant-design/icons';
|
|
3
3
|
import React from 'react';
|
|
4
4
|
var MyIcon = createFromIconfontCN({
|
|
5
|
-
scriptUrl: 'https://static.pisellcdn.com/pisell2iconfont1.
|
|
5
|
+
scriptUrl: 'https://static.pisellcdn.com/pisell2iconfont1.16.js' // 在 iconfont.cn 上生成
|
|
6
6
|
});
|
|
7
7
|
var IconFont = function IconFont(props) {
|
|
8
8
|
return /*#__PURE__*/React.createElement(MyIcon, _extends({}, props, {
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const fieldMaps: {
|
|
3
2
|
text: {
|
|
4
3
|
field: {
|
|
@@ -198,12 +197,12 @@ export declare const fieldList: ({
|
|
|
198
197
|
field_icon: string;
|
|
199
198
|
field_name: string;
|
|
200
199
|
field_type: string;
|
|
201
|
-
default_value:
|
|
200
|
+
default_value: boolean;
|
|
202
201
|
} | {
|
|
203
202
|
field_icon: string;
|
|
204
203
|
field_name: string;
|
|
205
204
|
field_type: string;
|
|
206
|
-
default_value:
|
|
205
|
+
default_value: string;
|
|
207
206
|
} | {
|
|
208
207
|
field_icon: string;
|
|
209
208
|
field_name: string;
|
|
@@ -155,7 +155,7 @@ export declare const getSettingKeyArrByMode: ({ filter, columnSetting, dataSourc
|
|
|
155
155
|
sort?: SortType | undefined;
|
|
156
156
|
mode: "" | "localStorage" | "remote";
|
|
157
157
|
currentViewMode: ModeType;
|
|
158
|
-
}) => ("filters" | "filter_setting" | "
|
|
158
|
+
}) => ("filters" | "filter_setting" | "group_by" | "order_by" | "column_setting" | "view_mode" | "gallery_setting")[];
|
|
159
159
|
export declare const omit: (obj: Record<string, any>, keys: string[]) => Record<string, any>;
|
|
160
160
|
export declare const stringify: (obj: Record<string, any>) => string;
|
|
161
161
|
export {};
|
package/es/locales/en-US.js
CHANGED
|
@@ -360,5 +360,20 @@ export default {
|
|
|
360
360
|
'pisell-upload-camera-local-files': 'Local Files',
|
|
361
361
|
'pisell-upload-camera-capture': 'Capture',
|
|
362
362
|
'pisell-upload-camera-retake': 'Retake',
|
|
363
|
-
'pisell-upload-camera-use': 'Use photo'
|
|
363
|
+
'pisell-upload-camera-use': 'Use photo',
|
|
364
|
+
// 列表组件
|
|
365
|
+
'pisell-list-tab-group-default': 'Field',
|
|
366
|
+
'pisell-list-empty-text-default': 'No data available',
|
|
367
|
+
'pisell-list-load-more': 'Load More',
|
|
368
|
+
'pisell-list-view-less': 'View Less',
|
|
369
|
+
'pisell-list-pagination-total': function pisellListPaginationTotal(start, end, total) {
|
|
370
|
+
return "Showing ".concat(start, "-").concat(end, " of ").concat(total, " items");
|
|
371
|
+
},
|
|
372
|
+
'pisell-list-scroll-down': 'Scroll Down',
|
|
373
|
+
'pisell-list-scroll-right': 'Scroll Right',
|
|
374
|
+
'pisell-list-pagination-page-of': function pisellListPaginationPageOf(current, total) {
|
|
375
|
+
return "Page ".concat(current, " of ").concat(total);
|
|
376
|
+
},
|
|
377
|
+
'pisell-list-pagination-previous': 'Previous',
|
|
378
|
+
'pisell-list-pagination-next': 'Next'
|
|
364
379
|
};
|
package/es/locales/zh-CN.js
CHANGED
|
@@ -351,5 +351,20 @@ export default {
|
|
|
351
351
|
'pisell-upload-camera-local-files': '本地文件',
|
|
352
352
|
'pisell-upload-camera-capture': '拍摄/拍照',
|
|
353
353
|
'pisell-upload-camera-retake': '重拍',
|
|
354
|
-
'pisell-upload-camera-use': '使用照片'
|
|
354
|
+
'pisell-upload-camera-use': '使用照片',
|
|
355
|
+
// 列表组件
|
|
356
|
+
'pisell-list-tab-group-default': '字段',
|
|
357
|
+
'pisell-list-empty-text-default': '暂无数据',
|
|
358
|
+
'pisell-list-load-more': '查看更多',
|
|
359
|
+
'pisell-list-view-less': '查看更少',
|
|
360
|
+
'pisell-list-pagination-total': function pisellListPaginationTotal(start, end, total) {
|
|
361
|
+
return "\u663E\u793A\u7B2C ".concat(start, "-").concat(end, " \u6761\uFF0C\u5171 ").concat(total, " \u6761");
|
|
362
|
+
},
|
|
363
|
+
'pisell-list-scroll-down': '向下滚动',
|
|
364
|
+
'pisell-list-scroll-right': '向右滚动',
|
|
365
|
+
'pisell-list-pagination-page-of': function pisellListPaginationPageOf(current, total) {
|
|
366
|
+
return "\u7B2C ".concat(current, " \u9875 \u5171 ").concat(total, " \u9875");
|
|
367
|
+
},
|
|
368
|
+
'pisell-list-pagination-previous': '上一页',
|
|
369
|
+
'pisell-list-pagination-next': '下一页'
|
|
355
370
|
};
|
package/es/locales/zh-TW.js
CHANGED
|
@@ -352,5 +352,20 @@ export default {
|
|
|
352
352
|
'pisell-upload-camera-local-files': '本地文件',
|
|
353
353
|
'pisell-upload-camera-capture': '拍攝/拍照',
|
|
354
354
|
'pisell-upload-camera-retake': '重拍',
|
|
355
|
-
'pisell-upload-camera-use': '使用照片'
|
|
355
|
+
'pisell-upload-camera-use': '使用照片',
|
|
356
|
+
// 列表組件
|
|
357
|
+
'pisell-list-tab-group-default': '字段',
|
|
358
|
+
'pisell-list-empty-text-default': '暫無數據',
|
|
359
|
+
'pisell-list-load-more': '查看更多',
|
|
360
|
+
'pisell-list-view-less': '查看更少',
|
|
361
|
+
'pisell-list-pagination-total': function pisellListPaginationTotal(start, end, total) {
|
|
362
|
+
return "\u986F\u793A\u7B2C ".concat(start, "-").concat(end, " \u689D\uFF0C\u5171 ").concat(total, " \u689D");
|
|
363
|
+
},
|
|
364
|
+
'pisell-list-scroll-down': '向下滾動',
|
|
365
|
+
'pisell-list-scroll-right': '向右滾動',
|
|
366
|
+
'pisell-list-pagination-page-of': function pisellListPaginationPageOf(current, total) {
|
|
367
|
+
return "\u7B2C ".concat(current, " \u9801 \u5171 ").concat(total, " \u9801");
|
|
368
|
+
},
|
|
369
|
+
'pisell-list-pagination-previous': '上一頁',
|
|
370
|
+
'pisell-list-pagination-next': '下一頁'
|
|
356
371
|
};
|
|
@@ -5,7 +5,7 @@ export declare const paginationConfig: {
|
|
|
5
5
|
className: string;
|
|
6
6
|
defaultCurrent: number;
|
|
7
7
|
showTotal: (total: number, range: [number, number]) => string;
|
|
8
|
-
itemRender: (page: number, type: "page" | "
|
|
8
|
+
itemRender: (page: number, type: "page" | "prev" | "next" | "jump-prev" | "jump-next", element: React.ReactNode) => React.ReactNode;
|
|
9
9
|
responsive: boolean;
|
|
10
10
|
size: string;
|
|
11
11
|
};
|