linkmore-design 1.0.22 → 1.0.23
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/dist/index.umd.js +266 -224
- package/dist/index.umd.min.js +5 -5
- package/es/ButtonTags/style/style.css +4 -0
- package/es/Card/style/index.css +4 -0
- package/es/CkFilter/baseFilter/moreFilters.js +1 -4
- package/es/CkFilter/components/filterTypes.js +45 -24
- package/es/CkFilter/style/style.css +6 -4
- package/es/CustomerService/style/style.css +4 -0
- package/es/Drawer/style/index.css +4 -0
- package/es/Dropdown/index.js +2 -2
- package/es/Dropdown/style/index.css +11 -0
- package/es/EditTable/style/style.css +4 -0
- package/es/Filter/style/style.css +4 -0
- package/es/Input/index.js +23 -3
- package/es/Input/style/style.css +4 -0
- package/es/InputNumber/style/index.css +4 -0
- package/es/LeftTable/style/style.css +4 -0
- package/es/LmTable/ImgList/imgCell.js +9 -17
- package/es/LmTable/style/style.css +5 -1
- package/es/Modal/style/index.css +10 -0
- package/es/Notification/index.js +6 -8
- package/es/Notification/style/index.css +7 -0
- package/es/Pagination/index.js +6 -1
- package/es/Pagination/style/index.css +29 -0
- package/es/PopTable/style/style.css +4 -0
- package/es/ProTable/style/style.css +5 -0
- package/es/Radio/index.js +1 -0
- package/es/Select/style/index.css +4 -0
- package/es/Space/style/index.css +4 -0
- package/es/styles/main.css +4 -0
- package/es/styles/resetAntd.css +4 -0
- package/lib/ButtonTags/style/style.css +4 -0
- package/lib/Card/style/index.css +4 -0
- package/lib/CkFilter/baseFilter/moreFilters.js +1 -4
- package/lib/CkFilter/components/filterTypes.js +45 -24
- package/lib/CkFilter/style/style.css +6 -4
- package/lib/CustomerService/style/style.css +4 -0
- package/lib/Drawer/style/index.css +4 -0
- package/lib/Dropdown/index.js +2 -2
- package/lib/Dropdown/style/index.css +11 -0
- package/lib/EditTable/style/style.css +4 -0
- package/lib/Filter/style/style.css +4 -0
- package/lib/Input/index.js +23 -3
- package/lib/Input/style/style.css +4 -0
- package/lib/InputNumber/style/index.css +4 -0
- package/lib/LeftTable/style/style.css +4 -0
- package/lib/LmTable/ImgList/imgCell.js +9 -17
- package/lib/LmTable/style/style.css +5 -1
- package/lib/Modal/style/index.css +10 -0
- package/lib/Notification/index.js +6 -8
- package/lib/Notification/style/index.css +7 -0
- package/lib/Pagination/index.js +6 -1
- package/lib/Pagination/style/index.css +29 -0
- package/lib/PopTable/style/style.css +4 -0
- package/lib/ProTable/style/style.css +5 -0
- package/lib/Radio/index.js +1 -0
- package/lib/Select/style/index.css +4 -0
- package/lib/Space/style/index.css +4 -0
- package/lib/styles/main.css +4 -0
- package/lib/styles/resetAntd.css +4 -0
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -618,10 +618,10 @@
|
|
|
618
618
|
return React.useReducer(reducer, initialState);
|
|
619
619
|
};
|
|
620
620
|
|
|
621
|
-
var Context = /*#__PURE__*/React.createContext();
|
|
621
|
+
var Context$1 = /*#__PURE__*/React.createContext();
|
|
622
622
|
|
|
623
623
|
var useStore = function useStore() {
|
|
624
|
-
return React.useContext(Context);
|
|
624
|
+
return React.useContext(Context$1);
|
|
625
625
|
};
|
|
626
626
|
|
|
627
627
|
var _typeof_1 = createCommonjsModule(function (module) {
|
|
@@ -26384,7 +26384,8 @@
|
|
|
26384
26384
|
|
|
26385
26385
|
|
|
26386
26386
|
var MoreFilter = function MoreFilter(_ref12) {
|
|
26387
|
-
var filters = _ref12.filters,
|
|
26387
|
+
var _ref12$filters = _ref12.filters,
|
|
26388
|
+
filters = _ref12$filters === void 0 ? [] : _ref12$filters,
|
|
26388
26389
|
getFilterValue = _ref12.getFilterValue,
|
|
26389
26390
|
setFilterValue = _ref12.setFilterValue;
|
|
26390
26391
|
|
|
@@ -26395,9 +26396,16 @@
|
|
|
26395
26396
|
setCheckedValues = _useState10[1]; // 排序后的数组
|
|
26396
26397
|
|
|
26397
26398
|
|
|
26398
|
-
var
|
|
26399
|
-
|
|
26400
|
-
|
|
26399
|
+
var _useState11 = React.useState(filters || []),
|
|
26400
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
26401
|
+
options = _useState12[0],
|
|
26402
|
+
setOptions = _useState12[1];
|
|
26403
|
+
|
|
26404
|
+
console.log('more'); // 是否存在搜索, 当数据大于8时存在搜索
|
|
26405
|
+
|
|
26406
|
+
var isSearch = React.useMemo(function () {
|
|
26407
|
+
return filters.length > 8;
|
|
26408
|
+
}, [filters.length]); // 是否可置顶, 第一项无置顶操作, 所以这里的index > 0
|
|
26401
26409
|
|
|
26402
26410
|
var isTop = React.useCallback(function (item) {
|
|
26403
26411
|
return checkedValues.includes(item.field) && filters.findIndex(function (v) {
|
|
@@ -26421,6 +26429,13 @@
|
|
|
26421
26429
|
});
|
|
26422
26430
|
console.log('nValue', checkAll, nValue, nValue.length);
|
|
26423
26431
|
setCheckedValues(nValue); // setFilterValue(options, checkAll ? 'hidden' : 'show')
|
|
26432
|
+
}; // 搜索
|
|
26433
|
+
|
|
26434
|
+
|
|
26435
|
+
var handleFilter = function handleFilter(val) {
|
|
26436
|
+
setOptions(filters.filter(function (v) {
|
|
26437
|
+
return v.title.indexOf(val) > -1;
|
|
26438
|
+
}));
|
|
26424
26439
|
}; // 重置
|
|
26425
26440
|
|
|
26426
26441
|
|
|
@@ -26452,7 +26467,6 @@
|
|
|
26452
26467
|
var nValue = checkedValues.includes(item.field) ? checkedValues.filter(function (v) {
|
|
26453
26468
|
return v !== item.field;
|
|
26454
26469
|
}) : [].concat(_toConsumableArray(checkedValues), [item.field]);
|
|
26455
|
-
console.log('item', getFilterValue, nValue, checkedValues, item);
|
|
26456
26470
|
setCheckedValues(nValue);
|
|
26457
26471
|
};
|
|
26458
26472
|
|
|
@@ -26460,7 +26474,12 @@
|
|
|
26460
26474
|
className: "filter_dropdown"
|
|
26461
26475
|
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
26462
26476
|
className: "filter_header"
|
|
26463
|
-
}, /*#__PURE__*/React__default['default'].createElement(
|
|
26477
|
+
}, isSearch && /*#__PURE__*/React__default['default'].createElement(linkmoreDesign.Input.Search, {
|
|
26478
|
+
allowClear: true,
|
|
26479
|
+
size: "small",
|
|
26480
|
+
placeholder: "\u8BF7\u8F93\u5165",
|
|
26481
|
+
onSearch: handleFilter
|
|
26482
|
+
}), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
26464
26483
|
className: "filter_header_operate"
|
|
26465
26484
|
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
26466
26485
|
onClick: onCheckAllChange,
|
|
@@ -26582,7 +26601,9 @@
|
|
|
26582
26601
|
|
|
26583
26602
|
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(_DatePicker__default['default'].RangePicker, _extends({
|
|
26584
26603
|
picker: "date",
|
|
26585
|
-
separator:
|
|
26604
|
+
separator: /*#__PURE__*/React__default['default'].createElement(IconFont, {
|
|
26605
|
+
type: "lmweb-swap-right"
|
|
26606
|
+
}),
|
|
26586
26607
|
placeholder: ['开始日期', '结束日期'],
|
|
26587
26608
|
style: {
|
|
26588
26609
|
width: 200
|
|
@@ -26591,7 +26612,7 @@
|
|
|
26591
26612
|
value: value,
|
|
26592
26613
|
onChange: handleOnChange,
|
|
26593
26614
|
panelRender: panelRender,
|
|
26594
|
-
dropdownClassName: "
|
|
26615
|
+
dropdownClassName: "lm_filter_dropdown_picker",
|
|
26595
26616
|
bordered: false,
|
|
26596
26617
|
size: "small"
|
|
26597
26618
|
})));
|
|
@@ -26617,25 +26638,25 @@
|
|
|
26617
26638
|
itemProps = _props$itemProps === void 0 ? {} : _props$itemProps,
|
|
26618
26639
|
isFiltering = props.isFiltering;
|
|
26619
26640
|
|
|
26620
|
-
var
|
|
26621
|
-
_useState12 = _slicedToArray(_useState11, 2),
|
|
26622
|
-
visible = _useState12[0],
|
|
26623
|
-
setVisible = _useState12[1];
|
|
26624
|
-
|
|
26625
|
-
var _useState13 = React.useState(filters),
|
|
26641
|
+
var _useState13 = React.useState(false),
|
|
26626
26642
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
26627
|
-
|
|
26628
|
-
|
|
26643
|
+
visible = _useState14[0],
|
|
26644
|
+
setVisible = _useState14[1];
|
|
26629
26645
|
|
|
26630
|
-
var _useState15 = React.useState(
|
|
26646
|
+
var _useState15 = React.useState(filters),
|
|
26631
26647
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
26632
|
-
|
|
26633
|
-
|
|
26648
|
+
options = _useState16[0],
|
|
26649
|
+
setOptions = _useState16[1];
|
|
26634
26650
|
|
|
26635
|
-
var _useState17 = React.useState(
|
|
26651
|
+
var _useState17 = React.useState('全部'),
|
|
26636
26652
|
_useState18 = _slicedToArray(_useState17, 2),
|
|
26637
|
-
|
|
26638
|
-
|
|
26653
|
+
text = _useState18[0],
|
|
26654
|
+
setText = _useState18[1];
|
|
26655
|
+
|
|
26656
|
+
var _useState19 = React.useState(getFilterValue || itemProps.multiple ? [] : ''),
|
|
26657
|
+
_useState20 = _slicedToArray(_useState19, 2),
|
|
26658
|
+
checkedValues = _useState20[0],
|
|
26659
|
+
setCheckedValues = _useState20[1]; // const isSearch = useMemo(() => filters.length > 8, [filters.length]);
|
|
26639
26660
|
|
|
26640
26661
|
|
|
26641
26662
|
var handleFilter = function handleFilter(val) {
|
|
@@ -27146,10 +27167,7 @@
|
|
|
27146
27167
|
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
27147
27168
|
className: classnames('filter_item filter_item_more', {
|
|
27148
27169
|
active: visible
|
|
27149
|
-
})
|
|
27150
|
-
onClick: function onClick() {
|
|
27151
|
-
return setVisible(!visible);
|
|
27152
|
-
}
|
|
27170
|
+
})
|
|
27153
27171
|
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
27154
27172
|
className: "filter_item_value"
|
|
27155
27173
|
}, /*#__PURE__*/React__default['default'].createElement(IconFont, {
|
|
@@ -29085,7 +29103,7 @@
|
|
|
29085
29103
|
setFilter: setFilter
|
|
29086
29104
|
};
|
|
29087
29105
|
});
|
|
29088
|
-
return /*#__PURE__*/React__default['default'].createElement(Context.Provider, {
|
|
29106
|
+
return /*#__PURE__*/React__default['default'].createElement(Context$1.Provider, {
|
|
29089
29107
|
value: {
|
|
29090
29108
|
state: state,
|
|
29091
29109
|
dispatch: dispatch
|
|
@@ -29562,7 +29580,7 @@
|
|
|
29562
29580
|
size: "small"
|
|
29563
29581
|
}, props, {
|
|
29564
29582
|
overlayClassName: classnames(props.overlayClassName, 'lm_dropdown_overlay'),
|
|
29565
|
-
className: classnames(props.className, 'lm_dropdown_button')
|
|
29583
|
+
className: classnames(props.className, 'lm_dropdown_button', props.disabled ? 'disabled' : '')
|
|
29566
29584
|
}));
|
|
29567
29585
|
}
|
|
29568
29586
|
|
|
@@ -29575,7 +29593,7 @@
|
|
|
29575
29593
|
overlayStyle: minwidth ? _objectSpread({
|
|
29576
29594
|
minWidth: minwidth
|
|
29577
29595
|
}, props.overlayStyle) : _objectSpread({}, props.overlayStyle),
|
|
29578
|
-
className: classnames(props.className, 'lm_dropdown_button')
|
|
29596
|
+
className: classnames(props.className, 'lm_dropdown_button', props.disabled ? 'disabled' : '')
|
|
29579
29597
|
})));
|
|
29580
29598
|
};
|
|
29581
29599
|
|
|
@@ -29689,10 +29707,10 @@
|
|
|
29689
29707
|
}, /*#__PURE__*/React__default['default'].createElement(UploadBox, props)));
|
|
29690
29708
|
};
|
|
29691
29709
|
|
|
29692
|
-
var Context$
|
|
29710
|
+
var Context$2 = /*#__PURE__*/React.createContext(); // 视图展示
|
|
29693
29711
|
|
|
29694
29712
|
var ViewImgItem = function ViewImgItem(props) {
|
|
29695
|
-
var _useContext = React.useContext(Context$
|
|
29713
|
+
var _useContext = React.useContext(Context$2),
|
|
29696
29714
|
value = _useContext.value,
|
|
29697
29715
|
isCheckOss = _useContext.isCheckOss,
|
|
29698
29716
|
size = _useContext.size,
|
|
@@ -29779,7 +29797,7 @@
|
|
|
29779
29797
|
};
|
|
29780
29798
|
|
|
29781
29799
|
var ViewImg = function ViewImg() {
|
|
29782
|
-
var _useContext2 = React.useContext(Context$
|
|
29800
|
+
var _useContext2 = React.useContext(Context$2),
|
|
29783
29801
|
value = _useContext2.value;
|
|
29784
29802
|
|
|
29785
29803
|
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, value === null || value === void 0 ? void 0 : value.map(function (v, idx) {
|
|
@@ -29790,7 +29808,7 @@
|
|
|
29790
29808
|
};
|
|
29791
29809
|
|
|
29792
29810
|
var UploadCard = function UploadCard() {
|
|
29793
|
-
var _useContext3 = React.useContext(Context$
|
|
29811
|
+
var _useContext3 = React.useContext(Context$2),
|
|
29794
29812
|
_useContext3$value = _useContext3.value,
|
|
29795
29813
|
value = _useContext3$value === void 0 ? [] : _useContext3$value,
|
|
29796
29814
|
onChange = _useContext3.onChange,
|
|
@@ -29926,7 +29944,7 @@
|
|
|
29926
29944
|
|
|
29927
29945
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
29928
29946
|
className: "lm_upload_img"
|
|
29929
|
-
}, /*#__PURE__*/React__default['default'].createElement(Context$
|
|
29947
|
+
}, /*#__PURE__*/React__default['default'].createElement(Context$2.Provider, {
|
|
29930
29948
|
value: _objectSpread(_objectSpread({}, defaultConfig), props)
|
|
29931
29949
|
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
29932
29950
|
className: "upload_body",
|
|
@@ -32023,20 +32041,33 @@
|
|
|
32023
32041
|
});
|
|
32024
32042
|
};
|
|
32025
32043
|
|
|
32044
|
+
var _excluded$f = ["allowClear"],
|
|
32045
|
+
_excluded2$4 = ["allowClear"],
|
|
32046
|
+
_excluded3$2 = ["allowClear"];
|
|
32047
|
+
|
|
32026
32048
|
var LmInput = function LmInput(props) {
|
|
32049
|
+
var _props$allowClear = props.allowClear,
|
|
32050
|
+
rest = _objectWithoutProperties(props, _excluded$f);
|
|
32051
|
+
|
|
32027
32052
|
return /*#__PURE__*/React__default['default'].createElement(_Input__default['default'], _extends({
|
|
32028
32053
|
className: "lm_input"
|
|
32029
|
-
},
|
|
32054
|
+
}, rest, {
|
|
32055
|
+
allowClear: true
|
|
32056
|
+
}));
|
|
32030
32057
|
};
|
|
32031
32058
|
|
|
32032
32059
|
LmInput.Group = _Input__default['default'].Group;
|
|
32033
32060
|
|
|
32034
32061
|
LmInput.Search = function (props) {
|
|
32062
|
+
var _props$allowClear2 = props.allowClear,
|
|
32063
|
+
rest = _objectWithoutProperties(props, _excluded2$4);
|
|
32064
|
+
|
|
32035
32065
|
return /*#__PURE__*/React__default['default'].createElement(_Input__default['default'].Search, _extends({
|
|
32036
32066
|
enterButton: /*#__PURE__*/React__default['default'].createElement(IconFont, {
|
|
32037
32067
|
type: "lmweb-search"
|
|
32038
32068
|
})
|
|
32039
|
-
},
|
|
32069
|
+
}, rest, {
|
|
32070
|
+
allowClear: true,
|
|
32040
32071
|
className: "lm_input_search"
|
|
32041
32072
|
}));
|
|
32042
32073
|
};
|
|
@@ -32044,6 +32075,9 @@
|
|
|
32044
32075
|
LmInput.TextArea = _Input__default['default'].TextArea;
|
|
32045
32076
|
|
|
32046
32077
|
LmInput.Password = function (props) {
|
|
32078
|
+
var _props$allowClear3 = props.allowClear,
|
|
32079
|
+
rest = _objectWithoutProperties(props, _excluded3$2);
|
|
32080
|
+
|
|
32047
32081
|
return /*#__PURE__*/React__default['default'].createElement(_Input__default['default'].Password, _extends({
|
|
32048
32082
|
className: "lm_input_password",
|
|
32049
32083
|
iconRender: function iconRender(visible) {
|
|
@@ -32053,16 +32087,18 @@
|
|
|
32053
32087
|
type: "lmweb-eye-close"
|
|
32054
32088
|
});
|
|
32055
32089
|
}
|
|
32056
|
-
},
|
|
32090
|
+
}, rest, {
|
|
32091
|
+
allowClear: true
|
|
32092
|
+
}));
|
|
32057
32093
|
};
|
|
32058
32094
|
|
|
32059
|
-
var _excluded$
|
|
32095
|
+
var _excluded$g = ["children", "className"];
|
|
32060
32096
|
var prefixCls$2 = 'lm_input-number';
|
|
32061
32097
|
|
|
32062
32098
|
var LMInputNumber = function LMInputNumber(props) {
|
|
32063
32099
|
var children = props.children,
|
|
32064
32100
|
className = props.className,
|
|
32065
|
-
others = _objectWithoutProperties(props, _excluded$
|
|
32101
|
+
others = _objectWithoutProperties(props, _excluded$g);
|
|
32066
32102
|
|
|
32067
32103
|
return /*#__PURE__*/React__default['default'].createElement(_InputNumber__default['default'], _extends({
|
|
32068
32104
|
className: classnames(className, prefixCls$2),
|
|
@@ -32186,7 +32222,7 @@
|
|
|
32186
32222
|
}));
|
|
32187
32223
|
};
|
|
32188
32224
|
|
|
32189
|
-
var _excluded$
|
|
32225
|
+
var _excluded$h = ["wrapClassName", "size", "onOk", "onCancel", "okText", "cancelText"];
|
|
32190
32226
|
var prefixCls$3 = 'lm_modal';
|
|
32191
32227
|
|
|
32192
32228
|
var CLMModal = function CLMModal(props) {
|
|
@@ -32199,7 +32235,7 @@
|
|
|
32199
32235
|
okText = _props$okText === void 0 ? '确定' : _props$okText,
|
|
32200
32236
|
_props$cancelText = props.cancelText,
|
|
32201
32237
|
cancelText = _props$cancelText === void 0 ? '取消' : _props$cancelText,
|
|
32202
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
32238
|
+
other = _objectWithoutProperties(props, _excluded$h);
|
|
32203
32239
|
|
|
32204
32240
|
return /*#__PURE__*/React__default['default'].createElement(_Modal__default['default'], _extends({
|
|
32205
32241
|
wrapClassName: classnames(wrapClassName, prefixCls$3),
|
|
@@ -32262,14 +32298,14 @@
|
|
|
32262
32298
|
LMModal.destroyAll = _Modal__default['default'].destroyAll;
|
|
32263
32299
|
LMModal.config = _Modal__default['default'].config;
|
|
32264
32300
|
|
|
32265
|
-
var _excluded$
|
|
32301
|
+
var _excluded$i = ["visible", "wrapClassName", "onClose", "children"];
|
|
32266
32302
|
|
|
32267
32303
|
var Index$h = function Index(props) {
|
|
32268
32304
|
var visible = props.visible,
|
|
32269
32305
|
wrapClassName = props.wrapClassName,
|
|
32270
32306
|
onClose = props.onClose,
|
|
32271
32307
|
children = props.children,
|
|
32272
|
-
reset = _objectWithoutProperties(props, _excluded$
|
|
32308
|
+
reset = _objectWithoutProperties(props, _excluded$i);
|
|
32273
32309
|
|
|
32274
32310
|
var handleClose = function handleClose() {
|
|
32275
32311
|
onClose();
|
|
@@ -32303,7 +32339,7 @@
|
|
|
32303
32339
|
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(_Modal__default['default'], _extends({}, config, reset), children));
|
|
32304
32340
|
};
|
|
32305
32341
|
|
|
32306
|
-
var _excluded$
|
|
32342
|
+
var _excluded$j = ["type"];
|
|
32307
32343
|
/*
|
|
32308
32344
|
增加参数:
|
|
32309
32345
|
type: 指定图片类型
|
|
@@ -32311,7 +32347,7 @@
|
|
|
32311
32347
|
|
|
32312
32348
|
var Confirm = function Confirm(_ref) {
|
|
32313
32349
|
var type = _ref.type,
|
|
32314
|
-
resetProps = _objectWithoutProperties(_ref, _excluded$
|
|
32350
|
+
resetProps = _objectWithoutProperties(_ref, _excluded$j);
|
|
32315
32351
|
|
|
32316
32352
|
var Icon = function Icon() {
|
|
32317
32353
|
switch (type) {
|
|
@@ -32368,13 +32404,13 @@
|
|
|
32368
32404
|
}, resetProps));
|
|
32369
32405
|
};
|
|
32370
32406
|
|
|
32371
|
-
var _excluded$
|
|
32407
|
+
var _excluded$k = ["visible", "wrapClassName", "children"];
|
|
32372
32408
|
|
|
32373
32409
|
var Index$i = function Index(props) {
|
|
32374
32410
|
var visible = props.visible,
|
|
32375
32411
|
wrapClassName = props.wrapClassName,
|
|
32376
32412
|
children = props.children,
|
|
32377
|
-
reset = _objectWithoutProperties(props, _excluded$
|
|
32413
|
+
reset = _objectWithoutProperties(props, _excluded$k);
|
|
32378
32414
|
|
|
32379
32415
|
var config = {
|
|
32380
32416
|
title: '编辑',
|
|
@@ -32392,7 +32428,7 @@
|
|
|
32392
32428
|
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(_Modal__default['default'], _extends({}, config, reset), children));
|
|
32393
32429
|
};
|
|
32394
32430
|
|
|
32395
|
-
var _excluded$
|
|
32431
|
+
var _excluded$l = ["visible", "onClose", "onSure", "down", "desc", "downEvent", "isType", "renderFileType"];
|
|
32396
32432
|
var downLink = [{
|
|
32397
32433
|
id: '1',
|
|
32398
32434
|
label: '成衣',
|
|
@@ -32497,7 +32533,7 @@
|
|
|
32497
32533
|
downEvent = _ref2.downEvent,
|
|
32498
32534
|
isType = _ref2.isType,
|
|
32499
32535
|
renderFileType = _ref2.renderFileType,
|
|
32500
|
-
resetProps = _objectWithoutProperties(_ref2, _excluded$
|
|
32536
|
+
resetProps = _objectWithoutProperties(_ref2, _excluded$l);
|
|
32501
32537
|
|
|
32502
32538
|
var _useState = React.useState({
|
|
32503
32539
|
files: []
|
|
@@ -32651,21 +32687,26 @@
|
|
|
32651
32687
|
Modal.ExportModal = Index$j;
|
|
32652
32688
|
Modal.Confirm = Confirm;
|
|
32653
32689
|
|
|
32654
|
-
var _excluded$
|
|
32690
|
+
var _excluded$m = ["children", "className"];
|
|
32655
32691
|
var prefixCls$4 = 'lm_pagination';
|
|
32656
32692
|
|
|
32657
32693
|
var LMPagination = function LMPagination(props) {
|
|
32658
32694
|
var children = props.children,
|
|
32659
32695
|
className = props.className,
|
|
32660
|
-
others = _objectWithoutProperties(props, _excluded$
|
|
32696
|
+
others = _objectWithoutProperties(props, _excluded$m);
|
|
32661
32697
|
|
|
32662
32698
|
return /*#__PURE__*/React__default['default'].createElement(_Pagination__default['default'], _extends({
|
|
32663
32699
|
className: classnames(className, prefixCls$4),
|
|
32664
32700
|
size: "small"
|
|
32665
|
-
}, others
|
|
32701
|
+
}, others, {
|
|
32702
|
+
locale: {
|
|
32703
|
+
items_per_page: '/条',
|
|
32704
|
+
jump_to: '前往'
|
|
32705
|
+
}
|
|
32706
|
+
}));
|
|
32666
32707
|
};
|
|
32667
32708
|
|
|
32668
|
-
var _excluded$
|
|
32709
|
+
var _excluded$n = ["columns", "dataSource", "total", "onClick", "onDoubleClick", "rowSelection", "rowKey", "scroll", "defaultActive", "onChange"];
|
|
32669
32710
|
|
|
32670
32711
|
/*
|
|
32671
32712
|
接收参数:
|
|
@@ -32685,7 +32726,7 @@
|
|
|
32685
32726
|
scroll = props.scroll,
|
|
32686
32727
|
defaultActive = props.defaultActive,
|
|
32687
32728
|
onChange = props.onChange,
|
|
32688
|
-
resetProps = _objectWithoutProperties(props, _excluded$
|
|
32729
|
+
resetProps = _objectWithoutProperties(props, _excluded$n); // 行单击选中,增加高亮
|
|
32689
32730
|
|
|
32690
32731
|
|
|
32691
32732
|
var _useState = React.useState(defaultActive),
|
|
@@ -32752,7 +32793,7 @@
|
|
|
32752
32793
|
}));
|
|
32753
32794
|
});
|
|
32754
32795
|
|
|
32755
|
-
var _excluded$
|
|
32796
|
+
var _excluded$o = ["columns", "data", "total", "rowSelection", "onChange", "getCheckboxRecords"];
|
|
32756
32797
|
|
|
32757
32798
|
var Demo = function Demo(props) {
|
|
32758
32799
|
var inputRef = React__default['default'].useRef();
|
|
@@ -32770,7 +32811,7 @@
|
|
|
32770
32811
|
rowSelection = _props$rowSelection === void 0 ? true : _props$rowSelection,
|
|
32771
32812
|
onChange = props.onChange,
|
|
32772
32813
|
getCheckboxRecords = props.getCheckboxRecords,
|
|
32773
|
-
resetProps = _objectWithoutProperties(props, _excluded$
|
|
32814
|
+
resetProps = _objectWithoutProperties(props, _excluded$o);
|
|
32774
32815
|
|
|
32775
32816
|
var _useState3 = React.useState('base'),
|
|
32776
32817
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
@@ -35985,8 +36026,8 @@
|
|
|
35985
36026
|
});
|
|
35986
36027
|
};
|
|
35987
36028
|
|
|
35988
|
-
var _excluded$
|
|
35989
|
-
_excluded2$
|
|
36029
|
+
var _excluded$p = ["label", "rules", "name", "children", "popoverProps"],
|
|
36030
|
+
_excluded2$5 = ["errorType", "rules", "name", "popoverProps", "children"];
|
|
35990
36031
|
var FIX_INLINE_STYLE = {
|
|
35991
36032
|
marginTop: -5,
|
|
35992
36033
|
marginBottom: -5,
|
|
@@ -36047,7 +36088,7 @@
|
|
|
36047
36088
|
name = _ref2.name,
|
|
36048
36089
|
children = _ref2.children,
|
|
36049
36090
|
popoverProps = _ref2.popoverProps,
|
|
36050
|
-
rest = _objectWithoutProperties$1(_ref2, _excluded$
|
|
36091
|
+
rest = _objectWithoutProperties$1(_ref2, _excluded$p);
|
|
36051
36092
|
|
|
36052
36093
|
return jsxRuntime.jsx(_Form__default['default'].Item, _objectSpread2(_objectSpread2({
|
|
36053
36094
|
preserve: false,
|
|
@@ -36076,7 +36117,7 @@
|
|
|
36076
36117
|
name = props.name,
|
|
36077
36118
|
popoverProps = props.popoverProps,
|
|
36078
36119
|
children = props.children,
|
|
36079
|
-
rest = _objectWithoutProperties$1(props, _excluded2$
|
|
36120
|
+
rest = _objectWithoutProperties$1(props, _excluded2$5);
|
|
36080
36121
|
|
|
36081
36122
|
if (name && (rules === null || rules === void 0 ? void 0 : rules.length) && errorType === 'popover') {
|
|
36082
36123
|
return jsxRuntime.jsx(InternalFormItem, _objectSpread2(_objectSpread2({
|
|
@@ -37661,8 +37702,8 @@
|
|
|
37661
37702
|
return [state, setState];
|
|
37662
37703
|
}
|
|
37663
37704
|
|
|
37664
|
-
var _excluded$
|
|
37665
|
-
_excluded2$
|
|
37705
|
+
var _excluded$q = ["map_row_parentKey", "map_row_key"],
|
|
37706
|
+
_excluded2$6 = ["map_row_key"];
|
|
37666
37707
|
var recordKeyToString = function recordKeyToString(rowKey) {
|
|
37667
37708
|
if (Array.isArray(rowKey)) return rowKey.join(',');
|
|
37668
37709
|
return rowKey;
|
|
@@ -37737,7 +37778,7 @@
|
|
|
37737
37778
|
// @ts-ignore
|
|
37738
37779
|
var map_row_parentKey = value.map_row_parentKey,
|
|
37739
37780
|
map_row_key = value.map_row_key,
|
|
37740
|
-
reset = _objectWithoutProperties$1(value, _excluded$
|
|
37781
|
+
reset = _objectWithoutProperties$1(value, _excluded$q);
|
|
37741
37782
|
|
|
37742
37783
|
if (kvArrayMap.has(map_row_key)) {
|
|
37743
37784
|
reset[childrenColumnName] = kvArrayMap.get(map_row_key);
|
|
@@ -37750,7 +37791,7 @@
|
|
|
37750
37791
|
if (!value.map_row_parentKey) {
|
|
37751
37792
|
// @ts-ignore
|
|
37752
37793
|
var map_row_key = value.map_row_key,
|
|
37753
|
-
rest = _objectWithoutProperties$1(value, _excluded2$
|
|
37794
|
+
rest = _objectWithoutProperties$1(value, _excluded2$6);
|
|
37754
37795
|
|
|
37755
37796
|
if (kvArrayMap.has(map_row_key)) {
|
|
37756
37797
|
var item = _objectSpread2(_objectSpread2({}, rest), {}, _defineProperty$1({}, childrenColumnName, kvArrayMap.get(map_row_key)));
|
|
@@ -38538,7 +38579,7 @@
|
|
|
38538
38579
|
});
|
|
38539
38580
|
};
|
|
38540
38581
|
|
|
38541
|
-
var _excluded$
|
|
38582
|
+
var _excluded$r = ["label", "prefixCls", "onChange", "value", "mode", "children", "defaultValue", "size", "showSearch", "disabled", "style", "className", "bordered", "options", "onSearch", "allowClear", "labelInValue", "fieldNames", "lightLabel", "labelTrigger"];
|
|
38542
38583
|
/**
|
|
38543
38584
|
* 如果有 label 就优先使用 label
|
|
38544
38585
|
*
|
|
@@ -38575,7 +38616,7 @@
|
|
|
38575
38616
|
fieldNames = props.fieldNames,
|
|
38576
38617
|
lightLabel = props.lightLabel,
|
|
38577
38618
|
labelTrigger = props.labelTrigger,
|
|
38578
|
-
restProps = _objectWithoutProperties$1(props, _excluded$
|
|
38619
|
+
restProps = _objectWithoutProperties$1(props, _excluded$r);
|
|
38579
38620
|
|
|
38580
38621
|
var _props$placeholder = props.placeholder,
|
|
38581
38622
|
placeholder = _props$placeholder === void 0 ? label : _props$placeholder;
|
|
@@ -38713,7 +38754,7 @@
|
|
|
38713
38754
|
|
|
38714
38755
|
var LightSelect$1 = /*#__PURE__*/React__default['default'].forwardRef(LightSelect);
|
|
38715
38756
|
|
|
38716
|
-
var _excluded$
|
|
38757
|
+
var _excluded$s = ["optionItemRender", "mode", "onSearch", "onFocus", "onChange", "autoClearSearchValue", "searchOnFocus", "resetAfterSelect", "fetchDataOnSearch", "optionFilterProp", "optionLabelProp", "className", "disabled", "options", "fetchData", "resetData", "prefixCls", "onClear", "searchValue", "showSearch", "fieldNames"];
|
|
38717
38758
|
var Option$1 = _Select__default['default'].Option,
|
|
38718
38759
|
OptGroup = _Select__default['default'].OptGroup;
|
|
38719
38760
|
|
|
@@ -38744,7 +38785,7 @@
|
|
|
38744
38785
|
propsSearchValue = props.searchValue,
|
|
38745
38786
|
showSearch = props.showSearch,
|
|
38746
38787
|
fieldNames = props.fieldNames,
|
|
38747
|
-
restProps = _objectWithoutProperties$1(props, _excluded$
|
|
38788
|
+
restProps = _objectWithoutProperties$1(props, _excluded$s);
|
|
38748
38789
|
|
|
38749
38790
|
var _ref = fieldNames || {},
|
|
38750
38791
|
_ref$label = _ref.label,
|
|
@@ -38894,8 +38935,8 @@
|
|
|
38894
38935
|
|
|
38895
38936
|
var SearchSelect$1 = /*#__PURE__*/React__default['default'].forwardRef(SearchSelect);
|
|
38896
38937
|
|
|
38897
|
-
var _excluded$
|
|
38898
|
-
_excluded2$
|
|
38938
|
+
var _excluded$t = ["value", "text"],
|
|
38939
|
+
_excluded2$7 = ["mode", "valueEnum", "render", "renderFormItem", "request", "fieldProps", "plain", "children", "light", "proFieldKey", "params", "label", "bordered", "id", "lightLabel", "labelTrigger"];
|
|
38899
38940
|
var ObjToMap = function ObjToMap(value) {
|
|
38900
38941
|
if (getType(value) === 'map') {
|
|
38901
38942
|
return value;
|
|
@@ -39105,7 +39146,7 @@
|
|
|
39105
39146
|
return proFieldParsingValueEnumToArray(ObjToMap(coverValueEnum)).map(function (_ref2) {
|
|
39106
39147
|
var value = _ref2.value,
|
|
39107
39148
|
text = _ref2.text,
|
|
39108
|
-
rest = _objectWithoutProperties$1(_ref2, _excluded$
|
|
39149
|
+
rest = _objectWithoutProperties$1(_ref2, _excluded$t);
|
|
39109
39150
|
|
|
39110
39151
|
return _objectSpread2({
|
|
39111
39152
|
label: text,
|
|
@@ -39223,7 +39264,7 @@
|
|
|
39223
39264
|
id = props.id,
|
|
39224
39265
|
lightLabel = props.lightLabel,
|
|
39225
39266
|
labelTrigger = props.labelTrigger,
|
|
39226
|
-
rest = _objectWithoutProperties$1(props, _excluded2$
|
|
39267
|
+
rest = _objectWithoutProperties$1(props, _excluded2$7);
|
|
39227
39268
|
|
|
39228
39269
|
var inputRef = React.useRef();
|
|
39229
39270
|
var intl = useIntl();
|
|
@@ -39367,7 +39408,7 @@
|
|
|
39367
39408
|
|
|
39368
39409
|
var FieldSelect$1 = /*#__PURE__*/React__default['default'].forwardRef(FieldSelect);
|
|
39369
39410
|
|
|
39370
|
-
var _excluded$
|
|
39411
|
+
var _excluded$u = ["radioType", "renderFormItem", "mode", "render", "label", "light"];
|
|
39371
39412
|
/**
|
|
39372
39413
|
* 级联选择组件
|
|
39373
39414
|
*
|
|
@@ -39384,7 +39425,7 @@
|
|
|
39384
39425
|
render = _ref.render,
|
|
39385
39426
|
label = _ref.label,
|
|
39386
39427
|
light = _ref.light,
|
|
39387
|
-
rest = _objectWithoutProperties$1(_ref, _excluded$
|
|
39428
|
+
rest = _objectWithoutProperties$1(_ref, _excluded$u);
|
|
39388
39429
|
|
|
39389
39430
|
var _useContext = React.useContext(_ConfigProvider__default['default'].ConfigContext),
|
|
39390
39431
|
getPrefixCls = _useContext.getPrefixCls;
|
|
@@ -39521,7 +39562,7 @@
|
|
|
39521
39562
|
|
|
39522
39563
|
var FieldCascader$1 = /*#__PURE__*/React__default['default'].forwardRef(FieldCascader);
|
|
39523
39564
|
|
|
39524
|
-
var _excluded$
|
|
39565
|
+
var _excluded$v = ["layout", "renderFormItem", "mode", "render"];
|
|
39525
39566
|
/**
|
|
39526
39567
|
* 多选组件
|
|
39527
39568
|
*
|
|
@@ -39535,7 +39576,7 @@
|
|
|
39535
39576
|
renderFormItem = _ref.renderFormItem,
|
|
39536
39577
|
mode = _ref.mode,
|
|
39537
39578
|
render = _ref.render,
|
|
39538
|
-
rest = _objectWithoutProperties$1(_ref, _excluded$
|
|
39579
|
+
rest = _objectWithoutProperties$1(_ref, _excluded$v);
|
|
39539
39580
|
|
|
39540
39581
|
var _useContext = React.useContext(_ConfigProvider__default['default'].ConfigContext),
|
|
39541
39582
|
getPrefixCls = _useContext.getPrefixCls;
|
|
@@ -47718,14 +47759,14 @@
|
|
|
47718
47759
|
};
|
|
47719
47760
|
var SketchPicker = ColorWrap(Sketch);
|
|
47720
47761
|
|
|
47721
|
-
var _excluded$
|
|
47762
|
+
var _excluded$w = ["mode", "popoverProps"];
|
|
47722
47763
|
var DEFAULT_COLORS = ['#FF9D4E', '#5BD8A6', '#5B8FF9', '#F7664E', '#FF86B7', '#2B9E9D', '#9270CA', '#6DC8EC', '#667796', '#F6BD16' // 9 - 黄色
|
|
47723
47764
|
];
|
|
47724
47765
|
|
|
47725
47766
|
var ColorPicker = function ColorPicker(_ref) {
|
|
47726
47767
|
var mode = _ref.mode,
|
|
47727
47768
|
popoverProps = _ref.popoverProps,
|
|
47728
|
-
rest = _objectWithoutProperties$1(_ref, _excluded$
|
|
47769
|
+
rest = _objectWithoutProperties$1(_ref, _excluded$w);
|
|
47729
47770
|
|
|
47730
47771
|
var _useContext = React.useContext(_ConfigProvider__default['default'].ConfigContext),
|
|
47731
47772
|
getPrefixCls = _useContext.getPrefixCls;
|
|
@@ -48325,8 +48366,8 @@
|
|
|
48325
48366
|
return shallowCopy;
|
|
48326
48367
|
}
|
|
48327
48368
|
|
|
48328
|
-
var _excluded$
|
|
48329
|
-
_excluded2$
|
|
48369
|
+
var _excluded$x = ["content", "numberFormatOptions", "numberPopoverRender"],
|
|
48370
|
+
_excluded2$8 = ["text", "mode", "render", "renderFormItem", "fieldProps", "proFieldKey", "plain", "valueEnum", "placeholder", "locale", "customSymbol", "numberFormatOptions", "numberPopoverRender"];
|
|
48330
48371
|
var defaultMoneyIntl = new Intl.NumberFormat('zh-Hans-CN', {
|
|
48331
48372
|
currency: 'CNY',
|
|
48332
48373
|
style: 'currency'
|
|
@@ -48382,7 +48423,7 @@
|
|
|
48382
48423
|
var content = _ref.content,
|
|
48383
48424
|
numberFormatOptions = _ref.numberFormatOptions,
|
|
48384
48425
|
numberPopoverRender = _ref.numberPopoverRender,
|
|
48385
|
-
rest = _objectWithoutProperties$1(_ref, _excluded$
|
|
48426
|
+
rest = _objectWithoutProperties$1(_ref, _excluded$x);
|
|
48386
48427
|
|
|
48387
48428
|
var _useMergedState = useMergedState(function () {
|
|
48388
48429
|
return rest.defaultValue;
|
|
@@ -48444,7 +48485,7 @@
|
|
|
48444
48485
|
numberFormatOptions = _ref2$numberFormatOpt === void 0 ? fieldProps === null || fieldProps === void 0 ? void 0 : fieldProps.numberFormatOptions : _ref2$numberFormatOpt,
|
|
48445
48486
|
_ref2$numberPopoverRe = _ref2.numberPopoverRender,
|
|
48446
48487
|
numberPopoverRender = _ref2$numberPopoverRe === void 0 ? (fieldProps === null || fieldProps === void 0 ? void 0 : fieldProps.numberPopoverRender) || false : _ref2$numberPopoverRe,
|
|
48447
|
-
rest = _objectWithoutProperties$1(_ref2, _excluded2$
|
|
48488
|
+
rest = _objectWithoutProperties$1(_ref2, _excluded2$8);
|
|
48448
48489
|
|
|
48449
48490
|
var precision = (_fieldProps$precision = fieldProps === null || fieldProps === void 0 ? void 0 : fieldProps.precision) !== null && _fieldProps$precision !== void 0 ? _fieldProps$precision : DefaultPrecisionCont;
|
|
48450
48491
|
var intl = useIntl(); // 当手动传入locale时,应该以传入的locale为准,未传入时则根据全局的locale进行国际化
|
|
@@ -48604,7 +48645,7 @@
|
|
|
48604
48645
|
|
|
48605
48646
|
var FieldOptions$1 = /*#__PURE__*/React__default['default'].forwardRef(FieldOptions);
|
|
48606
48647
|
|
|
48607
|
-
var _excluded$
|
|
48648
|
+
var _excluded$y = ["text", "mode", "render", "renderFormItem", "fieldProps", "proFieldKey"];
|
|
48608
48649
|
/**
|
|
48609
48650
|
* 最基本的组件,就是个普通的 Input.Password
|
|
48610
48651
|
*
|
|
@@ -48618,7 +48659,7 @@
|
|
|
48618
48659
|
renderFormItem = _ref.renderFormItem,
|
|
48619
48660
|
fieldProps = _ref.fieldProps,
|
|
48620
48661
|
proFieldKey = _ref.proFieldKey,
|
|
48621
|
-
rest = _objectWithoutProperties$1(_ref, _excluded$
|
|
48662
|
+
rest = _objectWithoutProperties$1(_ref, _excluded$y);
|
|
48622
48663
|
|
|
48623
48664
|
var intl = useIntl();
|
|
48624
48665
|
|
|
@@ -49042,7 +49083,7 @@
|
|
|
49042
49083
|
|
|
49043
49084
|
var FieldProgress$1 = /*#__PURE__*/React__default['default'].forwardRef(FieldProgress);
|
|
49044
49085
|
|
|
49045
|
-
var _excluded$
|
|
49086
|
+
var _excluded$z = ["radioType", "renderFormItem", "mode", "render"];
|
|
49046
49087
|
/**
|
|
49047
49088
|
* 单选组件
|
|
49048
49089
|
*
|
|
@@ -49055,7 +49096,7 @@
|
|
|
49055
49096
|
renderFormItem = _ref.renderFormItem,
|
|
49056
49097
|
mode = _ref.mode,
|
|
49057
49098
|
render = _ref.render,
|
|
49058
|
-
rest = _objectWithoutProperties$1(_ref, _excluded$
|
|
49099
|
+
rest = _objectWithoutProperties$1(_ref, _excluded$z);
|
|
49059
49100
|
|
|
49060
49101
|
var _useContext = React.useContext(_ConfigProvider__default['default'].ConfigContext),
|
|
49061
49102
|
getPrefixCls = _useContext.getPrefixCls;
|
|
@@ -49739,8 +49780,8 @@
|
|
|
49739
49780
|
};
|
|
49740
49781
|
var FieldTimePicker$1 = /*#__PURE__*/React__default['default'].forwardRef(FieldTimePicker);
|
|
49741
49782
|
|
|
49742
|
-
var _excluded$
|
|
49743
|
-
_excluded2$
|
|
49783
|
+
var _excluded$A = ["radioType", "renderFormItem", "mode", "light", "label", "render"],
|
|
49784
|
+
_excluded2$9 = ["onSearch", "onClear", "onChange", "onBlur", "showSearch", "autoClearSearchValue", "treeData", "searchValue"];
|
|
49744
49785
|
/**
|
|
49745
49786
|
* Tree select
|
|
49746
49787
|
* A function that returns a React component.
|
|
@@ -49754,7 +49795,7 @@
|
|
|
49754
49795
|
light = _ref.light,
|
|
49755
49796
|
label = _ref.label,
|
|
49756
49797
|
render = _ref.render,
|
|
49757
|
-
rest = _objectWithoutProperties$1(_ref, _excluded$
|
|
49798
|
+
rest = _objectWithoutProperties$1(_ref, _excluded$A);
|
|
49758
49799
|
|
|
49759
49800
|
var _useContext = React.useContext(_ConfigProvider__default['default'].ConfigContext),
|
|
49760
49801
|
getPrefixCls = _useContext.getPrefixCls;
|
|
@@ -49776,7 +49817,7 @@
|
|
|
49776
49817
|
autoClearSearchValue = _ref2.autoClearSearchValue,
|
|
49777
49818
|
treeData = _ref2.treeData,
|
|
49778
49819
|
propsSearchValue = _ref2.searchValue,
|
|
49779
|
-
fieldProps = _objectWithoutProperties$1(_ref2, _excluded2$
|
|
49820
|
+
fieldProps = _objectWithoutProperties$1(_ref2, _excluded2$9);
|
|
49780
49821
|
|
|
49781
49822
|
var size = React.useContext(_ConfigProvider__default['default'].SizeContext);
|
|
49782
49823
|
|
|
@@ -50001,7 +50042,7 @@
|
|
|
50001
50042
|
});
|
|
50002
50043
|
}
|
|
50003
50044
|
|
|
50004
|
-
var _excluded$
|
|
50045
|
+
var _excluded$B = ["text", "valueType", "mode", "onChange", "renderFormItem", "value", "readonly"];
|
|
50005
50046
|
var REQUEST_VALUE_TYPE = ['select', 'radio', 'radioButton', 'checkbook'];
|
|
50006
50047
|
/**
|
|
50007
50048
|
* Render valueType object
|
|
@@ -50415,7 +50456,7 @@
|
|
|
50415
50456
|
renderFormItem = _ref.renderFormItem,
|
|
50416
50457
|
value = _ref.value,
|
|
50417
50458
|
readonly = _ref.readonly,
|
|
50418
|
-
rest = _objectWithoutProperties$1(_ref, _excluded$
|
|
50459
|
+
rest = _objectWithoutProperties$1(_ref, _excluded$B);
|
|
50419
50460
|
|
|
50420
50461
|
var intl = useIntl();
|
|
50421
50462
|
var context = React.useContext(ConfigContext);
|
|
@@ -51567,7 +51608,7 @@
|
|
|
51567
51608
|
});
|
|
51568
51609
|
};
|
|
51569
51610
|
|
|
51570
|
-
var _excluded$
|
|
51611
|
+
var _excluded$C = ["className", "style", "bodyStyle", "headStyle", "title", "subTitle", "extra", "tip", "wrap", "layout", "loading", "gutter", "tooltip", "split", "headerBordered", "bordered", "children", "size", "actions", "ghost", "hoverable", "direction", "collapsed", "collapsible", "collapsibleIconRender", "defaultCollapsed", "onCollapse", "checked", "onChecked", "tabs", "type"];
|
|
51571
51612
|
var useBreakpoint = _Grid__default['default'].useBreakpoint;
|
|
51572
51613
|
var Card = /*#__PURE__*/React__default['default'].forwardRef(function (props, ref) {
|
|
51573
51614
|
var _classNames2, _classNames3, _classNames4;
|
|
@@ -51613,7 +51654,7 @@
|
|
|
51613
51654
|
onChecked = props.onChecked,
|
|
51614
51655
|
tabs = props.tabs,
|
|
51615
51656
|
type = props.type,
|
|
51616
|
-
rest = _objectWithoutProperties$1(props, _excluded$
|
|
51657
|
+
rest = _objectWithoutProperties$1(props, _excluded$C);
|
|
51617
51658
|
|
|
51618
51659
|
var _useContext = React.useContext(_ConfigProvider__default['default'].ConfigContext),
|
|
51619
51660
|
getPrefixCls = _useContext.getPrefixCls;
|
|
@@ -51818,7 +51859,7 @@
|
|
|
51818
51859
|
});
|
|
51819
51860
|
};
|
|
51820
51861
|
|
|
51821
|
-
var _excluded$
|
|
51862
|
+
var _excluded$D = ["key", "tab", "tabKey", "disabled", "destroyInactiveTabPane", "children", "className", "style", "cardProps"];
|
|
51822
51863
|
|
|
51823
51864
|
var TabPane = function TabPane(props) {
|
|
51824
51865
|
var key = props.key,
|
|
@@ -51830,7 +51871,7 @@
|
|
|
51830
51871
|
className = props.className,
|
|
51831
51872
|
style = props.style,
|
|
51832
51873
|
cardProps = props.cardProps,
|
|
51833
|
-
rest = _objectWithoutProperties$1(props, _excluded$
|
|
51874
|
+
rest = _objectWithoutProperties$1(props, _excluded$D);
|
|
51834
51875
|
|
|
51835
51876
|
var _useContext = React.useContext(_ConfigProvider__default['default'].ConfigContext),
|
|
51836
51877
|
getPrefixCls = _useContext.getPrefixCls;
|
|
@@ -52053,7 +52094,7 @@
|
|
|
52053
52094
|
warningOnce(false, 'Can not find FormContext. Please make sure you wrap Field under Form.');
|
|
52054
52095
|
};
|
|
52055
52096
|
|
|
52056
|
-
var Context$
|
|
52097
|
+
var Context$3 = /*#__PURE__*/React.createContext({
|
|
52057
52098
|
getFieldValue: warningFunc,
|
|
52058
52099
|
getFieldsValue: warningFunc,
|
|
52059
52100
|
getFieldError: warningFunc,
|
|
@@ -53994,7 +54035,7 @@
|
|
|
53994
54035
|
return _finishOnFirstFailed.apply(this, arguments);
|
|
53995
54036
|
}
|
|
53996
54037
|
|
|
53997
|
-
var _excluded$
|
|
54038
|
+
var _excluded$E = ["name"];
|
|
53998
54039
|
var EMPTY_ERRORS = [];
|
|
53999
54040
|
|
|
54000
54041
|
function requireUpdate(shouldUpdate, prev, next, prevValue, nextValue, info) {
|
|
@@ -54596,7 +54637,7 @@
|
|
|
54596
54637
|
return Field;
|
|
54597
54638
|
}(React.Component);
|
|
54598
54639
|
|
|
54599
|
-
Field.contextType = Context$
|
|
54640
|
+
Field.contextType = Context$3;
|
|
54600
54641
|
Field.defaultProps = {
|
|
54601
54642
|
trigger: 'onChange',
|
|
54602
54643
|
valuePropName: 'value'
|
|
@@ -54604,9 +54645,9 @@
|
|
|
54604
54645
|
|
|
54605
54646
|
function WrapperField(_ref5) {
|
|
54606
54647
|
var name = _ref5.name,
|
|
54607
|
-
restProps = _objectWithoutProperties$1(_ref5, _excluded$
|
|
54648
|
+
restProps = _objectWithoutProperties$1(_ref5, _excluded$E);
|
|
54608
54649
|
|
|
54609
|
-
var fieldContext = React.useContext(Context$
|
|
54650
|
+
var fieldContext = React.useContext(Context$3);
|
|
54610
54651
|
var namePath = name !== undefined ? getNamePath(name) : undefined;
|
|
54611
54652
|
var key = 'keep';
|
|
54612
54653
|
|
|
@@ -54636,7 +54677,7 @@
|
|
|
54636
54677
|
children = _ref.children,
|
|
54637
54678
|
rules = _ref.rules,
|
|
54638
54679
|
validateTrigger = _ref.validateTrigger;
|
|
54639
|
-
var context = React.useContext(Context$
|
|
54680
|
+
var context = React.useContext(Context$3);
|
|
54640
54681
|
var keyRef = React.useRef({
|
|
54641
54682
|
keys: [],
|
|
54642
54683
|
id: 0
|
|
@@ -54679,7 +54720,7 @@
|
|
|
54679
54720
|
|
|
54680
54721
|
return /*#__PURE__*/React.createElement(ListContext.Provider, {
|
|
54681
54722
|
value: listContext
|
|
54682
|
-
}, /*#__PURE__*/React.createElement(Context$
|
|
54723
|
+
}, /*#__PURE__*/React.createElement(Context$3.Provider, {
|
|
54683
54724
|
value: fieldContext
|
|
54684
54725
|
}, /*#__PURE__*/React.createElement(WrapperField, {
|
|
54685
54726
|
name: [],
|
|
@@ -54904,7 +54945,7 @@
|
|
|
54904
54945
|
return NameMap;
|
|
54905
54946
|
}();
|
|
54906
54947
|
|
|
54907
|
-
var _excluded$
|
|
54948
|
+
var _excluded$F = ["name", "errors"];
|
|
54908
54949
|
var FormStore = /*#__PURE__*/_createClass(function FormStore(forceRootUpdate) {
|
|
54909
54950
|
var _this = this;
|
|
54910
54951
|
|
|
@@ -55405,7 +55446,7 @@
|
|
|
55405
55446
|
fields.forEach(function (fieldData) {
|
|
55406
55447
|
var name = fieldData.name,
|
|
55407
55448
|
errors = fieldData.errors,
|
|
55408
|
-
data = _objectWithoutProperties$1(fieldData, _excluded$
|
|
55449
|
+
data = _objectWithoutProperties$1(fieldData, _excluded$F);
|
|
55409
55450
|
|
|
55410
55451
|
var namePath = getNamePath(name);
|
|
55411
55452
|
namePathList.push(namePath); // Value
|
|
@@ -55918,7 +55959,7 @@
|
|
|
55918
55959
|
}, children);
|
|
55919
55960
|
};
|
|
55920
55961
|
|
|
55921
|
-
var _excluded$
|
|
55962
|
+
var _excluded$G = ["name", "initialValues", "fields", "form", "preserve", "children", "component", "validateMessages", "validateTrigger", "onValuesChange", "onFieldsChange", "onFinish", "onFinishFailed"];
|
|
55922
55963
|
|
|
55923
55964
|
var Form = function Form(_ref, ref) {
|
|
55924
55965
|
var name = _ref.name,
|
|
@@ -55936,7 +55977,7 @@
|
|
|
55936
55977
|
_onFieldsChange = _ref.onFieldsChange,
|
|
55937
55978
|
_onFinish = _ref.onFinish,
|
|
55938
55979
|
onFinishFailed = _ref.onFinishFailed,
|
|
55939
|
-
restProps = _objectWithoutProperties$1(_ref, _excluded$
|
|
55980
|
+
restProps = _objectWithoutProperties$1(_ref, _excluded$G);
|
|
55940
55981
|
|
|
55941
55982
|
var formContext = React.useContext(FormContext); // We customize handle event since Context will makes all the consumer re-render:
|
|
55942
55983
|
// https://reactjs.org/docs/context.html#contextprovider
|
|
@@ -56028,7 +56069,7 @@
|
|
|
56028
56069
|
validateTrigger: validateTrigger
|
|
56029
56070
|
});
|
|
56030
56071
|
}, [formInstance, validateTrigger]);
|
|
56031
|
-
var wrapperNode = /*#__PURE__*/React.createElement(Context$
|
|
56072
|
+
var wrapperNode = /*#__PURE__*/React.createElement(Context$3.Provider, {
|
|
56032
56073
|
value: formContextValue
|
|
56033
56074
|
}, childrenNode);
|
|
56034
56075
|
|
|
@@ -56074,7 +56115,7 @@
|
|
|
56074
56115
|
}, [value]);
|
|
56075
56116
|
var valueStrRef = React.useRef(valueStr);
|
|
56076
56117
|
valueStrRef.current = valueStr;
|
|
56077
|
-
var fieldContext = React.useContext(Context$
|
|
56118
|
+
var fieldContext = React.useContext(Context$3);
|
|
56078
56119
|
var formInstance = form || fieldContext;
|
|
56079
56120
|
var isValidForm = formInstance && formInstance._init; // Warning if not exist form instance
|
|
56080
56121
|
|
|
@@ -56166,8 +56207,8 @@
|
|
|
56166
56207
|
|
|
56167
56208
|
var FieldContext = /*#__PURE__*/React__default['default'].createContext({});
|
|
56168
56209
|
|
|
56169
|
-
var _excluded$
|
|
56170
|
-
_excluded2$
|
|
56210
|
+
var _excluded$H = ["children", "Wrapper"],
|
|
56211
|
+
_excluded2$a = ["children", "Wrapper"];
|
|
56171
56212
|
var GridContext = /*#__PURE__*/React.createContext({
|
|
56172
56213
|
grid: false,
|
|
56173
56214
|
colProps: undefined,
|
|
@@ -56183,7 +56224,7 @@
|
|
|
56183
56224
|
var _ref2 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
56184
56225
|
children = _ref2.children,
|
|
56185
56226
|
Wrapper = _ref2.Wrapper,
|
|
56186
|
-
props = _objectWithoutProperties$1(_ref2, _excluded$
|
|
56227
|
+
props = _objectWithoutProperties$1(_ref2, _excluded$H);
|
|
56187
56228
|
|
|
56188
56229
|
if (!grid) {
|
|
56189
56230
|
return Wrapper ? jsxRuntime.jsx(Wrapper, {
|
|
@@ -56201,7 +56242,7 @@
|
|
|
56201
56242
|
var _ref3 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
56202
56243
|
children = _ref3.children,
|
|
56203
56244
|
Wrapper = _ref3.Wrapper,
|
|
56204
|
-
rest = _objectWithoutProperties$1(_ref3, _excluded2$
|
|
56245
|
+
rest = _objectWithoutProperties$1(_ref3, _excluded2$a);
|
|
56205
56246
|
|
|
56206
56247
|
var props = React.useMemo(function () {
|
|
56207
56248
|
var originProps = _objectSpread2(_objectSpread2({}, colProps), rest);
|
|
@@ -56259,8 +56300,8 @@
|
|
|
56259
56300
|
JSON.stringify([colProps, config === null || config === void 0 ? void 0 : config.colProps, config === null || config === void 0 ? void 0 : config.rowProps])]);
|
|
56260
56301
|
};
|
|
56261
56302
|
|
|
56262
|
-
var _excluded$
|
|
56263
|
-
_excluded2$
|
|
56303
|
+
var _excluded$I = ["valueType", "customLightMode", "lightFilterLabelFormatter", "valuePropName", "ignoreWidth", "defaultProps"],
|
|
56304
|
+
_excluded2$b = ["label", "tooltip", "placeholder", "width", "bordered", "messageVariables", "ignoreFormItem", "transform", "convertValue", "readonly", "allowClear", "colSize", "getFormItemProps", "getFieldProps", "filedConfig", "cacheForSwr", "proFieldProps"];
|
|
56264
56305
|
var WIDTH_SIZE_ENUM = {
|
|
56265
56306
|
// 适用于短数字,短文本或者选项
|
|
56266
56307
|
xs: 104,
|
|
@@ -56299,7 +56340,7 @@
|
|
|
56299
56340
|
valuePropName = _ref$valuePropName === void 0 ? 'value' : _ref$valuePropName,
|
|
56300
56341
|
ignoreWidth = _ref.ignoreWidth,
|
|
56301
56342
|
defaultProps = _ref.defaultProps,
|
|
56302
|
-
defaultFormItemProps = _objectWithoutProperties$1(_ref, _excluded$
|
|
56343
|
+
defaultFormItemProps = _objectWithoutProperties$1(_ref, _excluded$I);
|
|
56303
56344
|
|
|
56304
56345
|
var _defaultProps$props = _objectSpread2(_objectSpread2({}, defaultProps), props),
|
|
56305
56346
|
label = _defaultProps$props.label,
|
|
@@ -56319,7 +56360,7 @@
|
|
|
56319
56360
|
filedConfig = _defaultProps$props.filedConfig,
|
|
56320
56361
|
cacheForSwr = _defaultProps$props.cacheForSwr,
|
|
56321
56362
|
proFieldProps = _defaultProps$props.proFieldProps,
|
|
56322
|
-
rest = _objectWithoutProperties$1(_defaultProps$props, _excluded2$
|
|
56363
|
+
rest = _objectWithoutProperties$1(_defaultProps$props, _excluded2$b);
|
|
56323
56364
|
|
|
56324
56365
|
var valueType = tmpValueType || rest.valueType; // 有些 valueType 不需要宽度
|
|
56325
56366
|
|
|
@@ -56377,7 +56418,7 @@
|
|
|
56377
56418
|
noteOnce( // eslint-disable-next-line @typescript-eslint/dot-notation
|
|
56378
56419
|
!rest['defaultValue'], '请不要在 Form 中使用 defaultXXX。如果需要默认值请使用 initialValues 和 initialValue。');
|
|
56379
56420
|
|
|
56380
|
-
var _useContext = React.useContext(Context$
|
|
56421
|
+
var _useContext = React.useContext(Context$3),
|
|
56381
56422
|
prefixName = _useContext.prefixName;
|
|
56382
56423
|
|
|
56383
56424
|
var proFieldKey = React.useMemo(function () {
|
|
@@ -56505,7 +56546,7 @@
|
|
|
56505
56546
|
return DependencyWrapper;
|
|
56506
56547
|
}
|
|
56507
56548
|
|
|
56508
|
-
var _excluded$
|
|
56549
|
+
var _excluded$J = ["fieldProps", "children", "labelCol", "label", "autoFocus", "isDefaultDom", "render", "proFieldProps", "renderFormItem", "valueType", "initialValue", "onChange", "valueEnum", "params", "name", "dependenciesValues", "cacheForSwr", "valuePropName"];
|
|
56509
56550
|
|
|
56510
56551
|
var BaseProFormField = function BaseProFormField(props) {
|
|
56511
56552
|
var fieldProps = props.fieldProps,
|
|
@@ -56528,7 +56569,7 @@
|
|
|
56528
56569
|
cacheForSwr = _props$cacheForSwr === void 0 ? false : _props$cacheForSwr,
|
|
56529
56570
|
_props$valuePropName = props.valuePropName,
|
|
56530
56571
|
valuePropName = _props$valuePropName === void 0 ? 'value' : _props$valuePropName,
|
|
56531
|
-
restProps = _objectWithoutProperties$1(props, _excluded$
|
|
56572
|
+
restProps = _objectWithoutProperties$1(props, _excluded$J);
|
|
56532
56573
|
|
|
56533
56574
|
var propsParams = React.useMemo(function () {
|
|
56534
56575
|
// 使用dependencies时 dependenciesValues是有值的
|
|
@@ -56602,7 +56643,7 @@
|
|
|
56602
56643
|
return isDeepEqualReact(nextProps, prevProps, ['onChange', 'onBlur']);
|
|
56603
56644
|
}));
|
|
56604
56645
|
|
|
56605
|
-
var _excluded$
|
|
56646
|
+
var _excluded$K = ["creatorButtonProps", "deleteIconProps", "copyIconProps", "itemContainerRender", "itemRender", "alwaysShowItemLabel", "prefixCls", "creatorRecord", "action", "actionGuard", "children", "actionRender", "fields", "meta", "field", "index", "formInstance", "originName", "min", "max", "count"];
|
|
56606
56647
|
/** Antd 自带的toArray 不支持方法,所以需要自己搞一个 */
|
|
56607
56648
|
|
|
56608
56649
|
var listToArray = function listToArray(children) {
|
|
@@ -56641,7 +56682,7 @@
|
|
|
56641
56682
|
min = props.min,
|
|
56642
56683
|
max = props.max,
|
|
56643
56684
|
count = props.count,
|
|
56644
|
-
rest = _objectWithoutProperties$1(props, _excluded$
|
|
56685
|
+
rest = _objectWithoutProperties$1(props, _excluded$K);
|
|
56645
56686
|
|
|
56646
56687
|
var listContext = React.useContext(FormListContext);
|
|
56647
56688
|
var unmountedRef = React.useRef(false);
|
|
@@ -57041,7 +57082,7 @@
|
|
|
57041
57082
|
});
|
|
57042
57083
|
};
|
|
57043
57084
|
|
|
57044
|
-
var _excluded$
|
|
57085
|
+
var _excluded$L = ["actionRender", "creatorButtonProps", "label", "alwaysShowItemLabel", "tooltip", "creatorRecord", "itemRender", "rules", "itemContainerRender", "fieldExtraRender", "copyIconProps", "children", "deleteIconProps", "actionRef", "style", "prefixCls", "actionGuard", "min", "max", "colProps", "rowProps"];
|
|
57045
57086
|
var FormListContext = /*#__PURE__*/React__default['default'].createContext({});
|
|
57046
57087
|
|
|
57047
57088
|
function ProFormList(_ref) {
|
|
@@ -57074,7 +57115,7 @@
|
|
|
57074
57115
|
max = _ref.max,
|
|
57075
57116
|
colProps = _ref.colProps,
|
|
57076
57117
|
rowProps = _ref.rowProps,
|
|
57077
|
-
rest = _objectWithoutProperties$1(_ref, _excluded$
|
|
57118
|
+
rest = _objectWithoutProperties$1(_ref, _excluded$L);
|
|
57078
57119
|
|
|
57079
57120
|
var actionRefs = React.useRef();
|
|
57080
57121
|
var context = React.useContext(_ConfigProvider__default['default'].ConfigContext);
|
|
@@ -57166,13 +57207,13 @@
|
|
|
57166
57207
|
});
|
|
57167
57208
|
}
|
|
57168
57209
|
|
|
57169
|
-
var _excluded$
|
|
57210
|
+
var _excluded$M = ["name", "children", "ignoreFormListField"];
|
|
57170
57211
|
|
|
57171
57212
|
var ProFormDependency = function ProFormDependency(_ref) {
|
|
57172
57213
|
var names = _ref.name,
|
|
57173
57214
|
_children = _ref.children,
|
|
57174
57215
|
ignoreFormListField = _ref.ignoreFormListField,
|
|
57175
|
-
rest = _objectWithoutProperties$1(_ref, _excluded$
|
|
57216
|
+
rest = _objectWithoutProperties$1(_ref, _excluded$M);
|
|
57176
57217
|
|
|
57177
57218
|
var context = React.useContext(ProFormContext); // ProFromList 的 field,里面有name和key
|
|
57178
57219
|
|
|
@@ -57241,8 +57282,8 @@
|
|
|
57241
57282
|
}));
|
|
57242
57283
|
};
|
|
57243
57284
|
|
|
57244
|
-
var _excluded$
|
|
57245
|
-
_excluded2$
|
|
57285
|
+
var _excluded$N = ["children", "value", "valuePropName", "onChange", "fieldProps", "space", "type", "transform", "convertValue"],
|
|
57286
|
+
_excluded2$c = ["children", "space", "valuePropName"];
|
|
57246
57287
|
var FieldSetType = {
|
|
57247
57288
|
space: _Space__default['default'],
|
|
57248
57289
|
group: _Input__default['default'].Group
|
|
@@ -57269,7 +57310,7 @@
|
|
|
57269
57310
|
type = _ref$type === void 0 ? 'space' : _ref$type,
|
|
57270
57311
|
transform = _ref.transform,
|
|
57271
57312
|
convertValue = _ref.convertValue,
|
|
57272
|
-
rest = _objectWithoutProperties$1(_ref, _excluded$
|
|
57313
|
+
rest = _objectWithoutProperties$1(_ref, _excluded$N);
|
|
57273
57314
|
|
|
57274
57315
|
/**
|
|
57275
57316
|
* 使用方法的引用防止闭包
|
|
@@ -57352,7 +57393,7 @@
|
|
|
57352
57393
|
var children = _ref3.children,
|
|
57353
57394
|
space = _ref3.space,
|
|
57354
57395
|
valuePropName = _ref3.valuePropName,
|
|
57355
|
-
rest = _objectWithoutProperties$1(_ref3, _excluded2$
|
|
57396
|
+
rest = _objectWithoutProperties$1(_ref3, _excluded2$c);
|
|
57356
57397
|
|
|
57357
57398
|
React.useImperativeHandle(ref, function () {
|
|
57358
57399
|
return {};
|
|
@@ -57369,9 +57410,9 @@
|
|
|
57369
57410
|
});
|
|
57370
57411
|
var ProFormFieldSet = createField(BaseProFormFieldSet);
|
|
57371
57412
|
|
|
57372
|
-
var _excluded$
|
|
57373
|
-
_excluded2$
|
|
57374
|
-
_excluded3$
|
|
57413
|
+
var _excluded$O = ["children", "onChange", "onBlur", "ignoreFormItem", "valuePropName"],
|
|
57414
|
+
_excluded2$d = ["children", "addonAfter", "addonBefore", "valuePropName", "convertValue"],
|
|
57415
|
+
_excluded3$3 = ["valueType", "transform", "dataFormat", "ignoreFormItem", "lightProps", "children"];
|
|
57375
57416
|
var FormItemProvide = /*#__PURE__*/React__default['default'].createContext({});
|
|
57376
57417
|
/**
|
|
57377
57418
|
* 把value扔给 fieldProps,方便给自定义用
|
|
@@ -57387,7 +57428,7 @@
|
|
|
57387
57428
|
ignoreFormItem = formFieldProps.ignoreFormItem,
|
|
57388
57429
|
_formFieldProps$value = formFieldProps.valuePropName,
|
|
57389
57430
|
valuePropName = _formFieldProps$value === void 0 ? 'value' : _formFieldProps$value,
|
|
57390
|
-
restProps = _objectWithoutProperties$1(formFieldProps, _excluded$
|
|
57431
|
+
restProps = _objectWithoutProperties$1(formFieldProps, _excluded$O);
|
|
57391
57432
|
|
|
57392
57433
|
var onChangeMemo = React.useCallback(function () {
|
|
57393
57434
|
var _filedChildren$type, _filedChildren$props, _filedChildren$props$, _filedChildren$props2, _filedChildren$props3, _filedChildren$props4;
|
|
@@ -57469,7 +57510,7 @@
|
|
|
57469
57510
|
addonBefore = _ref.addonBefore,
|
|
57470
57511
|
valuePropName = _ref.valuePropName,
|
|
57471
57512
|
convertValue = _ref.convertValue,
|
|
57472
|
-
props = _objectWithoutProperties$1(_ref, _excluded2$
|
|
57513
|
+
props = _objectWithoutProperties$1(_ref, _excluded2$d);
|
|
57473
57514
|
|
|
57474
57515
|
var formDom = React.useMemo(function () {
|
|
57475
57516
|
var getValuePropsFunc = function getValuePropsFunc(value) {
|
|
@@ -57546,7 +57587,7 @@
|
|
|
57546
57587
|
_props$lightProps = props.lightProps,
|
|
57547
57588
|
lightProps = _props$lightProps === void 0 ? {} : _props$lightProps,
|
|
57548
57589
|
unusedChildren = props.children,
|
|
57549
|
-
rest = _objectWithoutProperties$1(props, _excluded3$
|
|
57590
|
+
rest = _objectWithoutProperties$1(props, _excluded3$3);
|
|
57550
57591
|
|
|
57551
57592
|
var formListField = React.useContext(FormListContext); // ProFromList 的 filed,里面有name和key
|
|
57552
57593
|
|
|
@@ -59737,7 +59778,7 @@
|
|
|
59737
59778
|
module.exports = merge;
|
|
59738
59779
|
});
|
|
59739
59780
|
|
|
59740
|
-
var _excluded$
|
|
59781
|
+
var _excluded$P = ["children", "trigger", "onVisibleChange", "drawerProps", "onFinish", "submitTimeout", "title", "width", "visible"];
|
|
59741
59782
|
|
|
59742
59783
|
function DrawerForm(_ref) {
|
|
59743
59784
|
var _context$locale3, _context$locale3$Moda, _context$locale4, _context$locale4$Moda;
|
|
@@ -59751,7 +59792,7 @@
|
|
|
59751
59792
|
title = _ref.title,
|
|
59752
59793
|
width = _ref.width,
|
|
59753
59794
|
propVisible = _ref.visible,
|
|
59754
|
-
rest = _objectWithoutProperties$1(_ref, _excluded$
|
|
59795
|
+
rest = _objectWithoutProperties$1(_ref, _excluded$P);
|
|
59755
59796
|
|
|
59756
59797
|
noteOnce( // eslint-disable-next-line @typescript-eslint/dot-notation
|
|
59757
59798
|
!rest['footer'] || !(drawerProps === null || drawerProps === void 0 ? void 0 : drawerProps.footer), 'DrawerForm 是一个 ProForm 的特殊布局,如果想自定义按钮,请使用 submit.render 自定义。');
|
|
@@ -59969,7 +60010,7 @@
|
|
|
59969
60010
|
});
|
|
59970
60011
|
}
|
|
59971
60012
|
|
|
59972
|
-
var _excluded$
|
|
60013
|
+
var _excluded$Q = ["size", "collapse", "collapseLabel", "initialValues", "onValuesChange", "form", "placement", "formRef", "bordered", "ignoreRules", "footerRender"];
|
|
59973
60014
|
/**
|
|
59974
60015
|
* 单行的查询表单,一般用于配合 table 或者 list使用 有时也会用于 card 的额外区域
|
|
59975
60016
|
*
|
|
@@ -60139,7 +60180,7 @@
|
|
|
60139
60180
|
bordered = props.bordered,
|
|
60140
60181
|
ignoreRules = props.ignoreRules,
|
|
60141
60182
|
footerRender = props.footerRender,
|
|
60142
|
-
reset = _objectWithoutProperties$1(props, _excluded$
|
|
60183
|
+
reset = _objectWithoutProperties$1(props, _excluded$Q);
|
|
60143
60184
|
|
|
60144
60185
|
var _useContext = React.useContext(_ConfigProvider__default['default'].ConfigContext),
|
|
60145
60186
|
getPrefixCls = _useContext.getPrefixCls;
|
|
@@ -60212,7 +60253,7 @@
|
|
|
60212
60253
|
}));
|
|
60213
60254
|
}
|
|
60214
60255
|
|
|
60215
|
-
var _excluded$
|
|
60256
|
+
var _excluded$R = ["children", "trigger", "onVisibleChange", "modalProps", "onFinish", "submitTimeout", "title", "width", "visible"];
|
|
60216
60257
|
|
|
60217
60258
|
function ModalForm(_ref) {
|
|
60218
60259
|
var _context$locale3, _context$locale3$Moda, _context$locale4, _context$locale4$Moda;
|
|
@@ -60226,7 +60267,7 @@
|
|
|
60226
60267
|
title = _ref.title,
|
|
60227
60268
|
width = _ref.width,
|
|
60228
60269
|
propVisible = _ref.visible,
|
|
60229
|
-
rest = _objectWithoutProperties$1(_ref, _excluded$
|
|
60270
|
+
rest = _objectWithoutProperties$1(_ref, _excluded$R);
|
|
60230
60271
|
|
|
60231
60272
|
noteOnce( // eslint-disable-next-line @typescript-eslint/dot-notation
|
|
60232
60273
|
!rest['footer'] || !(modalProps === null || modalProps === void 0 ? void 0 : modalProps.footer), 'ModalForm 是一个 ProForm 的特殊布局,如果想自定义按钮,请使用 submit.render 自定义。');
|
|
@@ -61699,7 +61740,7 @@
|
|
|
61699
61740
|
});
|
|
61700
61741
|
};
|
|
61701
61742
|
|
|
61702
|
-
var _excluded$
|
|
61743
|
+
var _excluded$S = ["collapsed", "layout", "defaultCollapsed", "defaultColsNumber", "span", "searchGutter", "searchText", "resetText", "optionRender", "collapseRender", "onReset", "onCollapse", "labelWidth", "style", "split", "preserve", "ignoreRules", "showHiddenNum"];
|
|
61703
61744
|
|
|
61704
61745
|
var _document, _document$body;
|
|
61705
61746
|
var CONFIG_SPAN_BREAKPOINTS = {
|
|
@@ -61970,7 +62011,7 @@
|
|
|
61970
62011
|
ignoreRules = props.ignoreRules,
|
|
61971
62012
|
_props$showHiddenNum = props.showHiddenNum,
|
|
61972
62013
|
showHiddenNum = _props$showHiddenNum === void 0 ? false : _props$showHiddenNum,
|
|
61973
|
-
rest = _objectWithoutProperties$1(props, _excluded$
|
|
62014
|
+
rest = _objectWithoutProperties$1(props, _excluded$S);
|
|
61974
62015
|
|
|
61975
62016
|
var context = React.useContext(_ConfigProvider__default['default'].ConfigContext);
|
|
61976
62017
|
var baseClassName = context.getPrefixCls('pro-form-query-filter');
|
|
@@ -62064,7 +62105,7 @@
|
|
|
62064
62105
|
}, "resize-observer");
|
|
62065
62106
|
}
|
|
62066
62107
|
|
|
62067
|
-
var _excluded$
|
|
62108
|
+
var _excluded$T = ["onFinish", "step", "formRef", "title", "stepProps"];
|
|
62068
62109
|
|
|
62069
62110
|
function StepForm(props) {
|
|
62070
62111
|
var formRef = React.useRef();
|
|
@@ -62075,7 +62116,7 @@
|
|
|
62075
62116
|
propFormRef = props.formRef,
|
|
62076
62117
|
title = props.title,
|
|
62077
62118
|
stepProps = props.stepProps,
|
|
62078
|
-
restProps = _objectWithoutProperties$1(props, _excluded$
|
|
62119
|
+
restProps = _objectWithoutProperties$1(props, _excluded$T); // eslint-disable-next-line @typescript-eslint/dot-notation
|
|
62079
62120
|
|
|
62080
62121
|
|
|
62081
62122
|
noteOnce(!restProps['submitter'], 'StepForm 不包含提交按钮,请在 StepsForm 上');
|
|
@@ -62153,7 +62194,7 @@
|
|
|
62153
62194
|
}, restProps));
|
|
62154
62195
|
}
|
|
62155
62196
|
|
|
62156
|
-
var _excluded$
|
|
62197
|
+
var _excluded$U = ["current", "onCurrentChange", "submitter", "stepsFormRender", "stepsRender", "stepFormRender", "stepsProps", "onFinish", "formProps", "containerStyle", "formRef", "formMapRef"];
|
|
62157
62198
|
var StepsFormProvide = /*#__PURE__*/React__default['default'].createContext(undefined);
|
|
62158
62199
|
var StepsLayoutStrategy = {
|
|
62159
62200
|
horizontal: function horizontal(_ref) {
|
|
@@ -62239,7 +62280,7 @@
|
|
|
62239
62280
|
containerStyle = props.containerStyle,
|
|
62240
62281
|
formRef = props.formRef,
|
|
62241
62282
|
propsFormMapRef = props.formMapRef,
|
|
62242
|
-
rest = _objectWithoutProperties$1(props, _excluded$
|
|
62283
|
+
rest = _objectWithoutProperties$1(props, _excluded$U);
|
|
62243
62284
|
|
|
62244
62285
|
var formDataRef = React.useRef(new Map());
|
|
62245
62286
|
var formMapRef = React.useRef(new Map());
|
|
@@ -62571,14 +62612,14 @@
|
|
|
62571
62612
|
});
|
|
62572
62613
|
};
|
|
62573
62614
|
|
|
62574
|
-
var _excluded$
|
|
62615
|
+
var _excluded$V = ["steps", "columns", "forceUpdate", "grid"];
|
|
62575
62616
|
|
|
62576
62617
|
var StepsForm$1 = function StepsForm(_ref) {
|
|
62577
62618
|
var steps = _ref.steps,
|
|
62578
62619
|
columns = _ref.columns,
|
|
62579
62620
|
forceUpdate = _ref.forceUpdate,
|
|
62580
62621
|
grid = _ref.grid,
|
|
62581
|
-
props = _objectWithoutProperties$1(_ref, _excluded$
|
|
62622
|
+
props = _objectWithoutProperties$1(_ref, _excluded$V);
|
|
62582
62623
|
|
|
62583
62624
|
var propsRef = useLatest(props);
|
|
62584
62625
|
/**
|
|
@@ -62791,7 +62832,7 @@
|
|
|
62791
62832
|
return field(item, helpers);
|
|
62792
62833
|
};
|
|
62793
62834
|
|
|
62794
|
-
var _excluded$
|
|
62835
|
+
var _excluded$W = ["columns", "layoutType", "type", "action", "shouldUpdate"];
|
|
62795
62836
|
var FormLayoutType = {
|
|
62796
62837
|
DrawerForm: DrawerForm,
|
|
62797
62838
|
QueryFilter: QueryFilter,
|
|
@@ -62816,7 +62857,7 @@
|
|
|
62816
62857
|
action = props.action,
|
|
62817
62858
|
_props$shouldUpdate = props.shouldUpdate,
|
|
62818
62859
|
shouldUpdate = _props$shouldUpdate === void 0 ? true : _props$shouldUpdate,
|
|
62819
|
-
restProps = _objectWithoutProperties$1(props, _excluded$
|
|
62860
|
+
restProps = _objectWithoutProperties$1(props, _excluded$W);
|
|
62820
62861
|
|
|
62821
62862
|
var FormRenderComponents = FormLayoutType[layoutType] || ProForm;
|
|
62822
62863
|
|
|
@@ -63043,8 +63084,8 @@
|
|
|
63043
63084
|
return renderDom;
|
|
63044
63085
|
};
|
|
63045
63086
|
|
|
63046
|
-
var _excluded$
|
|
63047
|
-
_excluded2$
|
|
63087
|
+
var _excluded$X = ["children", "contentRender", "submitter", "fieldProps", "formItemProps", "groupProps", "dateFormatter", "formRef", "onInit", "form", "formComponentType", "extraUrlParams", "syncToUrl", "syncToUrlAsImportant", "syncToInitialValues", "onReset", "omitNil", "isKeyPressSubmit", "autoFocusFirstInput", "grid", "rowProps", "colProps"],
|
|
63088
|
+
_excluded2$e = ["request", "params", "initialValues", "formKey"];
|
|
63048
63089
|
|
|
63049
63090
|
var genParams = function genParams(syncUrl, params, type) {
|
|
63050
63091
|
if (syncUrl === true) {
|
|
@@ -63098,7 +63139,7 @@
|
|
|
63098
63139
|
grid = props.grid,
|
|
63099
63140
|
rowProps = props.rowProps,
|
|
63100
63141
|
colProps = props.colProps,
|
|
63101
|
-
rest = _objectWithoutProperties$1(props, _excluded$
|
|
63142
|
+
rest = _objectWithoutProperties$1(props, _excluded$X);
|
|
63102
63143
|
|
|
63103
63144
|
var sizeContextValue = React.useContext(_ConfigProvider__default['default'].SizeContext);
|
|
63104
63145
|
|
|
@@ -63524,7 +63565,7 @@
|
|
|
63524
63565
|
initialValues = props.initialValues,
|
|
63525
63566
|
_props$formKey = props.formKey,
|
|
63526
63567
|
formKey = _props$formKey === void 0 ? requestFormCacheId : _props$formKey,
|
|
63527
|
-
rest = _objectWithoutProperties$1(props, _excluded2$
|
|
63568
|
+
rest = _objectWithoutProperties$1(props, _excluded2$e);
|
|
63528
63569
|
|
|
63529
63570
|
React.useEffect(function () {
|
|
63530
63571
|
requestFormCacheId += 0;
|
|
@@ -63558,7 +63599,7 @@
|
|
|
63558
63599
|
});
|
|
63559
63600
|
}
|
|
63560
63601
|
|
|
63561
|
-
var _excluded$
|
|
63602
|
+
var _excluded$Y = ["label", "size", "disabled", "onChange", "className", "style", "children", "valuePropName", "placeholder", "labelFormatter", "bordered", "footerRender", "allowClear", "otherFieldProps", "valueType", "placement"];
|
|
63562
63603
|
|
|
63563
63604
|
var LightWrapper = function LightWrapper(props) {
|
|
63564
63605
|
var _objectSpread2$1;
|
|
@@ -63579,7 +63620,7 @@
|
|
|
63579
63620
|
otherFieldProps = props.otherFieldProps,
|
|
63580
63621
|
valueType = props.valueType,
|
|
63581
63622
|
placement = props.placement,
|
|
63582
|
-
rest = _objectWithoutProperties$1(props, _excluded$
|
|
63623
|
+
rest = _objectWithoutProperties$1(props, _excluded$Y);
|
|
63583
63624
|
|
|
63584
63625
|
var _useContext = React.useContext(_ConfigProvider__default['default'].ConfigContext),
|
|
63585
63626
|
getPrefixCls = _useContext.getPrefixCls;
|
|
@@ -64616,7 +64657,7 @@
|
|
|
64616
64657
|
|
|
64617
64658
|
var Container = createContainer(useContainer);
|
|
64618
64659
|
|
|
64619
|
-
var _excluded$
|
|
64660
|
+
var _excluded$Z = ["key", "dataIndex", "children"];
|
|
64620
64661
|
|
|
64621
64662
|
var ToolTipIcon = function ToolTipIcon(_ref) {
|
|
64622
64663
|
var title = _ref.title,
|
|
@@ -64725,7 +64766,7 @@
|
|
|
64725
64766
|
var key = _ref4.key,
|
|
64726
64767
|
dataIndex = _ref4.dataIndex,
|
|
64727
64768
|
children = _ref4.children,
|
|
64728
|
-
rest = _objectWithoutProperties$1(_ref4, _excluded$
|
|
64769
|
+
rest = _objectWithoutProperties$1(_ref4, _excluded$Z);
|
|
64729
64770
|
|
|
64730
64771
|
var columnKey = genColumnKey(key, rest.index);
|
|
64731
64772
|
var config = columnsMap[columnKey || 'null'] || {
|
|
@@ -65187,7 +65228,7 @@
|
|
|
65187
65228
|
return colSpan;
|
|
65188
65229
|
};
|
|
65189
65230
|
|
|
65190
|
-
var _excluded$
|
|
65231
|
+
var _excluded$_ = ["label", "key"];
|
|
65191
65232
|
|
|
65192
65233
|
var HeaderMenu = function HeaderMenu(props) {
|
|
65193
65234
|
var _props$items = props.items,
|
|
@@ -65237,7 +65278,7 @@
|
|
|
65237
65278
|
children: items.map(function (_ref, index) {
|
|
65238
65279
|
var label = _ref.label,
|
|
65239
65280
|
key = _ref.key,
|
|
65240
|
-
rest = _objectWithoutProperties$1(_ref, _excluded$
|
|
65281
|
+
rest = _objectWithoutProperties$1(_ref, _excluded$_);
|
|
65241
65282
|
|
|
65242
65283
|
return jsxRuntime.jsx(_Tabs__default['default'].TabPane, _objectSpread2({
|
|
65243
65284
|
tab: label
|
|
@@ -65588,7 +65629,7 @@
|
|
|
65588
65629
|
|
|
65589
65630
|
var FullScreenIcon$1 = /*#__PURE__*/React__default['default'].memo(FullScreenIcon);
|
|
65590
65631
|
|
|
65591
|
-
var _excluded
|
|
65632
|
+
var _excluded$$ = ["headerTitle", "tooltip", "toolBarRender", "action", "options", "selectedRowKeys", "selectedRows", "toolbar", "onSearch", "columns"];
|
|
65592
65633
|
|
|
65593
65634
|
function getButtonText(_ref) {
|
|
65594
65635
|
var intl = _ref.intl;
|
|
@@ -65680,7 +65721,7 @@
|
|
|
65680
65721
|
toolbar = _ref2.toolbar,
|
|
65681
65722
|
onSearch = _ref2.onSearch,
|
|
65682
65723
|
columns = _ref2.columns,
|
|
65683
|
-
rest = _objectWithoutProperties$1(_ref2, _excluded
|
|
65724
|
+
rest = _objectWithoutProperties$1(_ref2, _excluded$$);
|
|
65684
65725
|
|
|
65685
65726
|
var counter = Container.useContainer();
|
|
65686
65727
|
var intl = useIntl();
|
|
@@ -65882,7 +65923,7 @@
|
|
|
65882
65923
|
return _createClass(ToolbarRender);
|
|
65883
65924
|
}(React__default['default'].Component);
|
|
65884
65925
|
|
|
65885
|
-
var _excluded
|
|
65926
|
+
var _excluded$10 = ["data", "success", "total"];
|
|
65886
65927
|
/**
|
|
65887
65928
|
* 组合用户的配置和默认值
|
|
65888
65929
|
*
|
|
@@ -66057,7 +66098,7 @@
|
|
|
66057
66098
|
success = _ref6.success;
|
|
66058
66099
|
_ref6$total = _ref6.total;
|
|
66059
66100
|
total = _ref6$total === void 0 ? 0 : _ref6$total;
|
|
66060
|
-
rest = _objectWithoutProperties$1(_ref6, _excluded
|
|
66101
|
+
rest = _objectWithoutProperties$1(_ref6, _excluded$10);
|
|
66061
66102
|
|
|
66062
66103
|
if (!(success === false)) {
|
|
66063
66104
|
_context.next = 24;
|
|
@@ -66335,7 +66376,7 @@
|
|
|
66335
66376
|
};
|
|
66336
66377
|
};
|
|
66337
66378
|
|
|
66338
|
-
var _excluded$
|
|
66379
|
+
var _excluded$11 = ["children"];
|
|
66339
66380
|
var SHOW_EMPTY_TEXT_LIST = ['', null, undefined];
|
|
66340
66381
|
/**
|
|
66341
66382
|
* 拼接用于编辑的 key
|
|
@@ -66398,7 +66439,7 @@
|
|
|
66398
66439
|
}, [columnProps, editableForm, index, rowName]);
|
|
66399
66440
|
var InlineItem = React.useCallback(function (_ref3) {
|
|
66400
66441
|
var children = _ref3.children,
|
|
66401
|
-
restProps = _objectWithoutProperties$1(_ref3, _excluded$
|
|
66442
|
+
restProps = _objectWithoutProperties$1(_ref3, _excluded$11);
|
|
66402
66443
|
|
|
66403
66444
|
return jsxRuntime.jsx(InlineErrorFormItem$1, _objectSpread2(_objectSpread2({
|
|
66404
66445
|
popoverProps: {
|
|
@@ -66540,8 +66581,8 @@
|
|
|
66540
66581
|
}), config.recordKey);
|
|
66541
66582
|
}
|
|
66542
66583
|
|
|
66543
|
-
var _excluded$
|
|
66544
|
-
_excluded2$
|
|
66584
|
+
var _excluded$12 = ["children"],
|
|
66585
|
+
_excluded2$f = ["children"];
|
|
66545
66586
|
/**
|
|
66546
66587
|
* 增加了 icon 的功能 render title
|
|
66547
66588
|
*
|
|
@@ -66605,10 +66646,10 @@
|
|
|
66605
66646
|
value: function shouldComponentUpdate(nextProps) {
|
|
66606
66647
|
var _this$props = this.props,
|
|
66607
66648
|
children = _this$props.children,
|
|
66608
|
-
restProps = _objectWithoutProperties$1(_this$props, _excluded$
|
|
66649
|
+
restProps = _objectWithoutProperties$1(_this$props, _excluded$12);
|
|
66609
66650
|
|
|
66610
66651
|
var nextChildren = nextProps.children,
|
|
66611
|
-
restNextProps = _objectWithoutProperties$1(nextProps, _excluded2$
|
|
66652
|
+
restNextProps = _objectWithoutProperties$1(nextProps, _excluded2$f);
|
|
66612
66653
|
|
|
66613
66654
|
return !isDeepEqualReact(restProps, restNextProps);
|
|
66614
66655
|
}
|
|
@@ -66849,8 +66890,8 @@
|
|
|
66849
66890
|
});
|
|
66850
66891
|
}
|
|
66851
66892
|
|
|
66852
|
-
var _excluded$
|
|
66853
|
-
_excluded2$
|
|
66893
|
+
var _excluded$13 = ["rowKey", "tableClassName", "action", "tableColumn", "type", "pagination", "rowSelection", "size", "defaultSize", "tableStyle", "toolbarDom", "searchNode", "style", "cardProps", "alertDom", "name", "onSortChange", "onFilterChange", "options", "isLightFilter", "className", "cardBordered", "editableUtils", "getRowKey"],
|
|
66894
|
+
_excluded2$g = ["cardBordered", "request", "className", "params", "defaultData", "headerTitle", "postData", "ghost", "pagination", "actionRef", "columns", "toolBarRender", "onLoad", "onRequestError", "style", "cardProps", "tableStyle", "tableClassName", "columnsStateMap", "onColumnsStateChange", "options", "search", "name", "onLoadingChange", "rowSelection", "beforeSearchSubmit", "tableAlertRender", "defaultClassName", "formRef", "type", "columnEmptyText", "toolbar", "rowKey", "manualRequest", "polling", "tooltip", "revalidateOnFocus"];
|
|
66854
66895
|
|
|
66855
66896
|
function TableRender(props) {
|
|
66856
66897
|
var rowKey = props.rowKey,
|
|
@@ -66877,7 +66918,7 @@
|
|
|
66877
66918
|
cardBordered = props.cardBordered,
|
|
66878
66919
|
editableUtils = props.editableUtils,
|
|
66879
66920
|
getRowKey = props.getRowKey,
|
|
66880
|
-
rest = _objectWithoutProperties$1(props, _excluded$
|
|
66921
|
+
rest = _objectWithoutProperties$1(props, _excluded$13);
|
|
66881
66922
|
|
|
66882
66923
|
var counter = Container.useContainer();
|
|
66883
66924
|
/** 需要遍历一下,不然不支持嵌套表格 */
|
|
@@ -67155,7 +67196,7 @@
|
|
|
67155
67196
|
tooltip = props.tooltip,
|
|
67156
67197
|
_props$revalidateOnFo = props.revalidateOnFocus,
|
|
67157
67198
|
revalidateOnFocus = _props$revalidateOnFo === void 0 ? false : _props$revalidateOnFo,
|
|
67158
|
-
rest = _objectWithoutProperties$1(props, _excluded2$
|
|
67199
|
+
rest = _objectWithoutProperties$1(props, _excluded2$g);
|
|
67159
67200
|
|
|
67160
67201
|
var className = classnames(defaultClassName, propsClassName);
|
|
67161
67202
|
/** 通用的来操作子节点的工具类 */
|
|
@@ -68138,7 +68179,7 @@
|
|
|
68138
68179
|
style: {}
|
|
68139
68180
|
};
|
|
68140
68181
|
|
|
68141
|
-
var Context$
|
|
68182
|
+
var Context$4 = /*#__PURE__*/React.createContext();
|
|
68142
68183
|
|
|
68143
68184
|
function toVal(mix) {
|
|
68144
68185
|
var k, y, str='';
|
|
@@ -70532,9 +70573,9 @@
|
|
|
70532
70573
|
var Resizable = Resizable_1.default;
|
|
70533
70574
|
var ResizableBox = ResizableBox_1.default;
|
|
70534
70575
|
|
|
70535
|
-
var _excluded$
|
|
70536
|
-
_excluded2$
|
|
70537
|
-
_excluded3$
|
|
70576
|
+
var _excluded$14 = ["width", "onResize", "children"],
|
|
70577
|
+
_excluded2$h = ["children"],
|
|
70578
|
+
_excluded3$4 = ["children", "style"],
|
|
70538
70579
|
_excluded4$2 = ["children"],
|
|
70539
70580
|
_excluded5$1 = ["style", "children"],
|
|
70540
70581
|
_excluded6$1 = ["width"];
|
|
@@ -70624,7 +70665,7 @@
|
|
|
70624
70665
|
useKeys = _useState2[0],
|
|
70625
70666
|
setKeys = _useState2[1];
|
|
70626
70667
|
|
|
70627
|
-
var _useContext = React.useContext(Context$
|
|
70668
|
+
var _useContext = React.useContext(Context$4),
|
|
70628
70669
|
width = _useContext.width;
|
|
70629
70670
|
|
|
70630
70671
|
var changeKeys = function changeKeys() {
|
|
@@ -70648,7 +70689,7 @@
|
|
|
70648
70689
|
var width = props.width,
|
|
70649
70690
|
onResize = props.onResize,
|
|
70650
70691
|
children = props.children,
|
|
70651
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
70692
|
+
restProps = _objectWithoutProperties(props, _excluded$14);
|
|
70652
70693
|
|
|
70653
70694
|
var _useState3 = React.useState(width || 0),
|
|
70654
70695
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
@@ -70700,7 +70741,7 @@
|
|
|
70700
70741
|
|
|
70701
70742
|
var VCell = function VCell(props) {
|
|
70702
70743
|
var children = props.children,
|
|
70703
|
-
restProps = _objectWithoutProperties(props, _excluded2$
|
|
70744
|
+
restProps = _objectWithoutProperties(props, _excluded2$h);
|
|
70704
70745
|
|
|
70705
70746
|
return /*#__PURE__*/React__default['default'].createElement("td", restProps, children);
|
|
70706
70747
|
};
|
|
@@ -70714,7 +70755,7 @@
|
|
|
70714
70755
|
|
|
70715
70756
|
var children = props.children,
|
|
70716
70757
|
style = props.style,
|
|
70717
|
-
restProps = _objectWithoutProperties(props, _excluded3$
|
|
70758
|
+
restProps = _objectWithoutProperties(props, _excluded3$4);
|
|
70718
70759
|
|
|
70719
70760
|
var trRef = React.useRef(null);
|
|
70720
70761
|
React.useEffect(function () {
|
|
@@ -71110,7 +71151,7 @@
|
|
|
71110
71151
|
editConfig: editConfig
|
|
71111
71152
|
};
|
|
71112
71153
|
|
|
71113
|
-
var _excluded$
|
|
71154
|
+
var _excluded$15 = ["dataSource", "autoSize", "columns", "rowClick", "onDoubleClick", "checkConfig", "summary", "pagination", "hiddenPage", "loading", "virtual", "customCheck"];
|
|
71114
71155
|
var Summary = ProviderWarp.Summary;
|
|
71115
71156
|
var ResetTable = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
71116
71157
|
var dataSource = props.dataSource,
|
|
@@ -71126,7 +71167,7 @@
|
|
|
71126
71167
|
_props$virtual = props.virtual,
|
|
71127
71168
|
virtual = _props$virtual === void 0 ? true : _props$virtual,
|
|
71128
71169
|
customCheck = props.customCheck,
|
|
71129
|
-
resetProps = _objectWithoutProperties(props, _excluded$
|
|
71170
|
+
resetProps = _objectWithoutProperties(props, _excluded$15);
|
|
71130
71171
|
|
|
71131
71172
|
var _resetProps$rowKey = resetProps.rowKey,
|
|
71132
71173
|
rowKey = _resetProps$rowKey === void 0 ? 'id' : _resetProps$rowKey;
|
|
@@ -71350,7 +71391,7 @@
|
|
|
71350
71391
|
selectedRows: []
|
|
71351
71392
|
});
|
|
71352
71393
|
}, [loading]);
|
|
71353
|
-
return /*#__PURE__*/React__default['default'].createElement(Context$
|
|
71394
|
+
return /*#__PURE__*/React__default['default'].createElement(Context$4.Provider, {
|
|
71354
71395
|
value: {
|
|
71355
71396
|
width: autoSize.width,
|
|
71356
71397
|
countW: lodash.sumBy(useColumns, 'width') + 36
|
|
@@ -71408,7 +71449,7 @@
|
|
|
71408
71449
|
}, throttleSize));
|
|
71409
71450
|
});
|
|
71410
71451
|
|
|
71411
|
-
var Context$
|
|
71452
|
+
var Context$5 = /*#__PURE__*/React.createContext();
|
|
71412
71453
|
|
|
71413
71454
|
function _inheritsLoose$1(subClass, superClass) {
|
|
71414
71455
|
subClass.prototype = Object.create(superClass.prototype);
|
|
@@ -72519,7 +72560,7 @@
|
|
|
72519
72560
|
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, icon());
|
|
72520
72561
|
};
|
|
72521
72562
|
|
|
72522
|
-
var _excluded$
|
|
72563
|
+
var _excluded$16 = ["desc"];
|
|
72523
72564
|
var Paragraph = _Typography__default['default'].Paragraph;
|
|
72524
72565
|
|
|
72525
72566
|
var Access = function Access(props) {
|
|
@@ -72529,7 +72570,7 @@
|
|
|
72529
72570
|
style = props.style,
|
|
72530
72571
|
className = props.className;
|
|
72531
72572
|
|
|
72532
|
-
var _useContext = React.useContext(Context$
|
|
72573
|
+
var _useContext = React.useContext(Context$5),
|
|
72533
72574
|
dispatch = _useContext.dispatch,
|
|
72534
72575
|
defaultValue = _useContext.defaultValue,
|
|
72535
72576
|
_useContext$rowKey = _useContext.rowKey,
|
|
@@ -72549,7 +72590,7 @@
|
|
|
72549
72590
|
|
|
72550
72591
|
var defaultConfig = React.useMemo(function () {
|
|
72551
72592
|
var desc = config.desc,
|
|
72552
|
-
resetConfig = _objectWithoutProperties(config, _excluded$
|
|
72593
|
+
resetConfig = _objectWithoutProperties(config, _excluded$16);
|
|
72553
72594
|
|
|
72554
72595
|
return _objectSpread({
|
|
72555
72596
|
title: 'title',
|
|
@@ -72712,7 +72753,7 @@
|
|
|
72712
72753
|
style = props.style,
|
|
72713
72754
|
className = props.className;
|
|
72714
72755
|
|
|
72715
|
-
var _useContext = React.useContext(Context$
|
|
72756
|
+
var _useContext = React.useContext(Context$5),
|
|
72716
72757
|
dispatch = _useContext.dispatch,
|
|
72717
72758
|
defaultValue = _useContext.defaultValue,
|
|
72718
72759
|
_useContext$rowKey = _useContext.rowKey,
|
|
@@ -72814,7 +72855,7 @@
|
|
|
72814
72855
|
var widthCount = props.width,
|
|
72815
72856
|
heightCount = props.height;
|
|
72816
72857
|
|
|
72817
|
-
var _useContext = React.useContext(Context$
|
|
72858
|
+
var _useContext = React.useContext(Context$5),
|
|
72818
72859
|
data = _useContext.data,
|
|
72819
72860
|
_useContext$heightCel = _useContext.heightCell,
|
|
72820
72861
|
heightCell = _useContext$heightCel === void 0 ? 375 : _useContext$heightCel,
|
|
@@ -72890,7 +72931,7 @@
|
|
|
72890
72931
|
};
|
|
72891
72932
|
|
|
72892
72933
|
var Footer = function Footer() {
|
|
72893
|
-
var _useContext = React.useContext(Context$
|
|
72934
|
+
var _useContext = React.useContext(Context$5),
|
|
72894
72935
|
dispatch = _useContext.dispatch,
|
|
72895
72936
|
data = _useContext.data,
|
|
72896
72937
|
onChange = _useContext.onChange,
|
|
@@ -72925,7 +72966,7 @@
|
|
|
72925
72966
|
}, config));
|
|
72926
72967
|
};
|
|
72927
72968
|
|
|
72928
|
-
var _excluded$
|
|
72969
|
+
var _excluded$17 = ["style", "defaultPage"];
|
|
72929
72970
|
var initialState$3 = {
|
|
72930
72971
|
// 选中的数据
|
|
72931
72972
|
checkList: [],
|
|
@@ -72966,7 +73007,7 @@
|
|
|
72966
73007
|
var ImgTable = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
72967
73008
|
var style = props.style,
|
|
72968
73009
|
defaultPage = props.defaultPage,
|
|
72969
|
-
resetProps = _objectWithoutProperties(props, _excluded$
|
|
73010
|
+
resetProps = _objectWithoutProperties(props, _excluded$17);
|
|
72970
73011
|
|
|
72971
73012
|
var _useReducer = React.useReducer(reducer$3, initialState$3),
|
|
72972
73013
|
_useReducer2 = _slicedToArray(_useReducer, 2),
|
|
@@ -72987,7 +73028,7 @@
|
|
|
72987
73028
|
}
|
|
72988
73029
|
};
|
|
72989
73030
|
});
|
|
72990
|
-
return /*#__PURE__*/React__default['default'].createElement(Context$
|
|
73031
|
+
return /*#__PURE__*/React__default['default'].createElement(Context$5.Provider, {
|
|
72991
73032
|
value: _objectSpread(_objectSpread({
|
|
72992
73033
|
dispatch: dispatch
|
|
72993
73034
|
}, resetProps), {}, {
|
|
@@ -73009,12 +73050,12 @@
|
|
|
73009
73050
|
ResizeSize.ImgTable = ImgTable;
|
|
73010
73051
|
ResizeSize.Summary = Summary;
|
|
73011
73052
|
|
|
73012
|
-
var _excluded$
|
|
73013
|
-
_excluded2$
|
|
73053
|
+
var _excluded$18 = ["children"],
|
|
73054
|
+
_excluded2$i = ["children", "size", "buttonStyle", "direction"];
|
|
73014
73055
|
|
|
73015
73056
|
var LMRadio = function LMRadio(props) {
|
|
73016
73057
|
var children = props.children,
|
|
73017
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
73058
|
+
restProps = _objectWithoutProperties(props, _excluded$18);
|
|
73018
73059
|
|
|
73019
73060
|
return /*#__PURE__*/React__default['default'].createElement(_Radio__default['default'], _extends({
|
|
73020
73061
|
className: "lm-radio"
|
|
@@ -73027,8 +73068,9 @@
|
|
|
73027
73068
|
buttonStyle = props.buttonStyle,
|
|
73028
73069
|
_props$direction = props.direction,
|
|
73029
73070
|
direction = _props$direction === void 0 ? 'row' : _props$direction,
|
|
73030
|
-
restProps = _objectWithoutProperties(props, _excluded2$
|
|
73071
|
+
restProps = _objectWithoutProperties(props, _excluded2$i);
|
|
73031
73072
|
|
|
73073
|
+
console.log(children, 'rrr');
|
|
73032
73074
|
return /*#__PURE__*/React__default['default'].createElement(_Radio__default['default'].Group, _extends({
|
|
73033
73075
|
className: classnames('lm-radio-group', "lm-radio-group-".concat(direction))
|
|
73034
73076
|
}, restProps), children);
|
|
@@ -73036,7 +73078,7 @@
|
|
|
73036
73078
|
|
|
73037
73079
|
LMRadio.Button = _Radio__default['default'].Button;
|
|
73038
73080
|
|
|
73039
|
-
var _excluded$
|
|
73081
|
+
var _excluded$19 = ["children", "className", "size", "dropdownClassName"];
|
|
73040
73082
|
var prefixCls$5 = 'lm_select';
|
|
73041
73083
|
|
|
73042
73084
|
var CLMSelect = function CLMSelect(props) {
|
|
@@ -73045,7 +73087,7 @@
|
|
|
73045
73087
|
_props$size = props.size,
|
|
73046
73088
|
size = _props$size === void 0 ? 'small' : _props$size,
|
|
73047
73089
|
dropdownClassName = props.dropdownClassName,
|
|
73048
|
-
others = _objectWithoutProperties(props, _excluded$
|
|
73090
|
+
others = _objectWithoutProperties(props, _excluded$19);
|
|
73049
73091
|
|
|
73050
73092
|
return /*#__PURE__*/React__default['default'].createElement(_Select__default['default'], _extends({
|
|
73051
73093
|
className: classnames(className, prefixCls$5),
|
|
@@ -76030,7 +76072,7 @@
|
|
|
76030
76072
|
glyphs: glyphs
|
|
76031
76073
|
};
|
|
76032
76074
|
|
|
76033
|
-
var _excluded$
|
|
76075
|
+
var _excluded$1a = ["item"];
|
|
76034
76076
|
// visible: boolean
|
|
76035
76077
|
// onClose: fn
|
|
76036
76078
|
// value: string
|
|
@@ -76097,7 +76139,7 @@
|
|
|
76097
76139
|
options: options
|
|
76098
76140
|
}, function (_ref2) {
|
|
76099
76141
|
var item = _ref2.item,
|
|
76100
|
-
resetProps = _objectWithoutProperties(_ref2, _excluded$
|
|
76142
|
+
resetProps = _objectWithoutProperties(_ref2, _excluded$1a);
|
|
76101
76143
|
|
|
76102
76144
|
return /*#__PURE__*/React__default['default'].createElement("div", _extends({}, resetProps, {
|
|
76103
76145
|
className: "lm-icon_row"
|
|
@@ -76151,7 +76193,7 @@
|
|
|
76151
76193
|
editConfig: editConfig$1
|
|
76152
76194
|
};
|
|
76153
76195
|
|
|
76154
|
-
var _excluded$
|
|
76196
|
+
var _excluded$1b = ["dataSource", "autoSize", "columns", "rowClick", "onDoubleClick", "checkConfig", "summary", "pagination", "hiddenPage", "loading", "virtual", "customCheck"];
|
|
76155
76197
|
var Summary$1 = ProviderWarp.Summary;
|
|
76156
76198
|
var ResetTable$1 = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
76157
76199
|
var dataSource = props.dataSource,
|
|
@@ -76167,7 +76209,7 @@
|
|
|
76167
76209
|
_props$virtual = props.virtual,
|
|
76168
76210
|
virtual = _props$virtual === void 0 ? false : _props$virtual,
|
|
76169
76211
|
customCheck = props.customCheck,
|
|
76170
|
-
resetProps = _objectWithoutProperties(props, _excluded$
|
|
76212
|
+
resetProps = _objectWithoutProperties(props, _excluded$1b);
|
|
76171
76213
|
|
|
76172
76214
|
console.log(virtual, '--virtual', autoSize);
|
|
76173
76215
|
var _resetProps$rowKey = resetProps.rowKey,
|
|
@@ -76509,9 +76551,9 @@
|
|
|
76509
76551
|
});
|
|
76510
76552
|
var Table = /*#__PURE__*/React.memo(ResizeSize$2);
|
|
76511
76553
|
|
|
76512
|
-
var Context$
|
|
76554
|
+
var Context$6 = /*#__PURE__*/React.createContext();
|
|
76513
76555
|
|
|
76514
|
-
var _excluded$
|
|
76556
|
+
var _excluded$1c = ["desc"];
|
|
76515
76557
|
var Paragraph$2 = _Typography__default['default'].Paragraph;
|
|
76516
76558
|
|
|
76517
76559
|
var Access$1 = function Access(props) {
|
|
@@ -76521,7 +76563,7 @@
|
|
|
76521
76563
|
style = props.style,
|
|
76522
76564
|
className = props.className;
|
|
76523
76565
|
|
|
76524
|
-
var _useContext = React.useContext(Context$
|
|
76566
|
+
var _useContext = React.useContext(Context$6),
|
|
76525
76567
|
dispatch = _useContext.dispatch,
|
|
76526
76568
|
defaultValue = _useContext.defaultValue,
|
|
76527
76569
|
_useContext$rowKey = _useContext.rowKey,
|
|
@@ -76541,7 +76583,7 @@
|
|
|
76541
76583
|
|
|
76542
76584
|
var defaultConfig = React.useMemo(function () {
|
|
76543
76585
|
var desc = config.desc,
|
|
76544
|
-
resetConfig = _objectWithoutProperties(config, _excluded$
|
|
76586
|
+
resetConfig = _objectWithoutProperties(config, _excluded$1c);
|
|
76545
76587
|
|
|
76546
76588
|
return _objectSpread({
|
|
76547
76589
|
title: 'title',
|
|
@@ -76675,21 +76717,21 @@
|
|
|
76675
76717
|
var stateRender$1 = function stateRender(v) {
|
|
76676
76718
|
switch (v) {
|
|
76677
76719
|
case 'ok':
|
|
76678
|
-
return /*#__PURE__*/React__default['default'].createElement(
|
|
76720
|
+
return /*#__PURE__*/React__default['default'].createElement(linkmoreDesign.Button, null, /*#__PURE__*/React__default['default'].createElement(CheckCircleFilled$2, {
|
|
76679
76721
|
style: {
|
|
76680
76722
|
color: 'rgb(253,77,78)'
|
|
76681
76723
|
}
|
|
76682
76724
|
}), "\u5DF2\u5BA1\u6838");
|
|
76683
76725
|
|
|
76684
76726
|
case 'wait':
|
|
76685
|
-
return /*#__PURE__*/React__default['default'].createElement(
|
|
76727
|
+
return /*#__PURE__*/React__default['default'].createElement(linkmoreDesign.Button, null, /*#__PURE__*/React__default['default'].createElement(ClockCircleFilled$2, {
|
|
76686
76728
|
style: {
|
|
76687
76729
|
color: 'rgb(253,77,78)'
|
|
76688
76730
|
}
|
|
76689
76731
|
}), "\u5F85\u5BA1\u6838");
|
|
76690
76732
|
|
|
76691
76733
|
default:
|
|
76692
|
-
return /*#__PURE__*/React__default['default'].createElement(
|
|
76734
|
+
return /*#__PURE__*/React__default['default'].createElement(linkmoreDesign.Button, null, /*#__PURE__*/React__default['default'].createElement(StopOutlined$2, {
|
|
76693
76735
|
style: {
|
|
76694
76736
|
color: 'rgb(253,77,78)'
|
|
76695
76737
|
}
|
|
@@ -76704,7 +76746,7 @@
|
|
|
76704
76746
|
style = props.style,
|
|
76705
76747
|
className = props.className;
|
|
76706
76748
|
|
|
76707
|
-
var _useContext = React.useContext(Context
|
|
76749
|
+
var _useContext = React.useContext(Context),
|
|
76708
76750
|
dispatch = _useContext.dispatch,
|
|
76709
76751
|
defaultValue = _useContext.defaultValue,
|
|
76710
76752
|
_useContext$rowKey = _useContext.rowKey,
|
|
@@ -76729,7 +76771,7 @@
|
|
|
76729
76771
|
checkbox: false,
|
|
76730
76772
|
singleRender: stateRender$1,
|
|
76731
76773
|
mapRender: function mapRender(v, i) {
|
|
76732
|
-
return /*#__PURE__*/React__default['default'].createElement(
|
|
76774
|
+
return /*#__PURE__*/React__default['default'].createElement(linkmoreDesign.Button, {
|
|
76733
76775
|
key: i,
|
|
76734
76776
|
icon: v.icon || /*#__PURE__*/React__default['default'].createElement(StarFilled$2, {
|
|
76735
76777
|
style: {
|
|
@@ -76770,7 +76812,7 @@
|
|
|
76770
76812
|
}
|
|
76771
76813
|
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
76772
76814
|
className: "img_cell_thum"
|
|
76773
|
-
}, defaultConfig.checkbox && /*#__PURE__*/React__default['default'].createElement(
|
|
76815
|
+
}, defaultConfig.checkbox && /*#__PURE__*/React__default['default'].createElement(linkmoreDesign.Checkbox, {
|
|
76774
76816
|
className: "checkBox",
|
|
76775
76817
|
checked: useCheck,
|
|
76776
76818
|
onChange: onChange
|
|
@@ -76806,7 +76848,7 @@
|
|
|
76806
76848
|
var widthCount = props.width,
|
|
76807
76849
|
heightCount = props.height;
|
|
76808
76850
|
|
|
76809
|
-
var _useContext = React.useContext(Context$
|
|
76851
|
+
var _useContext = React.useContext(Context$6),
|
|
76810
76852
|
data = _useContext.data,
|
|
76811
76853
|
_useContext$heightCel = _useContext.heightCell,
|
|
76812
76854
|
heightCell = _useContext$heightCel === void 0 ? 375 : _useContext$heightCel,
|
|
@@ -76882,7 +76924,7 @@
|
|
|
76882
76924
|
};
|
|
76883
76925
|
|
|
76884
76926
|
var Footer$1 = function Footer() {
|
|
76885
|
-
var _useContext = React.useContext(Context$
|
|
76927
|
+
var _useContext = React.useContext(Context$6),
|
|
76886
76928
|
dispatch = _useContext.dispatch,
|
|
76887
76929
|
data = _useContext.data,
|
|
76888
76930
|
onChange = _useContext.onChange,
|
|
@@ -76917,7 +76959,7 @@
|
|
|
76917
76959
|
}, config));
|
|
76918
76960
|
};
|
|
76919
76961
|
|
|
76920
|
-
var _excluded$
|
|
76962
|
+
var _excluded$1d = ["style", "defaultPage"];
|
|
76921
76963
|
var initialState$4 = {
|
|
76922
76964
|
// 选中的数据
|
|
76923
76965
|
checkList: [],
|
|
@@ -76958,7 +77000,7 @@
|
|
|
76958
77000
|
var ImgTable$1 = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
76959
77001
|
var style = props.style,
|
|
76960
77002
|
defaultPage = props.defaultPage,
|
|
76961
|
-
resetProps = _objectWithoutProperties(props, _excluded$
|
|
77003
|
+
resetProps = _objectWithoutProperties(props, _excluded$1d);
|
|
76962
77004
|
|
|
76963
77005
|
var _useReducer = React.useReducer(reducer$4, initialState$4),
|
|
76964
77006
|
_useReducer2 = _slicedToArray(_useReducer, 2),
|
|
@@ -76979,7 +77021,7 @@
|
|
|
76979
77021
|
}
|
|
76980
77022
|
};
|
|
76981
77023
|
});
|
|
76982
|
-
return /*#__PURE__*/React__default['default'].createElement(Context$
|
|
77024
|
+
return /*#__PURE__*/React__default['default'].createElement(Context$6.Provider, {
|
|
76983
77025
|
value: _objectSpread(_objectSpread({
|
|
76984
77026
|
dispatch: dispatch
|
|
76985
77027
|
}, resetProps), {}, {
|