@pisell/materials 1.0.445 → 1.0.446
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 +2 -2
- package/build/lowcode/preview.js +7 -7
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +7 -7
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +7 -7
- package/dist/umd/materials.min.css +1 -0
- package/dist/umd/materials.min.js +1 -0
- package/dist/umd/static/DotsSix.57d66266.svg +1 -0
- package/dist/umd/static/arrow-left.e542294f.svg +1 -0
- package/dist/umd/static/arrow-right.763f03e0.svg +1 -0
- package/dist/umd/static/filter-lines.04a54ae9.svg +1 -0
- package/dist/umd/static/help-circle.31c9be40.svg +1 -0
- package/dist/umd/static/switch-vertical-01.7ebe3ba8.svg +1 -0
- package/es/components/button/index.js +0 -2
- package/es/components/date-picker/index.js +2 -2
- package/es/components/drag-sort-tree/index.d.ts +1 -0
- package/es/components/drag-sort-tree/index.js +1 -2
- package/es/components/iconfont/index.js +1 -1
- package/es/components/pisellInformationEntry/Input/index.js +3 -9
- package/es/components/pisellInformationEntry/constants.d.ts +0 -10
- package/es/components/pisellInformationEntry/constants.js +0 -10
- package/es/components/pisellInformationEntry/index.js +4 -21
- package/es/components/pisellInformationEntry/index.less +1 -1
- package/es/components/pisellLoading/index.d.ts +0 -2
- package/es/components/pisellLoading/index.js +1 -3
- package/es/components/pisellWalletPassCard/index.d.ts +0 -2
- package/es/components/pisellWalletPassCard/index.js +4 -16
- package/es/components/pisellWalletPassCard/index.less +0 -3
- package/es/components/record-view/index.d.ts +3 -3
- package/es/components/record-view/index.js +16 -20
- package/es/components/select-time/RightPanel/index.d.ts +2 -2
- package/es/components/select-time/RightPanel/index.js +7 -7
- package/es/components/table/Actions/component/ExportImport/index.js +3 -3
- package/es/components/table/BasicTable/index.js +1 -7
- package/es/components/table/Gallery/components/GalleryItem/components/Title/index.less +1 -1
- package/es/components/table/Gallery/components/GalleryItem/index.js +3 -10
- package/es/components/table/Gallery/components/GalleryItem/index.less +0 -1
- package/es/components/table/Gallery/index.js +4 -14
- package/es/components/table/Table/index.js +1 -2
- package/es/components/table/Table/utils.d.ts +2 -14
- package/es/components/table/Table/utils.js +2 -6
- package/es/components/table/hooks/useTableSetting.js +5 -26
- package/es/components/table/hooks/useTransDataSource.d.ts +0 -1
- package/es/components/table/hooks/useTransDataSource.js +4 -6
- package/es/components/table/types.d.ts +0 -2
- package/es/components/tabs/index.js +7 -4
- package/es/components/virtual-keyboard/Keyboard/index.d.ts +0 -1
- package/es/components/virtual-keyboard/Keyboard/index.js +2 -10
- package/es/index.d.ts +3 -9
- package/es/index.js +3 -9
- package/es/locales/en-US.d.ts +0 -14
- package/es/locales/en-US.js +1 -16
- package/es/locales/zh-CN.d.ts +0 -14
- package/es/locales/zh-CN.js +1 -16
- package/es/locales/zh-TW.d.ts +0 -14
- package/es/locales/zh-TW.js +1 -16
- package/es/utils/index.d.ts +0 -1
- package/es/utils/index.js +1 -4
- package/lib/components/button/index.js +0 -2
- package/lib/components/date-picker/index.js +2 -2
- package/lib/components/drag-sort-tree/index.d.ts +1 -0
- package/lib/components/drag-sort-tree/index.js +1 -0
- package/lib/components/iconfont/index.js +1 -1
- package/lib/components/pisellInformationEntry/Input/index.js +1 -9
- package/lib/components/pisellInformationEntry/constants.d.ts +0 -10
- package/lib/components/pisellInformationEntry/constants.js +0 -12
- package/lib/components/pisellInformationEntry/index.js +2 -18
- package/lib/components/pisellInformationEntry/index.less +1 -1
- package/lib/components/pisellLoading/index.d.ts +0 -2
- package/lib/components/pisellLoading/index.js +1 -2
- package/lib/components/pisellWalletPassCard/index.d.ts +0 -2
- package/lib/components/pisellWalletPassCard/index.js +4 -8
- package/lib/components/pisellWalletPassCard/index.less +0 -3
- package/lib/components/record-view/index.d.ts +3 -3
- package/lib/components/record-view/index.js +3 -4
- package/lib/components/select-time/RightPanel/index.d.ts +2 -2
- package/lib/components/table/Actions/component/ExportImport/index.js +4 -3
- package/lib/components/table/BasicTable/index.js +1 -5
- package/lib/components/table/Gallery/components/GalleryItem/components/Title/index.less +1 -1
- package/lib/components/table/Gallery/components/GalleryItem/index.js +4 -18
- package/lib/components/table/Gallery/components/GalleryItem/index.less +0 -1
- package/lib/components/table/Gallery/index.js +3 -14
- package/lib/components/table/Table/index.js +1 -2
- package/lib/components/table/Table/utils.d.ts +2 -14
- package/lib/components/table/Table/utils.js +1 -7
- package/lib/components/table/hooks/useTableSetting.js +9 -23
- package/lib/components/table/hooks/useTransDataSource.d.ts +0 -1
- package/lib/components/table/hooks/useTransDataSource.js +4 -5
- package/lib/components/table/types.d.ts +0 -2
- package/lib/components/tabs/index.js +1 -2
- package/lib/components/virtual-keyboard/Keyboard/index.d.ts +0 -1
- package/lib/components/virtual-keyboard/Keyboard/index.js +2 -15
- package/lib/index.d.ts +3 -9
- package/lib/index.js +2 -20
- package/lib/locales/en-US.d.ts +0 -14
- package/lib/locales/en-US.js +1 -16
- package/lib/locales/zh-CN.d.ts +0 -14
- package/lib/locales/zh-CN.js +1 -16
- package/lib/locales/zh-TW.d.ts +0 -14
- package/lib/locales/zh-TW.js +1 -16
- package/lib/utils/index.d.ts +0 -1
- package/lib/utils/index.js +2 -7
- package/package.json +3 -3
- package/es/components/browserSelect/chevron-down.png +0 -0
- package/es/components/browserSelect/index.d.ts +0 -15
- package/es/components/browserSelect/index.js +0 -36
- package/es/components/browserSelect/index.less +0 -18
- package/es/components/buttonGroupEdit/index.d.ts +0 -8
- package/es/components/buttonGroupEdit/index.js +0 -411
- package/es/components/buttonGroupPreview/index.d.ts +0 -20
- package/es/components/buttonGroupPreview/index.js +0 -81
- package/es/components/cardPro/index.d.ts +0 -4
- package/es/components/cardPro/index.js +0 -66
- package/es/components/cardPro/index.less +0 -58
- package/es/components/date-picker/constants.d.ts +0 -39
- package/es/components/date-picker/constants.js +0 -76
- package/es/components/date-picker/datePickerCpt.d.ts +0 -8
- package/es/components/date-picker/datePickerCpt.js +0 -370
- package/es/components/date-picker/hooks/useMediaQuery.d.ts +0 -2
- package/es/components/date-picker/hooks/useMediaQuery.js +0 -28
- package/es/components/date-picker/index.less +0 -1880
- package/es/components/picker-view/index.d.ts +0 -2
- package/es/components/picker-view/index.js +0 -2
- package/es/components/pisellInformationEntry/hooks/useTerminalPeripherals.d.ts +0 -8
- package/es/components/pisellInformationEntry/hooks/useTerminalPeripherals.js +0 -54
- package/es/components/pisellTags/index.d.ts +0 -13
- package/es/components/pisellTags/index.js +0 -83
- package/es/components/pisellTags/index.less +0 -17
- package/es/components/pisellTags/utils.d.ts +0 -1
- package/es/components/pisellTags/utils.js +0 -89
- package/es/components/section-footers/index.d.ts +0 -3
- package/es/components/section-footers/index.js +0 -4
- package/lib/components/browserSelect/chevron-down.png +0 -0
- package/lib/components/browserSelect/index.d.ts +0 -15
- package/lib/components/browserSelect/index.js +0 -59
- package/lib/components/browserSelect/index.less +0 -18
- package/lib/components/buttonGroupEdit/index.d.ts +0 -8
- package/lib/components/buttonGroupEdit/index.js +0 -234
- package/lib/components/buttonGroupPreview/index.d.ts +0 -20
- package/lib/components/buttonGroupPreview/index.js +0 -65
- package/lib/components/cardPro/index.d.ts +0 -4
- package/lib/components/cardPro/index.js +0 -60
- package/lib/components/cardPro/index.less +0 -58
- package/lib/components/date-picker/constants.d.ts +0 -39
- package/lib/components/date-picker/constants.js +0 -78
- package/lib/components/date-picker/datePickerCpt.d.ts +0 -8
- package/lib/components/date-picker/datePickerCpt.js +0 -403
- package/lib/components/date-picker/hooks/useMediaQuery.d.ts +0 -2
- package/lib/components/date-picker/hooks/useMediaQuery.js +0 -43
- package/lib/components/date-picker/index.less +0 -1880
- package/lib/components/picker-view/index.d.ts +0 -2
- package/lib/components/picker-view/index.js +0 -36
- package/lib/components/pisellInformationEntry/hooks/useTerminalPeripherals.d.ts +0 -8
- package/lib/components/pisellInformationEntry/hooks/useTerminalPeripherals.js +0 -83
- package/lib/components/pisellTags/index.d.ts +0 -13
- package/lib/components/pisellTags/index.js +0 -113
- package/lib/components/pisellTags/index.less +0 -17
- package/lib/components/pisellTags/utils.d.ts +0 -1
- package/lib/components/pisellTags/utils.js +0 -86
- package/lib/components/section-footers/index.d.ts +0 -3
- package/lib/components/section-footers/index.js +0 -28
|
@@ -46,8 +46,7 @@ var Gallery = function Gallery(props) {
|
|
|
46
46
|
form: form,
|
|
47
47
|
localPagination: !!(pagination !== null && pagination !== void 0 && pagination.localPagination),
|
|
48
48
|
rowKey: rowKey,
|
|
49
|
-
filter: filter
|
|
50
|
-
currentView: 'gallery'
|
|
49
|
+
filter: filter
|
|
51
50
|
});
|
|
52
51
|
useEffect(function () {
|
|
53
52
|
onDataSourceChange === null || onDataSourceChange === void 0 ? void 0 : onDataSourceChange(dataSource);
|
|
@@ -73,12 +72,6 @@ var Gallery = function Gallery(props) {
|
|
|
73
72
|
var gap = useMemo(function () {
|
|
74
73
|
return [horizontalGutter, verticalGutter];
|
|
75
74
|
}, [horizontalGutter, verticalGutter]);
|
|
76
|
-
var contentIsShowLabel = useMemo(function () {
|
|
77
|
-
if (typeof gallery.content.showLabel === 'boolean') {
|
|
78
|
-
return gallery.content.showLabel;
|
|
79
|
-
}
|
|
80
|
-
return true;
|
|
81
|
-
}, [gallery.content.showLabel]);
|
|
82
75
|
var rowHeight = useMemo(function () {
|
|
83
76
|
var _header$fields;
|
|
84
77
|
if (fixedHeight) {
|
|
@@ -89,7 +82,7 @@ var Gallery = function Gallery(props) {
|
|
|
89
82
|
var headerFieldHeight = 0;
|
|
90
83
|
var contentHeight = 0;
|
|
91
84
|
var footerHeight = 0;
|
|
92
|
-
if (cover.show && (gallery_setting === null || gallery_setting === void 0 ? void 0 : gallery_setting.coverField) !==
|
|
85
|
+
if (cover.show && (gallery_setting === null || gallery_setting === void 0 ? void 0 : gallery_setting.coverField) !== "noCover") {
|
|
93
86
|
coverHeight = cover.height;
|
|
94
87
|
}
|
|
95
88
|
if (title.field) {
|
|
@@ -102,10 +95,7 @@ var Gallery = function Gallery(props) {
|
|
|
102
95
|
var fieldCount = column_setting.filter(function (item) {
|
|
103
96
|
return item.isShow;
|
|
104
97
|
}).length;
|
|
105
|
-
var itemHeight = FIELD_VALUE_HEIGHT;
|
|
106
|
-
if (contentIsShowLabel && gallery_setting.isShowLabel && gallery_setting.compactMode !== "compact") {
|
|
107
|
-
itemHeight = FIELD_LABEL_HEIGHT + FIELD_VALUE_HEIGHT;
|
|
108
|
-
}
|
|
98
|
+
var itemHeight = gallery_setting.isShowLabel && gallery_setting.compactMode !== "compact" ? FIELD_LABEL_HEIGHT + FIELD_VALUE_HEIGHT : FIELD_VALUE_HEIGHT;
|
|
109
99
|
contentHeight = itemHeight * fieldCount;
|
|
110
100
|
if (gallery_setting.compactMode === "compact") {
|
|
111
101
|
contentHeight = contentHeight * 0.8;
|
|
@@ -115,7 +105,7 @@ var Gallery = function Gallery(props) {
|
|
|
115
105
|
footerHeight = footer.height;
|
|
116
106
|
}
|
|
117
107
|
return coverHeight + titleHeight + headerFieldHeight + contentHeight + footerHeight;
|
|
118
|
-
}, [cardHeight, fixedHeight, cover, title, gallery_setting, column_setting, header, footer
|
|
108
|
+
}, [cardHeight, fixedHeight, cover, title, gallery_setting, column_setting, header, footer]);
|
|
119
109
|
return /*#__PURE__*/React.createElement(Spin, {
|
|
120
110
|
spinning: loading,
|
|
121
111
|
wrapperClassName: "".concat(prefix, "gallery-spin")
|
|
@@ -82,8 +82,7 @@ var GridViewTable = function GridViewTable(_ref) {
|
|
|
82
82
|
form: form,
|
|
83
83
|
localPagination: !!(tableProps !== null && tableProps !== void 0 && (_tableProps$paginatio2 = tableProps.pagination) !== null && _tableProps$paginatio2 !== void 0 && _tableProps$paginatio2.localPagination),
|
|
84
84
|
rowKey: tableProps.rowKey,
|
|
85
|
-
filter: filter
|
|
86
|
-
currentView: 'table'
|
|
85
|
+
filter: filter
|
|
87
86
|
});
|
|
88
87
|
useEffect(function () {
|
|
89
88
|
dispatch({
|
|
@@ -81,10 +81,7 @@ export declare const setTableSettingToLocalStorage: ({ tableId, tableSettingObj,
|
|
|
81
81
|
}>;
|
|
82
82
|
currentViewMode: ModeType;
|
|
83
83
|
currentSettingHash: string;
|
|
84
|
-
}) =>
|
|
85
|
-
key: string;
|
|
86
|
-
value: Record<string, any>;
|
|
87
|
-
} | undefined;
|
|
84
|
+
}) => void;
|
|
88
85
|
export declare const clearTableSettingToLocalStorage: (tableId?: string) => void;
|
|
89
86
|
/**
|
|
90
87
|
* 从本地存储中获取表格设置, 全部配置
|
|
@@ -115,16 +112,7 @@ export declare const setFormValuesToLocalStorage: ({ tableId, allValues, keys, c
|
|
|
115
112
|
keys?: string[] | undefined;
|
|
116
113
|
currentViewMode: ModeType;
|
|
117
114
|
currentSettingHash: string;
|
|
118
|
-
}) =>
|
|
119
|
-
key: string;
|
|
120
|
-
value: Record<string, any>;
|
|
121
|
-
} | undefined;
|
|
122
|
-
/**
|
|
123
|
-
* 获取表格键值
|
|
124
|
-
* @param tableId 表格ID
|
|
125
|
-
* @returns 返回格式化后的表格键值
|
|
126
|
-
*/
|
|
127
|
-
export declare const getTableKey: (tableId: string) => string;
|
|
115
|
+
}) => void;
|
|
128
116
|
/**
|
|
129
117
|
* 合并筛选设置
|
|
130
118
|
* @param list 列表数据
|
|
@@ -271,10 +271,6 @@ export var setTableSettingToLocalStorage = function setTableSettingToLocalStorag
|
|
|
271
271
|
currentSettingHash: currentSettingHash
|
|
272
272
|
}, currentViewMode, _objectSpread(_objectSpread({}, newData[currentViewMode] || {}), itemSetting)));
|
|
273
273
|
localStorage.setItem(getTableKey(tableId), JSON.stringify(newData));
|
|
274
|
-
return {
|
|
275
|
-
key: getTableKey(tableId),
|
|
276
|
-
value: newData
|
|
277
|
-
};
|
|
278
274
|
};
|
|
279
275
|
export var clearTableSettingToLocalStorage = function clearTableSettingToLocalStorage(tableId) {
|
|
280
276
|
if (!tableId) return;
|
|
@@ -331,7 +327,7 @@ export var setFormValuesToLocalStorage = function setFormValuesToLocalStorage(_r
|
|
|
331
327
|
keys === null || keys === void 0 ? void 0 : keys.forEach(function (key) {
|
|
332
328
|
obj[key] = allValues === null || allValues === void 0 ? void 0 : allValues[key];
|
|
333
329
|
});
|
|
334
|
-
|
|
330
|
+
setTableSettingToLocalStorage({
|
|
335
331
|
tableId: tableId,
|
|
336
332
|
tableSettingObj: obj,
|
|
337
333
|
currentViewMode: currentViewMode,
|
|
@@ -344,7 +340,7 @@ export var setFormValuesToLocalStorage = function setFormValuesToLocalStorage(_r
|
|
|
344
340
|
* @param tableId 表格ID
|
|
345
341
|
* @returns 返回格式化后的表格键值
|
|
346
342
|
*/
|
|
347
|
-
|
|
343
|
+
var getTableKey = function getTableKey(tableId) {
|
|
348
344
|
return "".concat(tableKeyPrefix, "-").concat(tableId);
|
|
349
345
|
};
|
|
350
346
|
|
|
@@ -6,10 +6,8 @@ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _ty
|
|
|
6
6
|
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
7
7
|
import { useMemo } from "react";
|
|
8
8
|
import { getSettingKeyArrByMode, getTableSettingByCurrentViewMode, getTableSettingFromLocalStorage, mergeColumnSetting, mergeFilterSetting, setFormValuesToLocalStorage } from "../Table/utils";
|
|
9
|
-
import useEngineContext from "../../../hooks/useEngineContext";
|
|
10
9
|
import { useMemoizedFn } from "ahooks";
|
|
11
10
|
var useTableSetting = function useTableSetting(params) {
|
|
12
|
-
var _context$appHelper;
|
|
13
11
|
var tableId = params.tableId,
|
|
14
12
|
filter = params.filter,
|
|
15
13
|
columnSetting = params.columnSetting,
|
|
@@ -21,10 +19,6 @@ var useTableSetting = function useTableSetting(params) {
|
|
|
21
19
|
gallery = params.gallery,
|
|
22
20
|
currentSettingHash = params.currentSettingHash,
|
|
23
21
|
exportImport = params.exportImport;
|
|
24
|
-
var context = useEngineContext();
|
|
25
|
-
var _ref = ((_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 ? void 0 : _context$appHelper.utils) || {},
|
|
26
|
-
isTerminal = _ref.isTerminal,
|
|
27
|
-
interaction = _ref.interaction;
|
|
28
22
|
var columnsMap = useMemo(function () {
|
|
29
23
|
return new Map(propsColumns.map(function (item) {
|
|
30
24
|
return [item.key, item];
|
|
@@ -45,10 +39,10 @@ var useTableSetting = function useTableSetting(params) {
|
|
|
45
39
|
}
|
|
46
40
|
return propsColumns;
|
|
47
41
|
}, [propsColumns, currentViewMode, gallery, columnsMap]);
|
|
48
|
-
var
|
|
49
|
-
list =
|
|
50
|
-
quickFilterMaxLength =
|
|
51
|
-
sortButtonShow =
|
|
42
|
+
var _ref = filter || {},
|
|
43
|
+
list = _ref.list,
|
|
44
|
+
quickFilterMaxLength = _ref.quickFilterMaxLength,
|
|
45
|
+
sortButtonShow = _ref.sortButtonShow;
|
|
52
46
|
var defaultGalleryCoverSetting = useMemo(function () {
|
|
53
47
|
var _gallery$cover, _columns$find;
|
|
54
48
|
return {
|
|
@@ -164,29 +158,14 @@ var useTableSetting = function useTableSetting(params) {
|
|
|
164
158
|
* @param values
|
|
165
159
|
*/
|
|
166
160
|
var setTableSetting = useMemoizedFn(function (values) {
|
|
167
|
-
|
|
161
|
+
setFormValuesToLocalStorage({
|
|
168
162
|
tableId: tableId,
|
|
169
163
|
allValues: values,
|
|
170
164
|
keys: localStorageSettingKeyArr,
|
|
171
165
|
currentViewMode: currentViewMode,
|
|
172
166
|
currentSettingHash: currentSettingHash
|
|
173
167
|
});
|
|
174
|
-
/*
|
|
175
|
-
if (isTerminal?.() && result) {
|
|
176
|
-
interaction?.utils?.postMessageToApp?.({
|
|
177
|
-
module: "global",
|
|
178
|
-
key: "local_storage",
|
|
179
|
-
data: {
|
|
180
|
-
type: "set",
|
|
181
|
-
value: {
|
|
182
|
-
[result.key]: result.value
|
|
183
|
-
},
|
|
184
|
-
},
|
|
185
|
-
})
|
|
186
|
-
}
|
|
187
|
-
*/
|
|
188
168
|
});
|
|
189
|
-
|
|
190
169
|
var tableSetting = useMemo(function () {
|
|
191
170
|
return _objectSpread(_objectSpread({}, tableLocalSetting), defaultTableSetting);
|
|
192
171
|
}, [tableLocalSetting, defaultTableSetting]);
|
|
@@ -6,7 +6,6 @@ declare type UseTransDataSourceParams = {
|
|
|
6
6
|
dataSource: Record<string, any>[];
|
|
7
7
|
rowKey: string | ((params: any) => string);
|
|
8
8
|
filter: FilterType;
|
|
9
|
-
currentView: 'gallery' | 'table';
|
|
10
9
|
};
|
|
11
10
|
declare const useTransDataSource: (params: UseTransDataSourceParams) => Record<string, any>[];
|
|
12
11
|
export default useTransDataSource;
|
|
@@ -14,8 +14,7 @@ var useTransDataSource = function useTransDataSource(params) {
|
|
|
14
14
|
localPagination = params.localPagination,
|
|
15
15
|
pDataSource = params.dataSource,
|
|
16
16
|
rowKey = params.rowKey,
|
|
17
|
-
filter = params.filter
|
|
18
|
-
currentView = params.currentView;
|
|
17
|
+
filter = params.filter;
|
|
19
18
|
var sort = Form.useWatch("order_by", {
|
|
20
19
|
form: form,
|
|
21
20
|
preserve: true
|
|
@@ -82,13 +81,12 @@ var useTransDataSource = function useTransDataSource(params) {
|
|
|
82
81
|
if (sortObj) {
|
|
83
82
|
newDataSource = sortDataSource(newDataSource, sortObj);
|
|
84
83
|
}
|
|
85
|
-
|
|
86
|
-
// 在table视图时进行group分组
|
|
87
|
-
if (groupDetail && currentView === 'table') {
|
|
84
|
+
if (groupDetail) {
|
|
88
85
|
newDataSource = groupDataSource(newDataSource, groupDetail, rowKey);
|
|
89
86
|
}
|
|
90
87
|
return newDataSource;
|
|
91
|
-
}, [pDataSource, localPagination, sortObj, groupDetail, filterLocalArr, filters
|
|
88
|
+
}, [pDataSource, localPagination, sortObj, groupDetail, filterLocalArr, filters]);
|
|
89
|
+
console.log('dataSourcedataSource', dataSource);
|
|
92
90
|
return dataSource;
|
|
93
91
|
};
|
|
94
92
|
export default useTransDataSource;
|
|
@@ -19,7 +19,7 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
|
|
|
19
19
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
20
20
|
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
21
21
|
import React, { Component } from 'react';
|
|
22
|
-
import { Tabs as OriginalTabs } from 'antd';
|
|
22
|
+
import { Badge, Tabs as OriginalTabs } from 'antd';
|
|
23
23
|
import { warning } from "../../utils/warning";
|
|
24
24
|
import classNames from 'classnames';
|
|
25
25
|
import "./index.less";
|
|
@@ -54,8 +54,6 @@ var Tabs = /*#__PURE__*/function (_Component) {
|
|
|
54
54
|
});
|
|
55
55
|
_defineProperty(_assertThisInitialized(_this), "renderIconLabelTabBar", function (props, DefaultTabBar) {
|
|
56
56
|
var _this$props2;
|
|
57
|
-
console.log('%c [ props ]-31', 'font-size:13px; background:#4d3662; color:#917aa6;', props);
|
|
58
|
-
debugger;
|
|
59
57
|
var _this$props = _this.props,
|
|
60
58
|
items = _this$props.items,
|
|
61
59
|
sidebarWidth = _this$props.sidebarWidth;
|
|
@@ -77,7 +75,12 @@ var Tabs = /*#__PURE__*/function (_Component) {
|
|
|
77
75
|
onClick: function onClick(e) {
|
|
78
76
|
return props.onTabClick(item.key, e);
|
|
79
77
|
}
|
|
80
|
-
}, /*#__PURE__*/React.createElement(
|
|
78
|
+
}, /*#__PURE__*/React.createElement(Badge, {
|
|
79
|
+
count: item.badge,
|
|
80
|
+
offset: [0, 6]
|
|
81
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
82
|
+
className: "".concat(prefix, "tab-bar-icon-wrap")
|
|
83
|
+
}, item.icon)), /*#__PURE__*/React.createElement("span", {
|
|
81
84
|
className: "".concat(prefix, "tab-bar-label")
|
|
82
85
|
}, item.label));
|
|
83
86
|
}), props.extra);
|
|
@@ -15,7 +15,6 @@ export interface KeyboardProps {
|
|
|
15
15
|
onChange?: (value?: ItemValue) => void;
|
|
16
16
|
items?: Item[];
|
|
17
17
|
rightItems?: Item[];
|
|
18
|
-
keydown?: boolean;
|
|
19
18
|
}
|
|
20
19
|
declare const _default: React.MemoExoticComponent<(props: KeyboardProps) => React.JSX.Element>;
|
|
21
20
|
export default _default;
|
|
@@ -9,7 +9,7 @@ import { Button } from 'antd';
|
|
|
9
9
|
import "./index.less";
|
|
10
10
|
import classNames from 'classnames';
|
|
11
11
|
import { useEventListener, useMemoizedFn, useSize } from 'ahooks';
|
|
12
|
-
var list = ['1', '2', '3', '4', '5', '6', '7', '8', '9', '0', '
|
|
12
|
+
var list = ['1', '2', '3', '4', '5', '6', '7', '8', '9', '0', 'ok'];
|
|
13
13
|
var defaultArr = [];
|
|
14
14
|
var Keyboard = function Keyboard(props) {
|
|
15
15
|
var _props$items = props.items,
|
|
@@ -17,23 +17,15 @@ var Keyboard = function Keyboard(props) {
|
|
|
17
17
|
className = props.className,
|
|
18
18
|
style = props.style,
|
|
19
19
|
onChange = props.onChange,
|
|
20
|
-
rightItems = props.rightItems
|
|
21
|
-
_props$keydown = props.keydown,
|
|
22
|
-
keydown = _props$keydown === void 0 ? true : _props$keydown;
|
|
20
|
+
rightItems = props.rightItems;
|
|
23
21
|
var contentRef = useRef(null);
|
|
24
22
|
var size = useSize(contentRef);
|
|
25
23
|
useEventListener('keydown', function (ev) {
|
|
26
24
|
console.log('ev', ev);
|
|
27
|
-
if (!keydown) {
|
|
28
|
-
return;
|
|
29
|
-
}
|
|
30
25
|
var key = ev.key;
|
|
31
26
|
if (key === 'Enter') {
|
|
32
27
|
key = 'ok';
|
|
33
28
|
}
|
|
34
|
-
if (key === 'keydown') {
|
|
35
|
-
key = '+';
|
|
36
|
-
}
|
|
37
29
|
if (list.includes(key)) {
|
|
38
30
|
// let dom = document.querySelector(`#virtual-keyboard-${ev.key}`);
|
|
39
31
|
// if (dom) {
|
package/es/index.d.ts
CHANGED
|
@@ -37,8 +37,6 @@ export { Timeline } from 'antd';
|
|
|
37
37
|
export { Tooltip } from 'antd';
|
|
38
38
|
export { version } from 'antd';
|
|
39
39
|
export { default as Typography } from './components/typography';
|
|
40
|
-
export { default as ButtonGroupEdit } from './components/buttonGroupEdit';
|
|
41
|
-
export { default as ButtonGroupPreview } from './components/buttonGroupPreview';
|
|
42
40
|
export { default as Skeleton } from './components/skeleton';
|
|
43
41
|
export { default as Checkbox } from './components/checkbox';
|
|
44
42
|
export { default as Button } from './components/button';
|
|
@@ -74,13 +72,10 @@ export { default as List } from './components/list';
|
|
|
74
72
|
export { default as Sort } from './components/sort';
|
|
75
73
|
export { default as InputNumberRange } from './components/input-number-range';
|
|
76
74
|
export { default as LowCodePage } from './components/lowCodePage';
|
|
77
|
-
export { default as PickerView } from './components/picker-view';
|
|
78
75
|
export { default as Segmented } from './components/segmented';
|
|
79
|
-
export { default as CardPro } from './components/cardPro';
|
|
80
76
|
export { default as VirtualKeyboard } from './components/virtual-keyboard';
|
|
81
77
|
export { default as VirtualKeyboardTime } from './components/virtual-keyboard/Time';
|
|
82
78
|
export { default as SelectTime } from './components/select-time';
|
|
83
|
-
export { default as sectionFooters } from './components/section-footers';
|
|
84
79
|
export { default as AutoCompleteNumber } from './components/auto-complete-number';
|
|
85
80
|
export { default as BatchEditor } from './components/batch-editor';
|
|
86
81
|
export { default as DragSortTree } from './components/drag-sort-tree';
|
|
@@ -106,11 +101,10 @@ export { default as PisellAlert } from './components/pisellAlert';
|
|
|
106
101
|
export { default as PisellCard } from './components/pisellCard';
|
|
107
102
|
export { default as PisellInformationEntry } from './components/pisellInformationEntry';
|
|
108
103
|
export { default as usePisellConfig } from './components/pisell-config-provider/hooks/usePisellConfig';
|
|
109
|
-
export { globalConfig, default as PisellContext
|
|
110
|
-
export { default as PisellTags } from './components/pisellTags';
|
|
111
|
-
export { default as PisellStatisticList } from './components/pisellStatisticList';
|
|
112
|
-
export { default as PisellFloatingPanel } from './components/pisellFloatingPanel';
|
|
104
|
+
export { globalConfig, default as PisellContext } from './components/pisell-config-provider/context';
|
|
113
105
|
export { default as PisellPriceKeyboard } from './components/virtual-keyboard/Amount';
|
|
114
106
|
export { default as PisellNumberKeyboard } from './components/virtual-keyboard/Number';
|
|
115
107
|
export { default as PisellAdjustPrice } from './components/pisellAdjustPrice';
|
|
116
108
|
export { default as PisellAdjustPriceInputNumber } from './components/pisellAdjustPrice/PisellAdjustPriceInputNumber';
|
|
109
|
+
export { default as PisellStatisticList } from './components/pisellStatisticList';
|
|
110
|
+
export { default as PisellFloatingPanel } from './components/pisellFloatingPanel';
|
package/es/index.js
CHANGED
|
@@ -57,8 +57,6 @@ export { Timeline } from 'antd';
|
|
|
57
57
|
export { Tooltip } from 'antd';
|
|
58
58
|
export { version } from 'antd';
|
|
59
59
|
export { default as Typography } from "./components/typography";
|
|
60
|
-
export { default as ButtonGroupEdit } from "./components/buttonGroupEdit";
|
|
61
|
-
export { default as ButtonGroupPreview } from "./components/buttonGroupPreview";
|
|
62
60
|
export { default as Skeleton } from "./components/skeleton";
|
|
63
61
|
export { default as Checkbox } from "./components/checkbox";
|
|
64
62
|
export { default as Button } from "./components/button";
|
|
@@ -94,13 +92,10 @@ export { default as List } from "./components/list";
|
|
|
94
92
|
export { default as Sort } from "./components/sort";
|
|
95
93
|
export { default as InputNumberRange } from "./components/input-number-range";
|
|
96
94
|
export { default as LowCodePage } from "./components/lowCodePage";
|
|
97
|
-
export { default as PickerView } from "./components/picker-view";
|
|
98
95
|
export { default as Segmented } from "./components/segmented";
|
|
99
|
-
export { default as CardPro } from "./components/cardPro";
|
|
100
96
|
export { default as VirtualKeyboard } from "./components/virtual-keyboard";
|
|
101
97
|
export { default as VirtualKeyboardTime } from "./components/virtual-keyboard/Time";
|
|
102
98
|
export { default as SelectTime } from "./components/select-time";
|
|
103
|
-
export { default as sectionFooters } from "./components/section-footers";
|
|
104
99
|
export { default as AutoCompleteNumber } from "./components/auto-complete-number";
|
|
105
100
|
export { default as BatchEditor } from "./components/batch-editor";
|
|
106
101
|
export { default as DragSortTree } from "./components/drag-sort-tree";
|
|
@@ -129,10 +124,9 @@ export { default as PisellCard } from "./components/pisellCard";
|
|
|
129
124
|
export { default as PisellInformationEntry } from "./components/pisellInformationEntry";
|
|
130
125
|
export { default as usePisellConfig } from "./components/pisell-config-provider/hooks/usePisellConfig";
|
|
131
126
|
export { globalConfig, default as PisellContext } from "./components/pisell-config-provider/context";
|
|
132
|
-
export { default as PisellTags } from "./components/pisellTags";
|
|
133
|
-
export { default as PisellStatisticList } from "./components/pisellStatisticList";
|
|
134
|
-
export { default as PisellFloatingPanel } from "./components/pisellFloatingPanel";
|
|
135
127
|
export { default as PisellPriceKeyboard } from "./components/virtual-keyboard/Amount";
|
|
136
128
|
export { default as PisellNumberKeyboard } from "./components/virtual-keyboard/Number";
|
|
137
129
|
export { default as PisellAdjustPrice } from "./components/pisellAdjustPrice";
|
|
138
|
-
export { default as PisellAdjustPriceInputNumber } from "./components/pisellAdjustPrice/PisellAdjustPriceInputNumber";
|
|
130
|
+
export { default as PisellAdjustPriceInputNumber } from "./components/pisellAdjustPrice/PisellAdjustPriceInputNumber";
|
|
131
|
+
export { default as PisellStatisticList } from "./components/pisellStatisticList";
|
|
132
|
+
export { default as PisellFloatingPanel } from "./components/pisellFloatingPanel";
|
package/es/locales/en-US.d.ts
CHANGED
|
@@ -97,18 +97,6 @@ declare const _default: {
|
|
|
97
97
|
'table-action-export-import-log-copy': string;
|
|
98
98
|
'table-action-export-import-table-success-copy': string;
|
|
99
99
|
'drag-sort-tree-unavailable-today-tip': string;
|
|
100
|
-
'date-picker-today': string;
|
|
101
|
-
'date-picker-yesterday': string;
|
|
102
|
-
'date-picker-tomorrow': string;
|
|
103
|
-
'date-picker-next_monday': string;
|
|
104
|
-
'date-picker-last_friday': string;
|
|
105
|
-
'date-picker-first_day_of_this_month': string;
|
|
106
|
-
'date-picker-last_day_of_this_month': string;
|
|
107
|
-
'date-picker-first_day_of_next_month': string;
|
|
108
|
-
'date-picker-last_day_of_last_month': string;
|
|
109
|
-
'date-picker-invalid-date': string;
|
|
110
|
-
"date-picker-apply": string;
|
|
111
|
-
'date-picker-shortcut-custom': string;
|
|
112
100
|
'pisell-input-copy-success': string;
|
|
113
101
|
'pisell-input-copy': string;
|
|
114
102
|
'pisell-empty-description-no-data': string;
|
|
@@ -124,7 +112,5 @@ declare const _default: {
|
|
|
124
112
|
'pisell-adjust-price-discount-percentage': string;
|
|
125
113
|
'pisell-adjust-price-total-after-discount': string;
|
|
126
114
|
'pisell-adjust-price-discount-can-be-maximum': string;
|
|
127
|
-
'pisell-discount-card-title': string;
|
|
128
|
-
'pisell-discount-card-unit': string;
|
|
129
115
|
};
|
|
130
116
|
export default _default;
|
package/es/locales/en-US.js
CHANGED
|
@@ -119,19 +119,6 @@ export default {
|
|
|
119
119
|
'table-action-export-import-log-copy': 'Copy',
|
|
120
120
|
'table-action-export-import-table-success-copy': 'Copy Success',
|
|
121
121
|
'drag-sort-tree-unavailable-today-tip': 'Unavailable today',
|
|
122
|
-
// 日期组件
|
|
123
|
-
'date-picker-today': 'Today',
|
|
124
|
-
'date-picker-yesterday': 'Yesterday',
|
|
125
|
-
'date-picker-tomorrow': 'Tomorrow',
|
|
126
|
-
'date-picker-next_monday': 'Next monday',
|
|
127
|
-
'date-picker-last_friday': 'Last friday',
|
|
128
|
-
'date-picker-first_day_of_this_month': 'First day of this month',
|
|
129
|
-
'date-picker-last_day_of_this_month': 'Last day of this month',
|
|
130
|
-
'date-picker-first_day_of_next_month': 'First day of next month',
|
|
131
|
-
'date-picker-last_day_of_last_month': 'Last day of last month',
|
|
132
|
-
'date-picker-invalid-date': 'Invalid date',
|
|
133
|
-
"date-picker-apply": "Apply",
|
|
134
|
-
'date-picker-shortcut-custom': 'Custom',
|
|
135
122
|
'pisell-input-copy-success': 'Copy Success',
|
|
136
123
|
'pisell-input-copy': 'Copy',
|
|
137
124
|
// 空状态
|
|
@@ -150,7 +137,5 @@ export default {
|
|
|
150
137
|
'pisell-adjust-price-discount-amount': "Amount",
|
|
151
138
|
'pisell-adjust-price-discount-percentage': "Percentage",
|
|
152
139
|
'pisell-adjust-price-total-after-discount': "Total after discount: ",
|
|
153
|
-
'pisell-adjust-price-discount-can-be-maximum': "Discount can be maximum"
|
|
154
|
-
'pisell-discount-card-title': 'Discount',
|
|
155
|
-
'pisell-discount-card-unit': 'off'
|
|
140
|
+
'pisell-adjust-price-discount-can-be-maximum': "Discount can be maximum"
|
|
156
141
|
};
|
package/es/locales/zh-CN.d.ts
CHANGED
|
@@ -97,18 +97,6 @@ declare const _default: {
|
|
|
97
97
|
'table-action-export-import-log-copy': string;
|
|
98
98
|
'table-action-export-import-table-success-copy': string;
|
|
99
99
|
'drag-sort-tree-unavailable-today-tip': string;
|
|
100
|
-
'date-picker-today': string;
|
|
101
|
-
'date-picker-yesterday': string;
|
|
102
|
-
'date-picker-tomorrow': string;
|
|
103
|
-
'date-picker-next_monday': string;
|
|
104
|
-
'date-picker-last_friday': string;
|
|
105
|
-
'date-picker-first_day_of_this_month': string;
|
|
106
|
-
'date-picker-last_day_of_this_month': string;
|
|
107
|
-
'date-picker-first_day_of_next_month': string;
|
|
108
|
-
'date-picker-last_day_of_last_month': string;
|
|
109
|
-
'date-picker-invalid-date': string;
|
|
110
|
-
"date-picker-apply": string;
|
|
111
|
-
'date-picker-shortcut-custom': string;
|
|
112
100
|
'pisell-input-copy-success': string;
|
|
113
101
|
'pisell-input-copy': string;
|
|
114
102
|
'pisell-empty-description-no-data': string;
|
|
@@ -124,7 +112,5 @@ declare const _default: {
|
|
|
124
112
|
'pisell-adjust-price-discount-percentage': string;
|
|
125
113
|
'pisell-adjust-price-total-after-discount': string;
|
|
126
114
|
'pisell-adjust-price-discount-can-be-maximum': string;
|
|
127
|
-
'pisell-discount-card-title': string;
|
|
128
|
-
'pisell-discount-card-unit': string;
|
|
129
115
|
};
|
|
130
116
|
export default _default;
|
package/es/locales/zh-CN.js
CHANGED
|
@@ -119,19 +119,6 @@ export default {
|
|
|
119
119
|
'table-action-export-import-log-copy': '复制',
|
|
120
120
|
'table-action-export-import-table-success-copy': '复制成功',
|
|
121
121
|
'drag-sort-tree-unavailable-today-tip': '今日不可用',
|
|
122
|
-
// 日期组件
|
|
123
|
-
'date-picker-today': '今天',
|
|
124
|
-
'date-picker-yesterday': '昨天',
|
|
125
|
-
'date-picker-tomorrow': '明天',
|
|
126
|
-
'date-picker-next_monday': '下个星期一',
|
|
127
|
-
'date-picker-last_friday': '上个星期五',
|
|
128
|
-
'date-picker-first_day_of_this_month': '本月的第一天',
|
|
129
|
-
'date-picker-last_day_of_this_month': '本月的最后一天',
|
|
130
|
-
'date-picker-first_day_of_next_month': '下个月的第一天',
|
|
131
|
-
'date-picker-last_day_of_last_month': '上个月的最后一天',
|
|
132
|
-
'date-picker-invalid-date': '无效日期',
|
|
133
|
-
"date-picker-apply": "确定",
|
|
134
|
-
'date-picker-shortcut-custom': '自定义',
|
|
135
122
|
'pisell-input-copy-success': '复制成功',
|
|
136
123
|
'pisell-input-copy': '复制',
|
|
137
124
|
// 空状态
|
|
@@ -150,7 +137,5 @@ export default {
|
|
|
150
137
|
'pisell-adjust-price-discount-amount': "金额",
|
|
151
138
|
'pisell-adjust-price-discount-percentage': "百分比",
|
|
152
139
|
'pisell-adjust-price-total-after-discount': "打折后总价",
|
|
153
|
-
'pisell-adjust-price-discount-can-be-maximum': "折扣最高可达"
|
|
154
|
-
'pisell-discount-card-title': '折扣',
|
|
155
|
-
'pisell-discount-card-unit': '折扣'
|
|
140
|
+
'pisell-adjust-price-discount-can-be-maximum': "折扣最高可达"
|
|
156
141
|
};
|
package/es/locales/zh-TW.d.ts
CHANGED
|
@@ -97,18 +97,6 @@ declare const _default: {
|
|
|
97
97
|
'table-action-export-import-log-copy': string;
|
|
98
98
|
'table-action-export-import-table-success-copy': string;
|
|
99
99
|
'drag-sort-tree-unavailable-today-tip': string;
|
|
100
|
-
'date-picker-today': string;
|
|
101
|
-
'date-picker-yesterday': string;
|
|
102
|
-
'date-picker-tomorrow': string;
|
|
103
|
-
'date-picker-next_monday': string;
|
|
104
|
-
'date-picker-last_friday': string;
|
|
105
|
-
'date-picker-first_day_of_this_month': string;
|
|
106
|
-
'date-picker-last_day_of_this_month': string;
|
|
107
|
-
'date-picker-first_day_of_next_month': string;
|
|
108
|
-
'date-picker-last_day_of_last_month': string;
|
|
109
|
-
'date-picker-invalid-date': string;
|
|
110
|
-
"date-picker-apply": string;
|
|
111
|
-
'date-picker-shortcut-custom': string;
|
|
112
100
|
'pisell-input-copy-success': string;
|
|
113
101
|
'pisell-input-copy': string;
|
|
114
102
|
'pisell-empty-description-no-data': string;
|
|
@@ -124,7 +112,5 @@ declare const _default: {
|
|
|
124
112
|
'pisell-adjust-price-discount-percentage': string;
|
|
125
113
|
'pisell-adjust-price-total-after-discount': string;
|
|
126
114
|
'pisell-adjust-price-discount-can-be-maximum': string;
|
|
127
|
-
'pisell-discount-card-title': string;
|
|
128
|
-
'pisell-discount-card-unit': string;
|
|
129
115
|
};
|
|
130
116
|
export default _default;
|
package/es/locales/zh-TW.js
CHANGED
|
@@ -119,19 +119,6 @@ export default {
|
|
|
119
119
|
'table-action-export-import-log-copy': '復製',
|
|
120
120
|
'table-action-export-import-table-success-copy': '復製成功',
|
|
121
121
|
'drag-sort-tree-unavailable-today-tip': '今日不可用',
|
|
122
|
-
// 日期组件
|
|
123
|
-
'date-picker-today': '今天',
|
|
124
|
-
'date-picker-yesterday': '昨天',
|
|
125
|
-
'date-picker-tomorrow': '明天',
|
|
126
|
-
'date-picker-next_monday': '下個星期一',
|
|
127
|
-
'date-picker-last_friday': '上個星期五',
|
|
128
|
-
'date-picker-first_day_of_this_month': '本月的第一天',
|
|
129
|
-
'date-picker-last_day_of_this_month': '本月的最後一天',
|
|
130
|
-
'date-picker-first_day_of_next_month': '下個月的第一天',
|
|
131
|
-
'date-picker-last_day_of_last_month': '上個月的最後一天',
|
|
132
|
-
'date-picker-invalid-date': '無效日期',
|
|
133
|
-
"date-picker-apply": "确定",
|
|
134
|
-
'date-picker-shortcut-custom': '自定義',
|
|
135
122
|
'pisell-input-copy-success': '復製成功',
|
|
136
123
|
'pisell-input-copy': '復製',
|
|
137
124
|
// 空状态
|
|
@@ -150,7 +137,5 @@ export default {
|
|
|
150
137
|
'pisell-adjust-price-discount-amount': "金額",
|
|
151
138
|
'pisell-adjust-price-discount-percentage': "百分比",
|
|
152
139
|
'pisell-adjust-price-total-after-discount': "打折后總價",
|
|
153
|
-
'pisell-adjust-price-discount-can-be-maximum': "折扣最高可達"
|
|
154
|
-
'pisell-discount-card-title': '折扣',
|
|
155
|
-
'pisell-discount-card-unit': '折扣'
|
|
140
|
+
'pisell-adjust-price-discount-can-be-maximum': "折扣最高可達"
|
|
156
141
|
};
|
package/es/utils/index.d.ts
CHANGED
package/es/utils/index.js
CHANGED
|
@@ -36,12 +36,10 @@ var import_react = __toESM(require("react"));
|
|
|
36
36
|
var import_antd = require("antd");
|
|
37
37
|
var Button = (0, import_react.forwardRef)((props, ref) => {
|
|
38
38
|
var _a;
|
|
39
|
-
console.log("%c [ props ]-15", "font-size:13px; background:#e991b5; color:#ffd5f9;", props);
|
|
40
39
|
const innerProps = {};
|
|
41
40
|
if (!((_a = props.href) == null ? void 0 : _a.trim()) || props.__designMode === "design") {
|
|
42
41
|
innerProps.href = void 0;
|
|
43
42
|
}
|
|
44
|
-
debugger;
|
|
45
43
|
const _children = (0, import_react.useMemo)(() => {
|
|
46
44
|
if (props.rightIcon) {
|
|
47
45
|
return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement("span", { style: { marginRight: 8 } }, " ", props.children), props.rightIcon);
|
|
@@ -32,15 +32,15 @@ __export(date_picker_exports, {
|
|
|
32
32
|
default: () => date_picker_default
|
|
33
33
|
});
|
|
34
34
|
module.exports = __toCommonJS(date_picker_exports);
|
|
35
|
+
var import_antd = require("antd");
|
|
35
36
|
var import_hoc = require("../../utils/hoc");
|
|
36
37
|
var import_dayjs = __toESM(require("dayjs"));
|
|
37
38
|
var import_date_picker = require("@pisell/date-picker");
|
|
38
39
|
var import_localeData = __toESM(require("dayjs/plugin/localeData"));
|
|
39
40
|
var import_weekday = __toESM(require("dayjs/plugin/weekday"));
|
|
40
|
-
var import_datePickerCpt = __toESM(require("./datePickerCpt"));
|
|
41
41
|
import_dayjs.default.extend(import_weekday.default);
|
|
42
42
|
import_dayjs.default.extend(import_localeData.default);
|
|
43
|
-
var DatePicker = (0, import_hoc.withMomentProps)(
|
|
43
|
+
var DatePicker = (0, import_hoc.withMomentProps)(import_antd.DatePicker, [
|
|
44
44
|
"defaultPickerValue",
|
|
45
45
|
"defaultValue",
|
|
46
46
|
"showTime.defaultValue",
|
|
@@ -37,6 +37,7 @@ var import_core = require("@dnd-kit/core");
|
|
|
37
37
|
var import_sortable = require("@dnd-kit/sortable");
|
|
38
38
|
var import_TreeItem = __toESM(require("./TreeItem"));
|
|
39
39
|
var import_modifiers = require("@dnd-kit/modifiers");
|
|
40
|
+
var import_index = require("./index.less");
|
|
40
41
|
var DragSortTree = (props) => {
|
|
41
42
|
const { value, rowKey, tabKey, hiddenKeys, onChange } = props;
|
|
42
43
|
const [items, setItems] = (0, import_react.useState)(value || []);
|
|
@@ -35,7 +35,7 @@ module.exports = __toCommonJS(iconfont_exports);
|
|
|
35
35
|
var import_icons = require("@ant-design/icons");
|
|
36
36
|
var import_react = __toESM(require("react"));
|
|
37
37
|
var MyIcon = (0, import_icons.createFromIconfontCN)({
|
|
38
|
-
scriptUrl: "https://
|
|
38
|
+
scriptUrl: "https://unpkg.com/@pisell/materials@3.0.37/iconfont/iconfont.js"
|
|
39
39
|
// 在 iconfont.cn 上生成
|
|
40
40
|
});
|
|
41
41
|
var IconFont = (props) => {
|