@zat-design/sisyphus-react 3.6.5-beta.10 → 3.6.5-beta.11
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/es/ProAction/index.js +4 -4
- package/es/ProDownload/index.d.ts +1 -1
- package/es/ProEditTable/components/ActionButton/index.d.ts +1 -1
- package/es/ProEditTable/components/RcTable/BaseTable.d.ts +6 -0
- package/es/ProEditTable/components/RcTable/BaseTable.js +75 -0
- package/es/ProEditTable/components/RcTable/DraggableTable.d.ts +7 -0
- package/es/ProEditTable/components/RcTable/DraggableTable.js +90 -0
- package/es/ProEditTable/components/RcTable/VirtualTable1.d.ts +6 -0
- package/es/ProEditTable/components/RcTable/VirtualTable1.js +86 -0
- package/es/ProEditTable/components/RcTable/index.d.ts +6 -0
- package/es/ProEditTable/components/RcTable/index.js +6 -0
- package/es/ProEditTable/components/RenderField/index.d.ts +1 -1
- package/es/ProEditTable/components/RenderField/index.js +26 -18
- package/es/ProEditTable/components/RenderToolbar/index.d.ts +3 -2
- package/es/ProEditTable/components/RenderToolbar/index.js +2 -2
- package/es/ProEditTable/components/Summary/index.d.ts +1 -1
- package/es/ProEditTable/index.js +33 -55
- package/es/ProEditTable/propsType.d.ts +6 -0
- package/es/ProEditTable/utils/config.d.ts +1 -1
- package/es/ProEditTable/utils/config.js +2 -2
- package/es/ProEditTable/utils/tools.js +3 -3
- package/es/ProEnum/components/Group.d.ts +1 -1
- package/es/ProEnum/components/Tag.d.ts +1 -1
- package/es/ProEnum/index.d.ts +2 -2
- package/es/ProEnum/utils/eventCenter.js +1 -2
- package/es/ProEnum/utils/getEnumLabel.d.ts +1 -1
- package/es/ProForm/components/base/Input/index.d.ts +1 -1
- package/es/ProForm/components/combination/ProCascader/index.d.ts +1 -1
- package/es/ProForm/components/combination/ProCascader/index.js +7 -7
- package/es/ProForm/components/old/InputRange/index.d.ts +1 -1
- package/es/ProForm/components/old/InputWithSuffix/index.d.ts +1 -1
- package/es/ProForm/components/old/ProAddress/index.d.ts +1 -2
- package/es/ProForm/components/old/ProRangeBox/index.d.ts +1 -2
- package/es/ProForm/utils/index.js +14 -10
- package/es/ProIcon/utils/index.js +4 -3
- package/es/ProLayout/components/Layout/Menu/OpenMenu/index.d.ts +1 -1
- package/es/ProLayout/components/Layout/Menu/OpenMenu/index.js +3 -3
- package/es/ProLayout/components/ProCollapse/index.d.ts +1 -1
- package/es/ProLayout/components/ProFooter/index.d.ts +1 -1
- package/es/ProLayout/components/ProHeader/components/Copy/index.d.ts +1 -1
- package/es/ProLayout/components/ProHeader/index.d.ts +1 -1
- package/es/ProLayout/index.d.ts +4 -4
- package/es/ProLayout/utils/index.js +9 -9
- package/es/ProSelect/components/AdaptiveTooltip.d.ts +1 -1
- package/es/ProSelect/index.d.ts +1 -1
- package/es/ProStep/components/Anchor/index.d.ts +1 -1
- package/es/ProStep/components/Item/index.d.ts +1 -1
- package/es/ProStep/components/Step/index.d.ts +1 -1
- package/es/ProStep/index.d.ts +2 -2
- package/es/ProTable/components/ResizableLine/index.d.ts +1 -1
- package/es/ProTable/components/TableResizable/index.d.ts +1 -1
- package/es/ProTable/index.d.ts +1 -1
- package/es/ProTable/utils.js +3 -3
- package/es/ProTabs/components/Card/index.d.ts +1 -1
- package/es/ProThemeTools/component/PrdTools/index.d.ts +1 -1
- package/es/ProThemeTools/index.d.ts +1 -1
- package/es/ProTooltip/index.d.ts +1 -1
- package/es/ProTree/components/CloseIcon.d.ts +1 -2
- package/es/ProTree/components/List.d.ts +1 -1
- package/es/ProTree/components/ProTree.d.ts +1 -1
- package/es/ProTree/components/ProTreeSelect/index.d.ts +1 -1
- package/es/ProTree/components/ProTreeSelect/index.js +18 -18
- package/es/ProTree/components/SearchTitle.d.ts +1 -1
- package/es/ProTree/components/Tree.d.ts +1 -1
- package/es/ProTree/components/Tree.js +3 -3
- package/es/ProTree/index.d.ts +1 -1
- package/es/ProTree/utils.js +12 -11
- package/es/ProTreeModal/components/Cascader.d.ts +1 -1
- package/es/ProTreeModal/components/CloseIcon.d.ts +1 -2
- package/es/ProTreeModal/components/SearchTitle.d.ts +1 -1
- package/es/ProTreeModal/components/Tree.js +6 -6
- package/es/ProTreeModal/components/Trigger.d.ts +1 -1
- package/es/ProTreeModal/index.d.ts +1 -1
- package/es/ProTreeModal/utils.js +12 -11
- package/es/ProUpload/components/DraggableUploadListItem.d.ts +1 -1
- package/lib/ProAction/index.js +4 -4
- package/lib/ProDownload/index.d.ts +1 -1
- package/lib/ProEditTable/components/ActionButton/index.d.ts +1 -1
- package/lib/ProEditTable/components/RcTable/BaseTable.d.ts +6 -0
- package/lib/ProEditTable/components/RcTable/BaseTable.js +81 -0
- package/lib/ProEditTable/components/RcTable/DraggableTable.d.ts +7 -0
- package/lib/ProEditTable/components/RcTable/DraggableTable.js +96 -0
- package/lib/ProEditTable/components/RcTable/VirtualTable1.d.ts +6 -0
- package/lib/ProEditTable/components/RcTable/VirtualTable1.js +93 -0
- package/lib/ProEditTable/components/RcTable/index.d.ts +6 -0
- package/lib/ProEditTable/components/RcTable/index.js +27 -0
- package/lib/ProEditTable/components/RenderField/index.d.ts +1 -1
- package/lib/ProEditTable/components/RenderField/index.js +26 -18
- package/lib/ProEditTable/components/RenderToolbar/index.d.ts +3 -2
- package/lib/ProEditTable/components/RenderToolbar/index.js +3 -2
- package/lib/ProEditTable/components/Summary/index.d.ts +1 -1
- package/lib/ProEditTable/index.js +32 -52
- package/lib/ProEditTable/propsType.d.ts +6 -0
- package/lib/ProEditTable/utils/config.d.ts +1 -1
- package/lib/ProEditTable/utils/config.js +2 -2
- package/lib/ProEditTable/utils/tools.js +3 -3
- package/lib/ProEnum/components/Group.d.ts +1 -1
- package/lib/ProEnum/components/Tag.d.ts +1 -1
- package/lib/ProEnum/index.d.ts +2 -2
- package/lib/ProEnum/utils/eventCenter.js +1 -2
- package/lib/ProEnum/utils/getEnumLabel.d.ts +1 -1
- package/lib/ProForm/components/base/Input/index.d.ts +1 -1
- package/lib/ProForm/components/combination/ProCascader/index.d.ts +1 -1
- package/lib/ProForm/components/combination/ProCascader/index.js +7 -7
- package/lib/ProForm/components/old/InputRange/index.d.ts +1 -1
- package/lib/ProForm/components/old/InputWithSuffix/index.d.ts +1 -1
- package/lib/ProForm/components/old/ProAddress/index.d.ts +1 -2
- package/lib/ProForm/components/old/ProRangeBox/index.d.ts +1 -2
- package/lib/ProForm/utils/index.js +10 -10
- package/lib/ProIcon/utils/index.js +3 -3
- package/lib/ProLayout/components/Layout/Menu/OpenMenu/index.d.ts +1 -1
- package/lib/ProLayout/components/Layout/Menu/OpenMenu/index.js +3 -3
- package/lib/ProLayout/components/ProCollapse/index.d.ts +1 -1
- package/lib/ProLayout/components/ProFooter/index.d.ts +1 -1
- package/lib/ProLayout/components/ProHeader/components/Copy/index.d.ts +1 -1
- package/lib/ProLayout/components/ProHeader/index.d.ts +1 -1
- package/lib/ProLayout/index.d.ts +4 -4
- package/lib/ProLayout/utils/index.js +9 -9
- package/lib/ProSelect/components/AdaptiveTooltip.d.ts +1 -1
- package/lib/ProSelect/index.d.ts +1 -1
- package/lib/ProStep/components/Anchor/index.d.ts +1 -1
- package/lib/ProStep/components/Item/index.d.ts +1 -1
- package/lib/ProStep/components/Step/index.d.ts +1 -1
- package/lib/ProStep/index.d.ts +2 -2
- package/lib/ProTable/components/ResizableLine/index.d.ts +1 -1
- package/lib/ProTable/components/TableResizable/index.d.ts +1 -1
- package/lib/ProTable/index.d.ts +1 -1
- package/lib/ProTable/utils.js +3 -3
- package/lib/ProTabs/components/Card/index.d.ts +1 -1
- package/lib/ProThemeTools/component/PrdTools/index.d.ts +1 -1
- package/lib/ProThemeTools/index.d.ts +1 -1
- package/lib/ProTooltip/index.d.ts +1 -1
- package/lib/ProTree/components/CloseIcon.d.ts +1 -2
- package/lib/ProTree/components/List.d.ts +1 -1
- package/lib/ProTree/components/ProTree.d.ts +1 -1
- package/lib/ProTree/components/ProTreeSelect/index.d.ts +1 -1
- package/lib/ProTree/components/ProTreeSelect/index.js +18 -18
- package/lib/ProTree/components/SearchTitle.d.ts +1 -1
- package/lib/ProTree/components/Tree.d.ts +1 -1
- package/lib/ProTree/components/Tree.js +3 -3
- package/lib/ProTree/index.d.ts +1 -1
- package/lib/ProTree/utils.js +11 -11
- package/lib/ProTreeModal/components/Cascader.d.ts +1 -1
- package/lib/ProTreeModal/components/CloseIcon.d.ts +1 -2
- package/lib/ProTreeModal/components/SearchTitle.d.ts +1 -1
- package/lib/ProTreeModal/components/Tree.js +6 -6
- package/lib/ProTreeModal/components/Trigger.d.ts +1 -1
- package/lib/ProTreeModal/index.d.ts +1 -1
- package/lib/ProTreeModal/utils.js +11 -11
- package/lib/ProUpload/components/DraggableUploadListItem.d.ts +1 -1
- package/package.json +2 -1
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.default = void 0;
|
|
8
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
9
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
10
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
|
+
var _antd = require("antd");
|
|
12
|
+
var _react = require("react");
|
|
13
|
+
var _index = require("../index");
|
|
14
|
+
var _excluded = ["tableProps", "draggableProps"];
|
|
15
|
+
var DraggableTable = function DraggableTable(_ref) {
|
|
16
|
+
var _value$;
|
|
17
|
+
var tableProps = _ref.tableProps,
|
|
18
|
+
draggableProps = _ref.draggableProps,
|
|
19
|
+
resetProps = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
20
|
+
var value = tableProps.value,
|
|
21
|
+
headerRender = tableProps.headerRender,
|
|
22
|
+
tableRef = tableProps.tableRef,
|
|
23
|
+
className = tableProps.className,
|
|
24
|
+
columns = tableProps.columns,
|
|
25
|
+
renderRowSelection = tableProps.renderRowSelection,
|
|
26
|
+
rowClassName = tableProps.rowClassName,
|
|
27
|
+
disabled = tableProps.disabled,
|
|
28
|
+
virtualKey = tableProps.virtualKey,
|
|
29
|
+
editingKeys = tableProps.editingKeys,
|
|
30
|
+
isHideCheckBox = tableProps.isHideCheckBox,
|
|
31
|
+
rowDraggable = tableProps.rowDraggable,
|
|
32
|
+
pagination = tableProps.pagination,
|
|
33
|
+
scroll = tableProps.scroll,
|
|
34
|
+
summary = tableProps.summary,
|
|
35
|
+
page = tableProps.page,
|
|
36
|
+
formatMessage = tableProps.formatMessage,
|
|
37
|
+
locale = tableProps.locale,
|
|
38
|
+
handlePageChange = tableProps.handlePageChange;
|
|
39
|
+
var onChange = draggableProps.onChange,
|
|
40
|
+
onDrag = draggableProps.onDrag,
|
|
41
|
+
draggable = draggableProps.draggable;
|
|
42
|
+
return (0, _jsxRuntime.jsxs)(_index.DndWrapper, {
|
|
43
|
+
value: value,
|
|
44
|
+
onChange: onChange,
|
|
45
|
+
onDrag: onDrag,
|
|
46
|
+
disabled: disabled,
|
|
47
|
+
draggable: draggable,
|
|
48
|
+
children: [headerRender ? (0, _jsxRuntime.jsx)("div", {
|
|
49
|
+
className: "pro-edit-table-header",
|
|
50
|
+
children: typeof headerRender === 'function' ? headerRender() : headerRender
|
|
51
|
+
}) : null, (0, _jsxRuntime.jsx)(_antd.Table, (0, _objectSpread2.default)((0, _objectSpread2.default)({
|
|
52
|
+
ref: tableRef,
|
|
53
|
+
className: className,
|
|
54
|
+
dataSource: (value === null || value === void 0 ? void 0 : (_value$ = value[0]) === null || _value$ === void 0 ? void 0 : _value$.rowKey) ? value : undefined,
|
|
55
|
+
columns: columns,
|
|
56
|
+
rowSelection: renderRowSelection(),
|
|
57
|
+
rowClassName: rowClassName,
|
|
58
|
+
components: {
|
|
59
|
+
body: {
|
|
60
|
+
row: _index.Row
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
onRow: function onRow() {
|
|
64
|
+
return {
|
|
65
|
+
disabled: disabled || virtualKey && !!editingKeys.length,
|
|
66
|
+
'data-hide': isHideCheckBox,
|
|
67
|
+
onClick: function onClick() {},
|
|
68
|
+
rowDraggable: rowDraggable
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
}, resetProps), {}, {
|
|
72
|
+
pagination: pagination ? (0, _objectSpread2.default)({
|
|
73
|
+
current: page.pageNum,
|
|
74
|
+
pageSize: page.pageSize,
|
|
75
|
+
showSizeChanger: false,
|
|
76
|
+
showQuickJumper: true,
|
|
77
|
+
total: value === null || value === void 0 ? void 0 : value.length,
|
|
78
|
+
showTotal: function showTotal(total) {
|
|
79
|
+
var _locale$ProEditTable;
|
|
80
|
+
if (!total) return;
|
|
81
|
+
return formatMessage(locale === null || locale === void 0 ? void 0 : (_locale$ProEditTable = locale.ProEditTable) === null || _locale$ProEditTable === void 0 ? void 0 : _locale$ProEditTable.total, {
|
|
82
|
+
total: total
|
|
83
|
+
});
|
|
84
|
+
},
|
|
85
|
+
onChange: handlePageChange
|
|
86
|
+
}, pagination) : false,
|
|
87
|
+
rowKey: "rowKey",
|
|
88
|
+
scroll: {
|
|
89
|
+
x: scroll === null || scroll === void 0 ? void 0 : scroll.x,
|
|
90
|
+
y: (value === null || value === void 0 ? void 0 : value.length) ? scroll === null || scroll === void 0 ? void 0 : scroll.y : undefined
|
|
91
|
+
},
|
|
92
|
+
summary: summary
|
|
93
|
+
}))]
|
|
94
|
+
});
|
|
95
|
+
};
|
|
96
|
+
var _default = exports.default = /*#__PURE__*/(0, _react.memo)(DraggableTable);
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.default = void 0;
|
|
8
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
9
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
10
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
|
+
var _antd = require("antd5");
|
|
12
|
+
var _react = require("react");
|
|
13
|
+
var _excluded = ["tableProps"];
|
|
14
|
+
var VirtualTable1 = function VirtualTable1(_ref) {
|
|
15
|
+
var _value$;
|
|
16
|
+
var tableProps = _ref.tableProps,
|
|
17
|
+
resetProps = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
18
|
+
var value = tableProps.value,
|
|
19
|
+
headerRender = tableProps.headerRender,
|
|
20
|
+
tableRef = tableProps.tableRef,
|
|
21
|
+
className = tableProps.className,
|
|
22
|
+
columns = tableProps.columns,
|
|
23
|
+
renderRowSelection = tableProps.renderRowSelection,
|
|
24
|
+
rowClassName = tableProps.rowClassName,
|
|
25
|
+
disabled = tableProps.disabled,
|
|
26
|
+
virtualKey = tableProps.virtualKey,
|
|
27
|
+
editingKeys = tableProps.editingKeys,
|
|
28
|
+
isHideCheckBox = tableProps.isHideCheckBox,
|
|
29
|
+
rowDraggable = tableProps.rowDraggable,
|
|
30
|
+
pagination = tableProps.pagination,
|
|
31
|
+
scroll = tableProps.scroll,
|
|
32
|
+
summary = tableProps.summary,
|
|
33
|
+
page = tableProps.page,
|
|
34
|
+
formatMessage = tableProps.formatMessage,
|
|
35
|
+
locale = tableProps.locale,
|
|
36
|
+
handlePageChange = tableProps.handlePageChange,
|
|
37
|
+
empty = tableProps.empty;
|
|
38
|
+
return (0, _jsxRuntime.jsxs)(_antd.ConfigProvider, {
|
|
39
|
+
renderEmpty: (value === null || value === void 0 ? void 0 : value.length) ? undefined : empty,
|
|
40
|
+
children: [headerRender ? (0, _jsxRuntime.jsx)("div", {
|
|
41
|
+
className: "pro-edit-table-header",
|
|
42
|
+
children: typeof headerRender === 'function' ? headerRender() : headerRender
|
|
43
|
+
}) : null, (0, _jsxRuntime.jsx)(_antd.Table, (0, _objectSpread2.default)((0, _objectSpread2.default)({
|
|
44
|
+
virtual: true,
|
|
45
|
+
ref: tableRef,
|
|
46
|
+
className: className,
|
|
47
|
+
dataSource: (value === null || value === void 0 ? void 0 : (_value$ = value[0]) === null || _value$ === void 0 ? void 0 : _value$.rowKey) ? value : undefined,
|
|
48
|
+
columns: columns.map(function (item) {
|
|
49
|
+
if (!(item === null || item === void 0 ? void 0 : item.width) || typeof item.width === 'number') {
|
|
50
|
+
return item;
|
|
51
|
+
}
|
|
52
|
+
return (0, _objectSpread2.default)((0, _objectSpread2.default)({}, item), {}, {
|
|
53
|
+
width: parseInt(item === null || item === void 0 ? void 0 : item.width, 10)
|
|
54
|
+
});
|
|
55
|
+
}),
|
|
56
|
+
rowSelection: (0, _objectSpread2.default)((0, _objectSpread2.default)({}, renderRowSelection()), {}, {
|
|
57
|
+
columnWidth: 40
|
|
58
|
+
}),
|
|
59
|
+
rowClassName: rowClassName,
|
|
60
|
+
onRow: function onRow() {
|
|
61
|
+
return {
|
|
62
|
+
disabled: disabled || virtualKey && !!editingKeys.length,
|
|
63
|
+
'data-hide': isHideCheckBox,
|
|
64
|
+
onClick: function onClick() {},
|
|
65
|
+
rowDraggable: rowDraggable
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
}, resetProps), {}, {
|
|
69
|
+
pagination: pagination ? (0, _objectSpread2.default)({
|
|
70
|
+
current: page.pageNum,
|
|
71
|
+
pageSize: page.pageSize,
|
|
72
|
+
showSizeChanger: false,
|
|
73
|
+
showQuickJumper: true,
|
|
74
|
+
total: value === null || value === void 0 ? void 0 : value.length,
|
|
75
|
+
showTotal: function showTotal(total) {
|
|
76
|
+
var _locale$ProEditTable;
|
|
77
|
+
if (!total) return;
|
|
78
|
+
return formatMessage(locale === null || locale === void 0 ? void 0 : (_locale$ProEditTable = locale.ProEditTable) === null || _locale$ProEditTable === void 0 ? void 0 : _locale$ProEditTable.total, {
|
|
79
|
+
total: total
|
|
80
|
+
});
|
|
81
|
+
},
|
|
82
|
+
onChange: handlePageChange
|
|
83
|
+
}, pagination) : false,
|
|
84
|
+
rowKey: "rowKey",
|
|
85
|
+
scroll: {
|
|
86
|
+
x: scroll === null || scroll === void 0 ? void 0 : scroll.x,
|
|
87
|
+
y: (value === null || value === void 0 ? void 0 : value.length) ? scroll === null || scroll === void 0 ? void 0 : scroll.y : undefined
|
|
88
|
+
},
|
|
89
|
+
summary: summary
|
|
90
|
+
}))]
|
|
91
|
+
});
|
|
92
|
+
};
|
|
93
|
+
var _default = exports.default = /*#__PURE__*/(0, _react.memo)(VirtualTable1);
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
Object.defineProperty(exports, "BaseTable", {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function get() {
|
|
10
|
+
return _BaseTable.default;
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
Object.defineProperty(exports, "DraggableTable", {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function get() {
|
|
16
|
+
return _DraggableTable.default;
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
Object.defineProperty(exports, "VirtualTable1", {
|
|
20
|
+
enumerable: true,
|
|
21
|
+
get: function get() {
|
|
22
|
+
return _VirtualTable.default;
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
var _BaseTable = _interopRequireDefault(require("./BaseTable"));
|
|
26
|
+
var _DraggableTable = _interopRequireDefault(require("./DraggableTable"));
|
|
27
|
+
var _VirtualTable = _interopRequireDefault(require("./VirtualTable1"));
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const RenderField: ({ text: value, record, index, column, config }: any) => JSX.Element;
|
|
1
|
+
declare const RenderField: ({ text: value, record, index, column, config }: any) => import("react/jsx-runtime").JSX.Element;
|
|
2
2
|
export default RenderField;
|
|
@@ -30,7 +30,7 @@ var _useListChanged3 = require("../../../ProForm/utils/useListChanged");
|
|
|
30
30
|
var _useRules = _interopRequireDefault(require("../../../ProForm/utils/useRules"));
|
|
31
31
|
var _utils = require("../../../ProForm/utils");
|
|
32
32
|
var _ConfirmWrapper = _interopRequireDefault(require("../../../ProForm/components/render/ConfirmWrapper"));
|
|
33
|
-
var _excluded = ["type", "valueType", "names", "fieldProps", "labelRequired", "editRender", "component", "viewRender", "title", "originTitle", "label", "dataIndex", "formItemProps", "isEditable", "required", "rules", "equalWith", "className", "trim", "confirm"];
|
|
33
|
+
var _excluded = ["type", "valueType", "names", "fieldProps", "labelRequired", "editRender", "component", "viewRender", "title", "originTitle", "label", "dataIndex", "formItemProps", "isEditable", "required", "rules", "equalWith", "className", "trim", "confirm", "validateTrigger"];
|
|
34
34
|
/* eslint-disable prefer-destructuring */
|
|
35
35
|
/* eslint-disable prefer-const */
|
|
36
36
|
var RenderField = function RenderField(_ref) {
|
|
@@ -63,6 +63,8 @@ var RenderField = function RenderField(_ref) {
|
|
|
63
63
|
className = column.className,
|
|
64
64
|
trim = column.trim,
|
|
65
65
|
confirm = column.confirm,
|
|
66
|
+
_column$validateTrigg = column.validateTrigger,
|
|
67
|
+
validateTrigger = _column$validateTrigg === void 0 ? ['onChange', 'onBlur', 'onSumbit'] : _column$validateTrigg,
|
|
66
68
|
resetProps = (0, _objectWithoutProperties2.default)(column, _excluded);
|
|
67
69
|
// editRender弃用使用component同ProForm
|
|
68
70
|
var _editRender = component || editRender;
|
|
@@ -161,7 +163,9 @@ var RenderField = function RenderField(_ref) {
|
|
|
161
163
|
// 分离form item参数,防止对于参数透传(如onChange,防止重复触发)并优先级高于 _fieldProps 内部参数
|
|
162
164
|
var formItemChildProps = (0, _objectSpread2.default)({}, _fieldProps);
|
|
163
165
|
// 允许formItem的属性放在column最外层
|
|
164
|
-
var _formItemProps = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, resetProps), internalRule)
|
|
166
|
+
var _formItemProps = (0, _objectSpread2.default)((0, _objectSpread2.default)((0, _objectSpread2.default)({}, resetProps), internalRule), {}, {
|
|
167
|
+
validateTrigger: validateTrigger
|
|
168
|
+
});
|
|
165
169
|
if (['Switch', 'SwitchCheckbox'].includes(type)) {
|
|
166
170
|
_formItemProps.valuePropName = 'checked';
|
|
167
171
|
valueType = 'switch';
|
|
@@ -378,15 +382,17 @@ var RenderField = function RenderField(_ref) {
|
|
|
378
382
|
case 29:
|
|
379
383
|
// 判断属性是否变动
|
|
380
384
|
form.setFieldValue(rowPath, row);
|
|
381
|
-
if (
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
385
|
+
if (validateTrigger && validateTrigger.includes('onChange')) {
|
|
386
|
+
if (!(0, _lodash.isEqual)(orgRow, row)) {
|
|
387
|
+
diff = (0, _tools.difference)(row, orgRow) || {};
|
|
388
|
+
validateFieldKeys = (_Object$keys = Object.keys(diff)) === null || _Object$keys === void 0 ? void 0 : (_Object$keys$map = _Object$keys.map) === null || _Object$keys$map === void 0 ? void 0 : _Object$keys$map.call(_Object$keys, function (key) {
|
|
389
|
+
return [].concat((0, _toConsumableArray2.default)(rowPath), [key]);
|
|
390
|
+
});
|
|
391
|
+
if (validateFieldKeys === null || validateFieldKeys === void 0 ? void 0 : validateFieldKeys.length) {
|
|
392
|
+
setTimeout(function () {
|
|
393
|
+
form.validateFields(validateFieldKeys);
|
|
394
|
+
}, 100);
|
|
395
|
+
}
|
|
390
396
|
}
|
|
391
397
|
}
|
|
392
398
|
setState({
|
|
@@ -450,13 +456,15 @@ var RenderField = function RenderField(_ref) {
|
|
|
450
456
|
case 16:
|
|
451
457
|
// 判断属性是否变动
|
|
452
458
|
form.setFieldValue(rowPath, row);
|
|
453
|
-
if (
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
459
|
+
if (validateTrigger && validateTrigger.includes('onBlur')) {
|
|
460
|
+
if (!(0, _lodash.isEqual)(orgRow, row)) {
|
|
461
|
+
diff = (0, _tools.difference)(row, orgRow) || {};
|
|
462
|
+
validateFieldKeys = (_Object$keys2 = Object.keys(diff)) === null || _Object$keys2 === void 0 ? void 0 : (_Object$keys2$map = _Object$keys2.map) === null || _Object$keys2$map === void 0 ? void 0 : _Object$keys2$map.call(_Object$keys2, function (key) {
|
|
463
|
+
return [].concat((0, _toConsumableArray2.default)(rowPath), [key]);
|
|
464
|
+
});
|
|
465
|
+
if (validateFieldKeys === null || validateFieldKeys === void 0 ? void 0 : validateFieldKeys.length) {
|
|
466
|
+
debounceValidate(validateFieldKeys);
|
|
467
|
+
}
|
|
460
468
|
}
|
|
461
469
|
}
|
|
462
470
|
if (!isCell) {
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const _default: React.MemoExoticComponent<(config: any) => import("react/jsx-runtime").JSX.Element>;
|
|
3
|
+
export default _default;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
4
5
|
Object.defineProperty(exports, "__esModule", {
|
|
5
6
|
value: true
|
|
6
7
|
});
|
|
@@ -11,7 +12,7 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/h
|
|
|
11
12
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
12
13
|
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
13
14
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
|
-
var _react =
|
|
15
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
15
16
|
var _antd = require("antd");
|
|
16
17
|
var _config = require("../../utils/config");
|
|
17
18
|
var _ActionButton = _interopRequireDefault(require("../ActionButton"));
|
|
@@ -140,4 +141,4 @@ var RenderToolbar = function RenderToolbar(config) {
|
|
|
140
141
|
}) : renderToolbarBtns()
|
|
141
142
|
});
|
|
142
143
|
};
|
|
143
|
-
var _default = exports.default = RenderToolbar;
|
|
144
|
+
var _default = exports.default = /*#__PURE__*/(0, _react.memo)(RenderToolbar);
|
|
@@ -8,5 +8,5 @@ interface SummaryProps<T = any> {
|
|
|
8
8
|
};
|
|
9
9
|
rowSelection: any;
|
|
10
10
|
}
|
|
11
|
-
declare const Summary: ({ data, summary, rowSelection, }: SummaryProps) => JSX.Element;
|
|
11
|
+
declare const Summary: ({ data, summary, rowSelection, }: SummaryProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
12
|
export default Summary;
|
|
@@ -23,9 +23,10 @@ var _components = require("./components");
|
|
|
23
23
|
var _ProForm = _interopRequireDefault(require("../ProForm"));
|
|
24
24
|
var _empty = _interopRequireDefault(require("../assets/empty.png"));
|
|
25
25
|
var _locale = _interopRequireWildcard(require("../locale"));
|
|
26
|
-
var
|
|
26
|
+
var _RcTable = require("./components/RcTable");
|
|
27
|
+
var _excluded = ["value", "onChange", "onDrag", "className", "columns", "type", "mode", "stripe", "draggable", "virtual", "disabled", "insertType", "emptyBtnText", "actionWidth", "actionProps", "toolbarProps", "toolbarSticky", "rowSelection", "onlyOneLineMsg", "deletePoConfirmMsg", "mulDeletePoConfirmMsg", "requiredAlign", "summary", "max", "headerRender", "pagination", "originalValues", "originalDiffTip", "rowKey", "rowDisabled", "rowDraggable", "footerRender", "scroll", "actionDirection"];
|
|
27
28
|
var ProEditTable = function ProEditTable(_ref, ref) {
|
|
28
|
-
var _resetProps$id, _resetProps$id$split, _themeConfig$data2
|
|
29
|
+
var _resetProps$id, _resetProps$id$split, _themeConfig$data2;
|
|
29
30
|
var value = _ref.value,
|
|
30
31
|
onChange = _ref.onChange,
|
|
31
32
|
onDrag = _ref.onDrag,
|
|
@@ -35,6 +36,7 @@ var ProEditTable = function ProEditTable(_ref, ref) {
|
|
|
35
36
|
mode = _ref.mode,
|
|
36
37
|
stripe = _ref.stripe,
|
|
37
38
|
draggable = _ref.draggable,
|
|
39
|
+
virtual = _ref.virtual,
|
|
38
40
|
disabled = _ref.disabled,
|
|
39
41
|
insertType = _ref.insertType,
|
|
40
42
|
emptyBtnText = _ref.emptyBtnText,
|
|
@@ -327,62 +329,39 @@ var ProEditTable = function ProEditTable(_ref, ref) {
|
|
|
327
329
|
rowSelection: renderRowSelection()
|
|
328
330
|
});
|
|
329
331
|
} : summary;
|
|
332
|
+
var TableComponent = draggable ? _RcTable.DraggableTable : virtual ? _RcTable.VirtualTable1 : _RcTable.BaseTable;
|
|
330
333
|
return (0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
331
334
|
children: [(0, _jsxRuntime.jsxs)(_antd.ConfigProvider, {
|
|
332
335
|
renderEmpty: (value === null || value === void 0 ? void 0 : value.length) ? undefined : empty,
|
|
333
|
-
children: [(0, _jsxRuntime.
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
ref: tableRef,
|
|
336
|
+
children: [(0, _jsxRuntime.jsx)(TableComponent, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, resetProps), {}, {
|
|
337
|
+
draggableProps: {
|
|
338
|
+
onChange: onChange,
|
|
339
|
+
onDrag: onDrag,
|
|
340
|
+
draggable: draggable
|
|
341
|
+
},
|
|
342
|
+
tableProps: {
|
|
343
|
+
value: value,
|
|
344
|
+
headerRender: headerRender,
|
|
345
|
+
tableRef: tableRef,
|
|
344
346
|
className: _className,
|
|
345
|
-
dataSource: (value === null || value === void 0 ? void 0 : (_value$ = value[0]) === null || _value$ === void 0 ? void 0 : _value$.rowKey) ? value : undefined,
|
|
346
347
|
columns: _columns,
|
|
347
|
-
|
|
348
|
+
renderRowSelection: renderRowSelection,
|
|
348
349
|
rowClassName: _rowClassName,
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
}
|
|
363
|
-
|
|
364
|
-
current: page.pageNum,
|
|
365
|
-
pageSize: page.pageSize,
|
|
366
|
-
showSizeChanger: false,
|
|
367
|
-
showQuickJumper: true,
|
|
368
|
-
total: value === null || value === void 0 ? void 0 : value.length,
|
|
369
|
-
showTotal: function showTotal(total) {
|
|
370
|
-
var _locale$ProEditTable;
|
|
371
|
-
if (!total) return;
|
|
372
|
-
return (0, _locale.formatMessage)(_locale.default === null || _locale.default === void 0 ? void 0 : (_locale$ProEditTable = _locale.default.ProEditTable) === null || _locale$ProEditTable === void 0 ? void 0 : _locale$ProEditTable.total, {
|
|
373
|
-
total: total
|
|
374
|
-
});
|
|
375
|
-
},
|
|
376
|
-
onChange: handlePageChange
|
|
377
|
-
}, pagination) : false,
|
|
378
|
-
rowKey: "rowKey",
|
|
379
|
-
scroll: {
|
|
380
|
-
x: scroll === null || scroll === void 0 ? void 0 : scroll.x,
|
|
381
|
-
y: (value === null || value === void 0 ? void 0 : value.length) ? scroll === null || scroll === void 0 ? void 0 : scroll.y : undefined
|
|
382
|
-
},
|
|
383
|
-
summary: _summary
|
|
384
|
-
}))]
|
|
385
|
-
}), !isView && (value === null || value === void 0 ? void 0 : value.length) ? toolbarSticky ? (0, _jsxRuntime.jsx)(_antd.Affix, (0, _objectSpread2.default)((0, _objectSpread2.default)({
|
|
350
|
+
disabled: disabled,
|
|
351
|
+
virtualKey: virtualKey,
|
|
352
|
+
editingKeys: editingKeys,
|
|
353
|
+
isHideCheckBox: isHideCheckBox,
|
|
354
|
+
rowDraggable: rowDraggable,
|
|
355
|
+
pagination: pagination,
|
|
356
|
+
scroll: scroll,
|
|
357
|
+
summary: _summary,
|
|
358
|
+
page: page,
|
|
359
|
+
formatMessage: _locale.formatMessage,
|
|
360
|
+
locale: _locale.default,
|
|
361
|
+
handlePageChange: handlePageChange,
|
|
362
|
+
empty: empty
|
|
363
|
+
}
|
|
364
|
+
})), !isView && (value === null || value === void 0 ? void 0 : value.length) ? toolbarSticky ? (0, _jsxRuntime.jsx)(_antd.Affix, (0, _objectSpread2.default)((0, _objectSpread2.default)({
|
|
386
365
|
ref: affixRef
|
|
387
366
|
}, _toolbarSticky), {}, {
|
|
388
367
|
children: (0, _jsxRuntime.jsx)("div", {
|
|
@@ -415,6 +394,7 @@ ForwardProEditTable.defaultProps = {
|
|
|
415
394
|
toolbarProps: [],
|
|
416
395
|
disabled: false,
|
|
417
396
|
draggable: false,
|
|
397
|
+
virtual: false,
|
|
418
398
|
stripe: true,
|
|
419
399
|
emptyBtnText: _locale.default.ProEditTable.clickAdd,
|
|
420
400
|
onlyOneLineMsg: _locale.default.ProEditTable.onlyOneLineMsg,
|
|
@@ -100,6 +100,7 @@ export interface ProColumnsProps<Values = any, T = any> extends Omit<FormItemPro
|
|
|
100
100
|
hiddenNames?: NamePath[] | NamePath[][];
|
|
101
101
|
rules?: ProRule[] | RulesFn<T>;
|
|
102
102
|
confirm?: boolean | ModalFuncProps | FunctionArgs<Values, boolean | ModalFuncProps | void>;
|
|
103
|
+
validateTrigger?: string | string[];
|
|
103
104
|
[key: string]: any;
|
|
104
105
|
}
|
|
105
106
|
export type ProEditTableColumnsProps<K = any> = ProColumnsProps & ColumnPropsMap<K, 'ProEditTable'>;
|
|
@@ -191,6 +192,11 @@ export interface ProEditTableProps<T = any> extends Omit<TableProps<T>, 'onChang
|
|
|
191
192
|
* @default -
|
|
192
193
|
*/
|
|
193
194
|
draggable?: boolean;
|
|
195
|
+
/**
|
|
196
|
+
* @description 是否开启虚拟列表(scroll,x,y必须为固定值)
|
|
197
|
+
* @default -
|
|
198
|
+
*/
|
|
199
|
+
virtual?: boolean;
|
|
194
200
|
/**
|
|
195
201
|
* @description 空列表状态时,自定义添加按钮
|
|
196
202
|
* @default 点击添加
|
|
@@ -9,7 +9,7 @@ export declare const defaultBtnNameMap: {
|
|
|
9
9
|
custom: any;
|
|
10
10
|
};
|
|
11
11
|
export declare const iconMap: {
|
|
12
|
-
add: JSX.Element;
|
|
12
|
+
add: import("react/jsx-runtime").JSX.Element;
|
|
13
13
|
};
|
|
14
14
|
export declare const defaultSingleActionKeys: string[];
|
|
15
15
|
export declare const defaultMultipleActionKeys: string[];
|
|
@@ -173,7 +173,7 @@ var actions = exports.actions = {
|
|
|
173
173
|
},
|
|
174
174
|
add: function () {
|
|
175
175
|
var _add = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee2(_ref5) {
|
|
176
|
-
var _tableRef$current$
|
|
176
|
+
var _tableRef$current, _tableRef$current$chi, _tableRef$current$chi2;
|
|
177
177
|
var result, insertType, editingKeys, setState, form, name, virtualName, virtualKey, onlyOneLineMsg, tableRef, _ref5$prefixCls, prefixCls, nextData, rowKey, addData, nextEditingKeys;
|
|
178
178
|
return (0, _regeneratorRuntime2.default)().wrap(function _callee2$(_context2) {
|
|
179
179
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -206,7 +206,7 @@ var actions = exports.actions = {
|
|
|
206
206
|
});
|
|
207
207
|
}
|
|
208
208
|
form.setFieldValue(name, nextData);
|
|
209
|
-
(_tableRef$current
|
|
209
|
+
(_tableRef$current = tableRef.current) === null || _tableRef$current === void 0 ? void 0 : (_tableRef$current$chi = _tableRef$current.children) === null || _tableRef$current$chi === void 0 ? void 0 : (_tableRef$current$chi2 = _tableRef$current$chi.scrollTo) === null || _tableRef$current$chi2 === void 0 ? void 0 : _tableRef$current$chi2.call(_tableRef$current$chi, {
|
|
210
210
|
top: insertType === 'before' ? -10000 : 10000,
|
|
211
211
|
behavior: 'smooth'
|
|
212
212
|
});
|
|
@@ -12,14 +12,14 @@ var getRandom = exports.getRandom = function getRandom() {
|
|
|
12
12
|
};
|
|
13
13
|
// 深层次对比两个对象且取出来差异值
|
|
14
14
|
var difference = exports.difference = function difference(object, base) {
|
|
15
|
-
var
|
|
15
|
+
var _changes = function changes(object, base) {
|
|
16
16
|
return (0, _lodash.transform)(object, function (result, value, key) {
|
|
17
17
|
if (!(0, _lodash.isEqual)(value, base[key])) {
|
|
18
|
-
result[key] = (0, _lodash.isObject)(value) && (0, _lodash.isObject)(base[key]) ?
|
|
18
|
+
result[key] = (0, _lodash.isObject)(value) && (0, _lodash.isObject)(base[key]) ? _changes(value, base[key]) : value;
|
|
19
19
|
}
|
|
20
20
|
});
|
|
21
21
|
};
|
|
22
|
-
return
|
|
22
|
+
return _changes(object, base);
|
|
23
23
|
};
|
|
24
24
|
// 数组字段循环校验,解决validateFields无法批量校验的问题
|
|
25
25
|
var customValidate = exports.customValidate = function customValidate(validateKeys, form, rowName) {
|
|
@@ -6,5 +6,5 @@ interface Props extends Pick<ProEnum, 'id' | 'value' | 'onChange' | 'dataSource'
|
|
|
6
6
|
allowClear?: boolean;
|
|
7
7
|
button?: boolean;
|
|
8
8
|
}
|
|
9
|
-
declare const Group: (props: Props) => JSX.Element;
|
|
9
|
+
declare const Group: (props: Props) => import("react/jsx-runtime").JSX.Element;
|
|
10
10
|
export default Group;
|
|
@@ -3,5 +3,5 @@ interface Props extends Pick<ProEnum, 'id' | 'value' | 'onChange' | 'dataSource'
|
|
|
3
3
|
fieldValue: string;
|
|
4
4
|
fieldLabel: string;
|
|
5
5
|
}
|
|
6
|
-
declare const ProEnumTag: (props: Props) => JSX.Element;
|
|
6
|
+
declare const ProEnumTag: (props: Props) => import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
export default ProEnumTag;
|
package/lib/ProEnum/index.d.ts
CHANGED
|
@@ -2,8 +2,8 @@ import useEnum from './hooks/useEnum';
|
|
|
2
2
|
import { ProEnumProps } from './propsType';
|
|
3
3
|
import './style/index.less';
|
|
4
4
|
declare const ProEnum: {
|
|
5
|
-
(props: ProEnumProps): JSX.Element;
|
|
6
|
-
getEnumLabel: (code: string | string[], value: any, compose?: boolean, fieldNameLabel?: string, fieldNameValue?: string) => JSX.Element;
|
|
5
|
+
(props: ProEnumProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
getEnumLabel: (code: string | string[], value: any, compose?: boolean, fieldNameLabel?: string, fieldNameValue?: string) => import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
useEnum: typeof useEnum;
|
|
8
8
|
};
|
|
9
9
|
export default ProEnum;
|
|
@@ -10,7 +10,7 @@ var SimpleEventCenter = /*#__PURE__*/function () {
|
|
|
10
10
|
this.events = void 0;
|
|
11
11
|
this.events = new Map();
|
|
12
12
|
}
|
|
13
|
-
(0, _createClass2.default)(SimpleEventCenter, [{
|
|
13
|
+
return (0, _createClass2.default)(SimpleEventCenter, [{
|
|
14
14
|
key: "subscribe",
|
|
15
15
|
value: function subscribe(eventName, callback) {
|
|
16
16
|
if (!this.events.has(eventName)) {
|
|
@@ -37,6 +37,5 @@ var SimpleEventCenter = /*#__PURE__*/function () {
|
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
}]);
|
|
40
|
-
return SimpleEventCenter;
|
|
41
40
|
}(); // 将 eventCenter 实例添加到 window 对象上
|
|
42
41
|
window.eventCenter = new SimpleEventCenter();
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const getEnumLabel: (code: string | string[], value: any, compose?: boolean, fieldNameLabel?: string, fieldNameValue?: string) => JSX.Element;
|
|
1
|
+
declare const getEnumLabel: (code: string | string[], value: any, compose?: boolean, fieldNameLabel?: string, fieldNameValue?: string) => import("react/jsx-runtime").JSX.Element;
|
|
2
2
|
export default getEnumLabel;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ProCascaderProps } from './propsType';
|
|
3
|
-
declare const _default: import("react").MemoExoticComponent<(props: ProCascaderProps) => JSX.Element>;
|
|
3
|
+
declare const _default: import("react").MemoExoticComponent<(props: ProCascaderProps) => import("react/jsx-runtime").JSX.Element>;
|
|
4
4
|
export default _default;
|