linkmore-design 1.1.14 → 1.1.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Form/FormWrapper.d.ts +3 -0
- package/dist/Form/WrapperItem.d.ts +4 -0
- package/dist/Form/index.d.ts +2 -0
- package/dist/Form/interface.d.ts +10 -0
- package/dist/LmTable/demos/summuy.d.ts +2 -0
- package/dist/TreeSelect/demos/treedata.d.ts +3 -0
- package/dist/index.umd.js +941 -871
- package/dist/index.umd.min.js +5 -5
- package/dist/variables.css +59 -48
- package/es/Cascader/index.js +3 -3
- package/es/Cascader/style/index.css +1 -0
- package/es/Cascader/style/variables.css +1 -0
- package/es/Form/Form.js +13 -4
- package/es/Form/FormItem/ItemHolder.js +1 -10
- package/es/Form/FormWrapper.d.ts +3 -0
- package/es/Form/FormWrapper.js +23 -0
- package/es/Form/WrapperItem.d.ts +4 -0
- package/es/Form/WrapperItem.js +149 -0
- package/es/Form/container.js +1 -13
- package/es/Form/images/icon_collapse.svg +1 -0
- package/es/Form/index.d.ts +2 -0
- package/es/Form/index.js +2 -0
- package/es/Form/interface.d.ts +10 -0
- package/es/Form/style/index.css +13 -48
- package/es/Form/style/variables.css +13 -48
- package/es/Input/index.js +11 -15
- package/es/InputNumber/style/index.css +4 -0
- package/es/InputNumber/style/variables.css +4 -0
- package/es/LmEditTable/EditTable.js +5 -4
- package/es/LmFilter/components/CheckboxFilter.js +9 -4
- package/es/LmFilter/components/DropdownFIlter.js +10 -4
- package/es/LmFilter/components/SelectFilter.js +4 -3
- package/es/LmSelect/style/index.css +1 -0
- package/es/LmSelect/style/variables.css +1 -0
- package/es/LmTable/style/index.css +39 -0
- package/es/LmTable/style/variables.css +39 -0
- package/es/Select/style/index.css +1 -0
- package/es/Select/style/variables.css +1 -0
- package/es/styles/variables.css +59 -48
- package/lib/Cascader/index.js +3 -3
- package/lib/Cascader/style/index.css +1 -0
- package/lib/Cascader/style/variables.css +1 -0
- package/lib/Form/Form.js +13 -4
- package/lib/Form/FormItem/ItemHolder.js +1 -10
- package/lib/Form/FormWrapper.d.ts +3 -0
- package/lib/Form/FormWrapper.js +35 -0
- package/lib/Form/WrapperItem.d.ts +4 -0
- package/lib/Form/WrapperItem.js +168 -0
- package/lib/Form/container.js +1 -13
- package/lib/Form/images/icon_collapse.svg +1 -0
- package/lib/Form/index.d.ts +2 -0
- package/lib/Form/index.js +3 -0
- package/lib/Form/interface.d.ts +10 -0
- package/lib/Form/style/index.css +13 -48
- package/lib/Form/style/variables.css +13 -48
- package/lib/Input/index.js +12 -15
- package/lib/InputNumber/style/index.css +4 -0
- package/lib/InputNumber/style/variables.css +4 -0
- package/lib/LmEditTable/EditTable.js +5 -4
- package/lib/LmFilter/components/CheckboxFilter.js +9 -4
- package/lib/LmFilter/components/DropdownFIlter.js +10 -4
- package/lib/LmFilter/components/SelectFilter.js +4 -3
- package/lib/LmSelect/style/index.css +1 -0
- package/lib/LmSelect/style/variables.css +1 -0
- package/lib/LmTable/style/index.css +39 -0
- package/lib/LmTable/style/variables.css +39 -0
- package/lib/Select/style/index.css +1 -0
- package/lib/Select/style/variables.css +1 -0
- package/lib/styles/variables.css +59 -48
- package/package.json +4 -2
package/dist/index.umd.js
CHANGED
|
@@ -34794,11 +34794,11 @@
|
|
|
34794
34794
|
others = _objectWithoutProperties$1(props, _excluded$y);
|
|
34795
34795
|
|
|
34796
34796
|
var displayRender = function displayRender(label, selectedOptions) {
|
|
34797
|
-
var
|
|
34798
|
-
return
|
|
34797
|
+
var hasUndefined = selectedOptions.some(function (v) {
|
|
34798
|
+
return !v;
|
|
34799
34799
|
});
|
|
34800
34800
|
|
|
34801
|
-
if (
|
|
34801
|
+
if (hasUndefined && defaultLabel) {
|
|
34802
34802
|
return defaultLabel;
|
|
34803
34803
|
}
|
|
34804
34804
|
|
|
@@ -89948,7 +89948,8 @@
|
|
|
89948
89948
|
setFilterValue = instance.setFilterValue,
|
|
89949
89949
|
visible = instance.visible;
|
|
89950
89950
|
var _itemProps$data = itemProps.data,
|
|
89951
|
-
filters = _itemProps$data === void 0 ? [] : _itemProps$data
|
|
89951
|
+
filters = _itemProps$data === void 0 ? [] : _itemProps$data,
|
|
89952
|
+
showSearch = itemProps.showSearch;
|
|
89952
89953
|
var delayedFn = useDelayedFn();
|
|
89953
89954
|
var inputRef = React.useRef(null); // 搜索后的筛选项
|
|
89954
89955
|
|
|
@@ -89959,8 +89960,8 @@
|
|
|
89959
89960
|
|
|
89960
89961
|
|
|
89961
89962
|
var isSearch = React.useMemo(function () {
|
|
89962
|
-
return filters.length > 8;
|
|
89963
|
-
}, [filters.length]); // 自定义节点字段
|
|
89963
|
+
return filters.length > 8 && !!(showSearch !== null && showSearch !== void 0 ? showSearch : true);
|
|
89964
|
+
}, [filters.length, showSearch]); // 自定义节点字段
|
|
89964
89965
|
|
|
89965
89966
|
var fieldNames = React.useMemo(function () {
|
|
89966
89967
|
return _objectSpread({
|
|
@@ -90186,7 +90187,9 @@
|
|
|
90186
90187
|
visible = instance.visible,
|
|
90187
90188
|
setVisible = instance.setVisible;
|
|
90188
90189
|
var _itemProps$data = itemProps.data,
|
|
90189
|
-
filters = _itemProps$data === void 0 ? [] : _itemProps$data
|
|
90190
|
+
filters = _itemProps$data === void 0 ? [] : _itemProps$data,
|
|
90191
|
+
showSearch = itemProps.showSearch,
|
|
90192
|
+
showAllChecked = itemProps.showAllChecked;
|
|
90190
90193
|
var inputRef = React.useRef(); // 选中的数据项: [key, key, ...];
|
|
90191
90194
|
|
|
90192
90195
|
var _useState = React.useState(filterValue),
|
|
@@ -90205,8 +90208,11 @@
|
|
|
90205
90208
|
var delayedFn = useDelayedFn(); // 是否存在搜索, 当数据大于8时存在搜索
|
|
90206
90209
|
|
|
90207
90210
|
var isSearch = React.useMemo(function () {
|
|
90208
|
-
return filters.length > 8;
|
|
90209
|
-
}, [filters.length]);
|
|
90211
|
+
return filters.length > 8 && !!(showSearch !== null && showSearch !== void 0 ? showSearch : true);
|
|
90212
|
+
}, [filters.length, showSearch]);
|
|
90213
|
+
var isAllCheck = React.useMemo(function () {
|
|
90214
|
+
return !!(showAllChecked !== null && showAllChecked !== void 0 ? showAllChecked : true);
|
|
90215
|
+
}, [showAllChecked]); // 是否全选: 选中的数据大于等于筛选后的数据 && 筛选后的数据全部存在于选中的数据中
|
|
90210
90216
|
|
|
90211
90217
|
var checkAll = React.useMemo(function () {
|
|
90212
90218
|
var isAll = checkedValues.length >= options.length;
|
|
@@ -90288,7 +90294,7 @@
|
|
|
90288
90294
|
ref: inputRef,
|
|
90289
90295
|
onSearch: handleFilter,
|
|
90290
90296
|
onChange: handleFilter
|
|
90291
|
-
}), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
90297
|
+
}), isAllCheck && /*#__PURE__*/React__default['default'].createElement("div", {
|
|
90292
90298
|
className: "filter_header_operate"
|
|
90293
90299
|
}, /*#__PURE__*/React__default['default'].createElement(LMCheckBox, {
|
|
90294
90300
|
indeterminate: indeterminate,
|
|
@@ -90775,13 +90781,19 @@
|
|
|
90775
90781
|
|
|
90776
90782
|
var filterValue = instance.filterValue,
|
|
90777
90783
|
size = instance.size;
|
|
90778
|
-
var popupClassName = item.popupClassName
|
|
90784
|
+
var popupClassName = item.popupClassName,
|
|
90785
|
+
colon = item.colon,
|
|
90786
|
+
className = item.className; // 触发查询时关闭下拉框
|
|
90779
90787
|
|
|
90780
90788
|
var setFilterValue = function setFilterValue(obj) {
|
|
90781
90789
|
instance.setFilterValue(obj);
|
|
90782
90790
|
setVisible(false);
|
|
90783
|
-
}; //
|
|
90791
|
+
}; // 冒号
|
|
90792
|
+
|
|
90784
90793
|
|
|
90794
|
+
var showColon = React.useMemo(function () {
|
|
90795
|
+
return (colon !== null && colon !== void 0 ? colon : ':') ? ':' : null;
|
|
90796
|
+
}, [colon]); // 重组Instance 加入下拉关闭控制
|
|
90785
90797
|
|
|
90786
90798
|
var resetInstance = _objectSpread(_objectSpread({
|
|
90787
90799
|
visible: visible,
|
|
@@ -90817,13 +90829,13 @@
|
|
|
90817
90829
|
,
|
|
90818
90830
|
destroyPopupOnHide: true
|
|
90819
90831
|
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
90820
|
-
className: classnames('lm_filter_basic_item', size, {
|
|
90832
|
+
className: classnames('lm_filter_basic_item', className, size, {
|
|
90821
90833
|
expand: visible,
|
|
90822
90834
|
active: active
|
|
90823
90835
|
})
|
|
90824
90836
|
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
90825
90837
|
className: "filter_item_label"
|
|
90826
|
-
}, item === null || item === void 0 ? void 0 : item.title,
|
|
90838
|
+
}, item === null || item === void 0 ? void 0 : item.title, showColon), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
90827
90839
|
className: "filter_item_value"
|
|
90828
90840
|
}, getLabel(resetInstance, item)), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
90829
90841
|
className: "filter_item_icon addon_after"
|
|
@@ -188467,22 +188479,15 @@
|
|
|
188467
188479
|
}))));
|
|
188468
188480
|
};
|
|
188469
188481
|
|
|
188470
|
-
var _excluded$1i = ["
|
|
188471
|
-
_excluded2$i = ["allowClear"],
|
|
188472
|
-
_excluded3$5 = ["allowClear"];
|
|
188482
|
+
var _excluded$1i = ["className", "size", "disabled", "allowClear"],
|
|
188483
|
+
_excluded2$i = ["allowClear", "className"],
|
|
188484
|
+
_excluded3$5 = ["allowClear", "className"];
|
|
188473
188485
|
var LmInput = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
188474
|
-
var
|
|
188475
|
-
_props$bordered = props.bordered,
|
|
188476
|
-
customStatus = props.status,
|
|
188486
|
+
var className = props.className,
|
|
188477
188487
|
customSize = props.size,
|
|
188478
188488
|
customDisabled = props.disabled,
|
|
188479
|
-
onBlur = props.onBlur,
|
|
188480
|
-
onFocus = props.onFocus,
|
|
188481
|
-
suffix = props.suffix,
|
|
188482
188489
|
_props$allowClear = props.allowClear,
|
|
188483
188490
|
allowClear = _props$allowClear === void 0 ? true : _props$allowClear,
|
|
188484
|
-
addonAfter = props.addonAfter,
|
|
188485
|
-
addonBefore = props.addonBefore,
|
|
188486
188491
|
rest = _objectWithoutProperties$1(props, _excluded$1i); // ===================== Size =====================
|
|
188487
188492
|
|
|
188488
188493
|
|
|
@@ -188492,7 +188497,7 @@
|
|
|
188492
188497
|
var mergedDisabled = customDisabled || disabled;
|
|
188493
188498
|
return /*#__PURE__*/React__default['default'].createElement(Input$3, _objectSpread(_objectSpread({
|
|
188494
188499
|
ref: ref,
|
|
188495
|
-
className:
|
|
188500
|
+
className: classnames('lm_input', className),
|
|
188496
188501
|
disabled: mergedDisabled || undefined,
|
|
188497
188502
|
size: size
|
|
188498
188503
|
}, rest), {}, {
|
|
@@ -188503,6 +188508,7 @@
|
|
|
188503
188508
|
LmInput.Search = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
188504
188509
|
var _props$allowClear2 = props.allowClear,
|
|
188505
188510
|
allowClear = _props$allowClear2 === void 0 ? true : _props$allowClear2,
|
|
188511
|
+
className = props.className,
|
|
188506
188512
|
rest = _objectWithoutProperties$1(props, _excluded2$i);
|
|
188507
188513
|
|
|
188508
188514
|
return /*#__PURE__*/React__default['default'].createElement(Input$3.Search, _objectSpread(_objectSpread({
|
|
@@ -188512,7 +188518,7 @@
|
|
|
188512
188518
|
}, rest), {}, {
|
|
188513
188519
|
ref: ref,
|
|
188514
188520
|
allowClear: allowClear,
|
|
188515
|
-
className:
|
|
188521
|
+
className: classnames('lm_input_search', className)
|
|
188516
188522
|
}));
|
|
188517
188523
|
});
|
|
188518
188524
|
LmInput.TextArea = Input$3.TextArea;
|
|
@@ -188520,10 +188526,11 @@
|
|
|
188520
188526
|
LmInput.Password = function (props) {
|
|
188521
188527
|
var _props$allowClear3 = props.allowClear,
|
|
188522
188528
|
allowClear = _props$allowClear3 === void 0 ? true : _props$allowClear3,
|
|
188529
|
+
className = props.className,
|
|
188523
188530
|
rest = _objectWithoutProperties$1(props, _excluded3$5);
|
|
188524
188531
|
|
|
188525
188532
|
return /*#__PURE__*/React__default['default'].createElement(Input$3.Password, _objectSpread(_objectSpread({
|
|
188526
|
-
className:
|
|
188533
|
+
className: classnames('lm_input_password', className),
|
|
188527
188534
|
iconRender: function iconRender(visible) {
|
|
188528
188535
|
return visible ? /*#__PURE__*/React__default['default'].createElement(IconFont, {
|
|
188529
188536
|
type: "lmweb-eye"
|
|
@@ -300492,28 +300499,6 @@
|
|
|
300492
300499
|
var isIllegalName = formItemNameBlackList$1.indexOf(mergedId) >= 0;
|
|
300493
300500
|
return isIllegalName ? "".concat(defaultItemNamePrefixCls$1, "_").concat(mergedId) : mergedId;
|
|
300494
300501
|
}
|
|
300495
|
-
function updateFormResponsiveClass(dom) {
|
|
300496
|
-
var form = dom.tagName.toLocaleLowerCase() === 'form' ? dom : dom.querySelector('form');
|
|
300497
|
-
|
|
300498
|
-
if (form) {
|
|
300499
|
-
var index = 0;
|
|
300500
|
-
Array.prototype.slice.call(form.children).forEach(function (element) {
|
|
300501
|
-
if (element.classList.contains('ant-form-item-responsive')) {
|
|
300502
|
-
index += 1;
|
|
300503
|
-
|
|
300504
|
-
if (index % 3 === 0) {
|
|
300505
|
-
element.classList.add('nth-three');
|
|
300506
|
-
} else if (index % 4 === 0) {
|
|
300507
|
-
element.classList.add('nth-four');
|
|
300508
|
-
} else if (index % 5 === 0) {
|
|
300509
|
-
element.classList.add('nth-five');
|
|
300510
|
-
}
|
|
300511
|
-
} else {
|
|
300512
|
-
index = 0;
|
|
300513
|
-
}
|
|
300514
|
-
});
|
|
300515
|
-
}
|
|
300516
|
-
}
|
|
300517
300502
|
|
|
300518
300503
|
function toNamePathStr$1(name) {
|
|
300519
300504
|
var namePath = toArray$c(name);
|
|
@@ -300563,732 +300548,9 @@
|
|
|
300563
300548
|
return [wrapForm];
|
|
300564
300549
|
}
|
|
300565
300550
|
|
|
300566
|
-
var _excluded$2z = ["children", "className", "responsive"];
|
|
300567
|
-
var prefixCls$a = 'lm_container';
|
|
300568
|
-
|
|
300569
|
-
var LMContainer = function LMContainer(props) {
|
|
300570
|
-
var children = props.children,
|
|
300571
|
-
className = props.className,
|
|
300572
|
-
responsive = props.responsive,
|
|
300573
|
-
others = _objectWithoutProperties$1(props, _excluded$2z);
|
|
300574
|
-
|
|
300575
|
-
var _useState = React.useState({
|
|
300576
|
-
width: '100%',
|
|
300577
|
-
height: '100%'
|
|
300578
|
-
}),
|
|
300579
|
-
_useState2 = _slicedToArray$1(_useState, 2),
|
|
300580
|
-
containerSize = _useState2[0],
|
|
300581
|
-
setContainerSize = _useState2[1];
|
|
300582
|
-
|
|
300583
|
-
var containerWrapRef = React.useRef(null);
|
|
300584
|
-
var throttleSize = React.useCallback(function () {
|
|
300585
|
-
var width = containerSize.width,
|
|
300586
|
-
height = containerSize.height;
|
|
300587
|
-
var responsiveCls = responsive && width !== '100%' ? 'responsive' : '';
|
|
300588
|
-
var lm_col = '';
|
|
300589
|
-
|
|
300590
|
-
if (responsiveCls) {
|
|
300591
|
-
if (parseInt(width) < 990) {
|
|
300592
|
-
lm_col = 'lm_col_3';
|
|
300593
|
-
} else if (parseInt(width) < 1390) {
|
|
300594
|
-
lm_col = 'lm_col_4';
|
|
300595
|
-
} else {
|
|
300596
|
-
lm_col = 'lm_col_5';
|
|
300597
|
-
}
|
|
300598
|
-
}
|
|
300599
|
-
|
|
300600
|
-
var classes = classnames(className, prefixCls$a, responsiveCls, lm_col);
|
|
300601
|
-
return /*#__PURE__*/React__default['default'].createElement("div", _objectSpread(_objectSpread({
|
|
300602
|
-
className: classes
|
|
300603
|
-
}, others), {}, {
|
|
300604
|
-
style: {
|
|
300605
|
-
width: width,
|
|
300606
|
-
height: height
|
|
300607
|
-
}
|
|
300608
|
-
}), children);
|
|
300609
|
-
}, [containerSize, props]);
|
|
300610
|
-
|
|
300611
|
-
var changeSize = function changeSize() {
|
|
300612
|
-
var _containerWrapRef$cur;
|
|
300613
|
-
|
|
300614
|
-
updateFormResponsiveClass(containerWrapRef.current);
|
|
300615
|
-
|
|
300616
|
-
var _ref = ((_containerWrapRef$cur = containerWrapRef.current) === null || _containerWrapRef$cur === void 0 ? void 0 : _containerWrapRef$cur.getBoundingClientRect()) || {},
|
|
300617
|
-
_ref$width = _ref.width,
|
|
300618
|
-
width = _ref$width === void 0 ? '100%' : _ref$width;
|
|
300619
|
-
|
|
300620
|
-
setContainerSize({
|
|
300621
|
-
width: width,
|
|
300622
|
-
height: '100%'
|
|
300623
|
-
});
|
|
300624
|
-
};
|
|
300625
|
-
|
|
300626
|
-
var handResize = lodash.throttle(changeSize, 600);
|
|
300627
|
-
React.useEffect(function () {
|
|
300628
|
-
setTimeout(function () {
|
|
300629
|
-
changeSize();
|
|
300630
|
-
}, 100);
|
|
300631
|
-
window.addEventListener('resize', handResize);
|
|
300632
|
-
return function () {
|
|
300633
|
-
window.removeEventListener('resize', handResize);
|
|
300634
|
-
};
|
|
300635
|
-
}, []);
|
|
300636
|
-
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
300637
|
-
className: "lm_container_wrapper",
|
|
300638
|
-
ref: containerWrapRef,
|
|
300639
|
-
style: {
|
|
300640
|
-
width: '100%',
|
|
300641
|
-
height: '100%'
|
|
300642
|
-
}
|
|
300643
|
-
}, throttleSize());
|
|
300644
|
-
};
|
|
300645
|
-
|
|
300646
|
-
var _excluded$2A = ["prefixCls", "className", "size", "disabled", "form", "colon", "labelAlign", "labelWrap", "labelCol", "wrapperCol", "hideRequiredMark", "layout", "scrollToFirstError", "requiredMark", "onFinishFailed", "name", "responsive"];
|
|
300647
|
-
|
|
300648
|
-
var InternalForm$2 = function InternalForm(props, ref) {
|
|
300649
|
-
var _classNames;
|
|
300650
|
-
|
|
300651
|
-
var contextSize = React.useContext(SizeContext$1);
|
|
300652
|
-
var contextDisabled = React.useContext(DisabledContext$1);
|
|
300653
|
-
|
|
300654
|
-
var _React$useContext = React.useContext(ConfigContext$1),
|
|
300655
|
-
getPrefixCls = _React$useContext.getPrefixCls,
|
|
300656
|
-
direction = _React$useContext.direction,
|
|
300657
|
-
contextForm = _React$useContext.form;
|
|
300658
|
-
|
|
300659
|
-
var customizePrefixCls = props.prefixCls,
|
|
300660
|
-
_props$className = props.className,
|
|
300661
|
-
className = _props$className === void 0 ? '' : _props$className,
|
|
300662
|
-
_props$size = props.size,
|
|
300663
|
-
size = _props$size === void 0 ? contextSize : _props$size,
|
|
300664
|
-
_props$disabled = props.disabled,
|
|
300665
|
-
disabled = _props$disabled === void 0 ? contextDisabled : _props$disabled,
|
|
300666
|
-
form = props.form,
|
|
300667
|
-
colon = props.colon,
|
|
300668
|
-
labelAlign = props.labelAlign,
|
|
300669
|
-
labelWrap = props.labelWrap,
|
|
300670
|
-
labelCol = props.labelCol,
|
|
300671
|
-
wrapperCol = props.wrapperCol,
|
|
300672
|
-
hideRequiredMark = props.hideRequiredMark,
|
|
300673
|
-
_props$layout = props.layout,
|
|
300674
|
-
layout = _props$layout === void 0 ? 'horizontal' : _props$layout,
|
|
300675
|
-
scrollToFirstError = props.scrollToFirstError,
|
|
300676
|
-
requiredMark = props.requiredMark,
|
|
300677
|
-
onFinishFailed = props.onFinishFailed,
|
|
300678
|
-
name = props.name,
|
|
300679
|
-
responsive = props.responsive,
|
|
300680
|
-
restFormProps = _objectWithoutProperties$1(props, _excluded$2A);
|
|
300681
|
-
|
|
300682
|
-
var mergedRequiredMark = React.useMemo(function () {
|
|
300683
|
-
if (requiredMark !== undefined) {
|
|
300684
|
-
return requiredMark;
|
|
300685
|
-
}
|
|
300686
|
-
|
|
300687
|
-
if (contextForm && contextForm.requiredMark !== undefined) {
|
|
300688
|
-
return contextForm.requiredMark;
|
|
300689
|
-
}
|
|
300690
|
-
|
|
300691
|
-
if (hideRequiredMark) {
|
|
300692
|
-
return false;
|
|
300693
|
-
}
|
|
300694
|
-
|
|
300695
|
-
return true;
|
|
300696
|
-
}, [hideRequiredMark, requiredMark, contextForm]);
|
|
300697
|
-
var mergedColon = colon !== null && colon !== void 0 ? colon : contextForm === null || contextForm === void 0 ? void 0 : contextForm.colon;
|
|
300698
|
-
var prefixCls = getPrefixCls('form', customizePrefixCls);
|
|
300699
|
-
var formClassName = classnames('lm_form', prefixCls, (_classNames = {}, _defineProperty$1(_classNames, "".concat(prefixCls, "-").concat(layout), true), _defineProperty$1(_classNames, "".concat(prefixCls, "-hide-required-mark"), mergedRequiredMark === false), _defineProperty$1(_classNames, "".concat(prefixCls, "-rtl"), direction === 'rtl'), _defineProperty$1(_classNames, "".concat(prefixCls, "-").concat(size), size), _classNames), className);
|
|
300700
|
-
|
|
300701
|
-
var _useForm = useForm$2(form),
|
|
300702
|
-
_useForm2 = _slicedToArray$1(_useForm, 1),
|
|
300703
|
-
wrapForm = _useForm2[0];
|
|
300704
|
-
|
|
300705
|
-
var __INTERNAL__ = wrapForm.__INTERNAL__;
|
|
300706
|
-
__INTERNAL__.name = name;
|
|
300707
|
-
var formContextValue = React.useMemo(function () {
|
|
300708
|
-
return {
|
|
300709
|
-
name: name,
|
|
300710
|
-
labelAlign: labelAlign,
|
|
300711
|
-
labelCol: labelCol,
|
|
300712
|
-
labelWrap: labelWrap,
|
|
300713
|
-
wrapperCol: wrapperCol,
|
|
300714
|
-
vertical: layout === 'vertical',
|
|
300715
|
-
colon: mergedColon,
|
|
300716
|
-
requiredMark: mergedRequiredMark,
|
|
300717
|
-
itemRef: __INTERNAL__.itemRef,
|
|
300718
|
-
form: wrapForm
|
|
300719
|
-
};
|
|
300720
|
-
}, [name, labelAlign, labelCol, wrapperCol, layout, mergedColon, mergedRequiredMark, wrapForm]);
|
|
300721
|
-
React.useImperativeHandle(ref, function () {
|
|
300722
|
-
return wrapForm;
|
|
300723
|
-
});
|
|
300724
|
-
|
|
300725
|
-
var onInternalFinishFailed = function onInternalFinishFailed(errorInfo) {
|
|
300726
|
-
onFinishFailed === null || onFinishFailed === void 0 ? void 0 : onFinishFailed(errorInfo);
|
|
300727
|
-
var defaultScrollToFirstError = {
|
|
300728
|
-
block: 'nearest'
|
|
300729
|
-
};
|
|
300730
|
-
|
|
300731
|
-
if (scrollToFirstError && errorInfo.errorFields.length) {
|
|
300732
|
-
if (_typeof$1(scrollToFirstError) === 'object') {
|
|
300733
|
-
defaultScrollToFirstError = scrollToFirstError;
|
|
300734
|
-
}
|
|
300735
|
-
|
|
300736
|
-
wrapForm.scrollToField(errorInfo.errorFields[0].name, defaultScrollToFirstError);
|
|
300737
|
-
}
|
|
300738
|
-
};
|
|
300739
|
-
|
|
300740
|
-
var formNode = /*#__PURE__*/React.createElement(DisabledContextProvider$1, {
|
|
300741
|
-
disabled: disabled
|
|
300742
|
-
}, /*#__PURE__*/React.createElement(SizeContextProvider$1, {
|
|
300743
|
-
size: size
|
|
300744
|
-
}, /*#__PURE__*/React.createElement(FormContext$2.Provider, {
|
|
300745
|
-
value: formContextValue
|
|
300746
|
-
}, /*#__PURE__*/React.createElement(RefForm, _objectSpread(_objectSpread({
|
|
300747
|
-
id: name
|
|
300748
|
-
}, restFormProps), {}, {
|
|
300749
|
-
name: name,
|
|
300750
|
-
onFinishFailed: onInternalFinishFailed,
|
|
300751
|
-
form: wrapForm,
|
|
300752
|
-
className: formClassName
|
|
300753
|
-
})))));
|
|
300754
|
-
|
|
300755
|
-
if (responsive) {
|
|
300756
|
-
return /*#__PURE__*/React.createElement(LMContainer, {
|
|
300757
|
-
responsive: true
|
|
300758
|
-
}, formNode);
|
|
300759
|
-
}
|
|
300760
|
-
|
|
300761
|
-
return formNode;
|
|
300762
|
-
};
|
|
300763
|
-
|
|
300764
|
-
var Form$3 = /*#__PURE__*/React.forwardRef(InternalForm$2);
|
|
300765
|
-
|
|
300766
|
-
var createForOfIteratorHelper = createCommonjsModule(function (module) {
|
|
300767
|
-
function _createForOfIteratorHelper(o, allowArrayLike) {
|
|
300768
|
-
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
|
300769
|
-
|
|
300770
|
-
if (!it) {
|
|
300771
|
-
if (Array.isArray(o) || (it = unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
|
|
300772
|
-
if (it) o = it;
|
|
300773
|
-
var i = 0;
|
|
300774
|
-
|
|
300775
|
-
var F = function F() {};
|
|
300776
|
-
|
|
300777
|
-
return {
|
|
300778
|
-
s: F,
|
|
300779
|
-
n: function n() {
|
|
300780
|
-
if (i >= o.length) return {
|
|
300781
|
-
done: true
|
|
300782
|
-
};
|
|
300783
|
-
return {
|
|
300784
|
-
done: false,
|
|
300785
|
-
value: o[i++]
|
|
300786
|
-
};
|
|
300787
|
-
},
|
|
300788
|
-
e: function e(_e) {
|
|
300789
|
-
throw _e;
|
|
300790
|
-
},
|
|
300791
|
-
f: F
|
|
300792
|
-
};
|
|
300793
|
-
}
|
|
300794
|
-
|
|
300795
|
-
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
300796
|
-
}
|
|
300797
|
-
|
|
300798
|
-
var normalCompletion = true,
|
|
300799
|
-
didErr = false,
|
|
300800
|
-
err;
|
|
300801
|
-
return {
|
|
300802
|
-
s: function s() {
|
|
300803
|
-
it = it.call(o);
|
|
300804
|
-
},
|
|
300805
|
-
n: function n() {
|
|
300806
|
-
var step = it.next();
|
|
300807
|
-
normalCompletion = step.done;
|
|
300808
|
-
return step;
|
|
300809
|
-
},
|
|
300810
|
-
e: function e(_e2) {
|
|
300811
|
-
didErr = true;
|
|
300812
|
-
err = _e2;
|
|
300813
|
-
},
|
|
300814
|
-
f: function f() {
|
|
300815
|
-
try {
|
|
300816
|
-
if (!normalCompletion && it["return"] != null) it["return"]();
|
|
300817
|
-
} finally {
|
|
300818
|
-
if (didErr) throw err;
|
|
300819
|
-
}
|
|
300820
|
-
}
|
|
300821
|
-
};
|
|
300822
|
-
}
|
|
300823
|
-
|
|
300824
|
-
module.exports = _createForOfIteratorHelper, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
300825
|
-
});
|
|
300826
|
-
|
|
300827
|
-
var _createForOfIteratorHelper$1 = /*@__PURE__*/getDefaultExportFromCjs(createForOfIteratorHelper);
|
|
300828
|
-
|
|
300829
|
-
var ref$1 = createCommonjsModule(function (module, exports) {
|
|
300830
|
-
|
|
300831
|
-
|
|
300832
|
-
|
|
300833
|
-
Object.defineProperty(exports, "__esModule", {
|
|
300834
|
-
value: true
|
|
300835
|
-
});
|
|
300836
|
-
exports.composeRef = composeRef;
|
|
300837
|
-
exports.fillRef = fillRef;
|
|
300838
|
-
exports.supportRef = supportRef;
|
|
300839
|
-
exports.useComposeRef = useComposeRef;
|
|
300840
|
-
|
|
300841
|
-
var _typeof2 = interopRequireDefault(_typeof_1);
|
|
300842
|
-
|
|
300843
|
-
|
|
300844
|
-
|
|
300845
|
-
var _useMemo = interopRequireDefault(useMemo_1);
|
|
300846
|
-
|
|
300847
|
-
function fillRef(ref, node) {
|
|
300848
|
-
if (typeof ref === 'function') {
|
|
300849
|
-
ref(node);
|
|
300850
|
-
} else if ((0, _typeof2.default)(ref) === 'object' && ref && 'current' in ref) {
|
|
300851
|
-
ref.current = node;
|
|
300852
|
-
}
|
|
300853
|
-
}
|
|
300854
|
-
/**
|
|
300855
|
-
* Merge refs into one ref function to support ref passing.
|
|
300856
|
-
*/
|
|
300857
|
-
|
|
300858
|
-
|
|
300859
|
-
function composeRef() {
|
|
300860
|
-
for (var _len = arguments.length, refs = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
300861
|
-
refs[_key] = arguments[_key];
|
|
300862
|
-
}
|
|
300863
|
-
|
|
300864
|
-
var refList = refs.filter(function (ref) {
|
|
300865
|
-
return ref;
|
|
300866
|
-
});
|
|
300867
|
-
|
|
300868
|
-
if (refList.length <= 1) {
|
|
300869
|
-
return refList[0];
|
|
300870
|
-
}
|
|
300871
|
-
|
|
300872
|
-
return function (node) {
|
|
300873
|
-
refs.forEach(function (ref) {
|
|
300874
|
-
fillRef(ref, node);
|
|
300875
|
-
});
|
|
300876
|
-
};
|
|
300877
|
-
}
|
|
300878
|
-
|
|
300879
|
-
function useComposeRef() {
|
|
300880
|
-
for (var _len2 = arguments.length, refs = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
300881
|
-
refs[_key2] = arguments[_key2];
|
|
300882
|
-
}
|
|
300883
|
-
|
|
300884
|
-
return (0, _useMemo.default)(function () {
|
|
300885
|
-
return composeRef.apply(void 0, refs);
|
|
300886
|
-
}, refs, function (prev, next) {
|
|
300887
|
-
return prev.length === next.length && prev.every(function (ref, i) {
|
|
300888
|
-
return ref === next[i];
|
|
300889
|
-
});
|
|
300890
|
-
});
|
|
300891
|
-
}
|
|
300892
|
-
|
|
300893
|
-
function supportRef(nodeOrComponent) {
|
|
300894
|
-
var _type$prototype, _nodeOrComponent$prot;
|
|
300895
|
-
|
|
300896
|
-
var type = (0, reactIs.isMemo)(nodeOrComponent) ? nodeOrComponent.type.type : nodeOrComponent.type; // Function component node
|
|
300897
|
-
|
|
300898
|
-
if (typeof type === 'function' && !((_type$prototype = type.prototype) === null || _type$prototype === void 0 ? void 0 : _type$prototype.render)) {
|
|
300899
|
-
return false;
|
|
300900
|
-
} // Class component
|
|
300901
|
-
|
|
300902
|
-
|
|
300903
|
-
if (typeof nodeOrComponent === 'function' && !((_nodeOrComponent$prot = nodeOrComponent.prototype) === null || _nodeOrComponent$prot === void 0 ? void 0 : _nodeOrComponent$prot.render)) {
|
|
300904
|
-
return false;
|
|
300905
|
-
}
|
|
300906
|
-
|
|
300907
|
-
return true;
|
|
300908
|
-
}
|
|
300909
|
-
/* eslint-enable */
|
|
300910
|
-
});
|
|
300911
|
-
|
|
300912
|
-
var useFormItemStatus$1 = function useFormItemStatus() {
|
|
300913
|
-
var _useContext = React.useContext(FormItemInputContext$1),
|
|
300914
|
-
status = _useContext.status;
|
|
300915
|
-
|
|
300916
|
-
warning$6(status !== undefined, 'Form.Item', "Form.Item.useStatus should be used under Form.Item component. For more information: ".concat(window.location.protocol, "//").concat(window.location.host, "/components/form-cn/#Form.Item.useStatus"));
|
|
300917
|
-
return {
|
|
300918
|
-
status: status
|
|
300919
|
-
};
|
|
300920
|
-
};
|
|
300921
|
-
|
|
300922
|
-
var raf_1 = createCommonjsModule(function (module, exports) {
|
|
300923
|
-
|
|
300924
|
-
Object.defineProperty(exports, "__esModule", {
|
|
300925
|
-
value: true
|
|
300926
|
-
});
|
|
300927
|
-
exports.default = wrapperRaf;
|
|
300928
|
-
|
|
300929
|
-
var raf = function raf(callback) {
|
|
300930
|
-
return +setTimeout(callback, 16);
|
|
300931
|
-
};
|
|
300932
|
-
|
|
300933
|
-
var caf = function caf(num) {
|
|
300934
|
-
return clearTimeout(num);
|
|
300935
|
-
};
|
|
300936
|
-
|
|
300937
|
-
if (typeof window !== 'undefined' && 'requestAnimationFrame' in window) {
|
|
300938
|
-
raf = function raf(callback) {
|
|
300939
|
-
return window.requestAnimationFrame(callback);
|
|
300940
|
-
};
|
|
300941
|
-
|
|
300942
|
-
caf = function caf(handle) {
|
|
300943
|
-
return window.cancelAnimationFrame(handle);
|
|
300944
|
-
};
|
|
300945
|
-
}
|
|
300946
|
-
|
|
300947
|
-
var rafUUID = 0;
|
|
300948
|
-
var rafIds = new Map();
|
|
300949
|
-
|
|
300950
|
-
function cleanup(id) {
|
|
300951
|
-
rafIds.delete(id);
|
|
300952
|
-
}
|
|
300953
|
-
|
|
300954
|
-
function wrapperRaf(callback) {
|
|
300955
|
-
var times = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
|
|
300956
|
-
rafUUID += 1;
|
|
300957
|
-
var id = rafUUID;
|
|
300958
|
-
|
|
300959
|
-
function callRef(leftTimes) {
|
|
300960
|
-
if (leftTimes === 0) {
|
|
300961
|
-
// Clean up
|
|
300962
|
-
cleanup(id); // Trigger
|
|
300963
|
-
|
|
300964
|
-
callback();
|
|
300965
|
-
} else {
|
|
300966
|
-
// Next raf
|
|
300967
|
-
var realId = raf(function () {
|
|
300968
|
-
callRef(leftTimes - 1);
|
|
300969
|
-
}); // Bind real raf id
|
|
300970
|
-
|
|
300971
|
-
rafIds.set(id, realId);
|
|
300972
|
-
}
|
|
300973
|
-
}
|
|
300974
|
-
|
|
300975
|
-
callRef(times);
|
|
300976
|
-
return id;
|
|
300977
|
-
}
|
|
300978
|
-
|
|
300979
|
-
wrapperRaf.cancel = function (id) {
|
|
300980
|
-
var realId = rafIds.get(id);
|
|
300981
|
-
cleanup(realId);
|
|
300982
|
-
return caf(realId);
|
|
300983
|
-
};
|
|
300984
|
-
});
|
|
300985
|
-
|
|
300986
|
-
var raf$1 = /*@__PURE__*/getDefaultExportFromCjs(raf_1);
|
|
300987
|
-
|
|
300988
|
-
function useFrameState$1(defaultValue) {
|
|
300989
|
-
var _React$useState = React.useState(defaultValue),
|
|
300990
|
-
_React$useState2 = _slicedToArray$1(_React$useState, 2),
|
|
300991
|
-
value = _React$useState2[0],
|
|
300992
|
-
setValue = _React$useState2[1];
|
|
300993
|
-
|
|
300994
|
-
var frameRef = React.useRef(null);
|
|
300995
|
-
var batchRef = React.useRef([]);
|
|
300996
|
-
var destroyRef = React.useRef(false);
|
|
300997
|
-
React.useEffect(function () {
|
|
300998
|
-
destroyRef.current = false;
|
|
300999
|
-
return function () {
|
|
301000
|
-
destroyRef.current = true;
|
|
301001
|
-
raf$1.cancel(frameRef.current);
|
|
301002
|
-
frameRef.current = null;
|
|
301003
|
-
};
|
|
301004
|
-
}, []);
|
|
301005
|
-
|
|
301006
|
-
function setFrameValue(updater) {
|
|
301007
|
-
if (destroyRef.current) {
|
|
301008
|
-
return;
|
|
301009
|
-
}
|
|
301010
|
-
|
|
301011
|
-
if (frameRef.current === null) {
|
|
301012
|
-
batchRef.current = [];
|
|
301013
|
-
frameRef.current = raf$1(function () {
|
|
301014
|
-
frameRef.current = null;
|
|
301015
|
-
setValue(function (prevValue) {
|
|
301016
|
-
var current = prevValue;
|
|
301017
|
-
batchRef.current.forEach(function (func) {
|
|
301018
|
-
current = func(current);
|
|
301019
|
-
});
|
|
301020
|
-
return current;
|
|
301021
|
-
});
|
|
301022
|
-
});
|
|
301023
|
-
}
|
|
301024
|
-
|
|
301025
|
-
batchRef.current.push(updater);
|
|
301026
|
-
}
|
|
301027
|
-
|
|
301028
|
-
return [value, setFrameValue];
|
|
301029
|
-
}
|
|
301030
|
-
|
|
301031
|
-
function useItemRef$1() {
|
|
301032
|
-
var _React$useContext = React.useContext(FormContext$2),
|
|
301033
|
-
itemRef = _React$useContext.itemRef;
|
|
301034
|
-
|
|
301035
|
-
var cacheRef = React.useRef({});
|
|
301036
|
-
|
|
301037
|
-
function getRef(name, children) {
|
|
301038
|
-
var childrenRef = children && _typeof$1(children) === 'object' && children.ref;
|
|
301039
|
-
var nameStr = name.join('_');
|
|
301040
|
-
|
|
301041
|
-
if (cacheRef.current.name !== nameStr || cacheRef.current.originRef !== childrenRef) {
|
|
301042
|
-
cacheRef.current.name = nameStr;
|
|
301043
|
-
cacheRef.current.originRef = childrenRef;
|
|
301044
|
-
cacheRef.current.ref = ref$1.composeRef(itemRef(name), childrenRef);
|
|
301045
|
-
}
|
|
301046
|
-
|
|
301047
|
-
return cacheRef.current.ref;
|
|
301048
|
-
}
|
|
301049
|
-
|
|
301050
|
-
return getRef;
|
|
301051
|
-
}
|
|
301052
|
-
|
|
301053
|
-
var CheckCircleFilled_1 = createCommonjsModule(function (module, exports) {
|
|
301054
|
-
// This icon file is generated automatically.
|
|
301055
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
301056
|
-
var CheckCircleFilled = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z" } }] }, "name": "check-circle", "theme": "filled" };
|
|
301057
|
-
exports.default = CheckCircleFilled;
|
|
301058
|
-
});
|
|
301059
|
-
|
|
301060
|
-
var CheckCircleFilled_1$1 = createCommonjsModule(function (module, exports) {
|
|
301061
|
-
|
|
301062
|
-
|
|
301063
|
-
|
|
301064
|
-
|
|
301065
|
-
|
|
301066
|
-
Object.defineProperty(exports, "__esModule", {
|
|
301067
|
-
value: true
|
|
301068
|
-
});
|
|
301069
|
-
exports.default = void 0;
|
|
301070
|
-
|
|
301071
|
-
var _objectSpread2 = interopRequireDefault(objectSpread2);
|
|
301072
|
-
|
|
301073
|
-
var React = interopRequireWildcard(React__default['default']);
|
|
301074
|
-
|
|
301075
|
-
var _CheckCircleFilled = interopRequireDefault(CheckCircleFilled_1);
|
|
301076
|
-
|
|
301077
|
-
var _AntdIcon = interopRequireDefault(AntdIcon);
|
|
301078
|
-
|
|
301079
|
-
// GENERATE BY ./scripts/generate.ts
|
|
301080
|
-
// DON NOT EDIT IT MANUALLY
|
|
301081
|
-
var CheckCircleFilled = function CheckCircleFilled(props, ref) {
|
|
301082
|
-
return /*#__PURE__*/React.createElement(_AntdIcon.default, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, props), {}, {
|
|
301083
|
-
ref: ref,
|
|
301084
|
-
icon: _CheckCircleFilled.default
|
|
301085
|
-
}));
|
|
301086
|
-
};
|
|
301087
|
-
|
|
301088
|
-
CheckCircleFilled.displayName = 'CheckCircleFilled';
|
|
301089
|
-
|
|
301090
|
-
var _default = /*#__PURE__*/React.forwardRef(CheckCircleFilled);
|
|
301091
|
-
|
|
301092
|
-
exports.default = _default;
|
|
301093
|
-
});
|
|
301094
|
-
|
|
301095
|
-
var CheckCircleFilled$3 = createCommonjsModule(function (module, exports) {
|
|
301096
|
-
Object.defineProperty(exports, "__esModule", {
|
|
301097
|
-
value: true
|
|
301098
|
-
});
|
|
301099
|
-
exports.default = void 0;
|
|
301100
|
-
|
|
301101
|
-
var _CheckCircleFilled = _interopRequireDefault(CheckCircleFilled_1$1);
|
|
301102
|
-
|
|
301103
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
|
|
301104
|
-
|
|
301105
|
-
var _default = _CheckCircleFilled;
|
|
301106
|
-
exports.default = _default;
|
|
301107
|
-
module.exports = _default;
|
|
301108
|
-
});
|
|
301109
|
-
|
|
301110
|
-
var CheckCircleFilled$4 = /*@__PURE__*/getDefaultExportFromCjs(CheckCircleFilled$3);
|
|
301111
|
-
|
|
301112
|
-
var CloseCircleFilled_1 = createCommonjsModule(function (module, exports) {
|
|
301113
|
-
// This icon file is generated automatically.
|
|
301114
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
301115
|
-
var CloseCircleFilled = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm165.4 618.2l-66-.3L512 563.4l-99.3 118.4-66.1.3c-4.4 0-8-3.5-8-8 0-1.9.7-3.7 1.9-5.2l130.1-155L340.5 359a8.32 8.32 0 01-1.9-5.2c0-4.4 3.6-8 8-8l66.1.3L512 464.6l99.3-118.4 66-.3c4.4 0 8 3.5 8 8 0 1.9-.7 3.7-1.9 5.2L553.5 514l130 155c1.2 1.5 1.9 3.3 1.9 5.2 0 4.4-3.6 8-8 8z" } }] }, "name": "close-circle", "theme": "filled" };
|
|
301116
|
-
exports.default = CloseCircleFilled;
|
|
301117
|
-
});
|
|
301118
|
-
|
|
301119
|
-
var CloseCircleFilled_1$1 = createCommonjsModule(function (module, exports) {
|
|
301120
|
-
|
|
301121
|
-
|
|
301122
|
-
|
|
301123
|
-
|
|
301124
|
-
|
|
301125
|
-
Object.defineProperty(exports, "__esModule", {
|
|
301126
|
-
value: true
|
|
301127
|
-
});
|
|
301128
|
-
exports.default = void 0;
|
|
301129
|
-
|
|
301130
|
-
var _objectSpread2 = interopRequireDefault(objectSpread2);
|
|
301131
|
-
|
|
301132
|
-
var React = interopRequireWildcard(React__default['default']);
|
|
301133
|
-
|
|
301134
|
-
var _CloseCircleFilled = interopRequireDefault(CloseCircleFilled_1);
|
|
301135
|
-
|
|
301136
|
-
var _AntdIcon = interopRequireDefault(AntdIcon);
|
|
301137
|
-
|
|
301138
|
-
// GENERATE BY ./scripts/generate.ts
|
|
301139
|
-
// DON NOT EDIT IT MANUALLY
|
|
301140
|
-
var CloseCircleFilled = function CloseCircleFilled(props, ref) {
|
|
301141
|
-
return /*#__PURE__*/React.createElement(_AntdIcon.default, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, props), {}, {
|
|
301142
|
-
ref: ref,
|
|
301143
|
-
icon: _CloseCircleFilled.default
|
|
301144
|
-
}));
|
|
301145
|
-
};
|
|
301146
|
-
|
|
301147
|
-
CloseCircleFilled.displayName = 'CloseCircleFilled';
|
|
301148
|
-
|
|
301149
|
-
var _default = /*#__PURE__*/React.forwardRef(CloseCircleFilled);
|
|
301150
|
-
|
|
301151
|
-
exports.default = _default;
|
|
301152
|
-
});
|
|
301153
|
-
|
|
301154
|
-
var CloseCircleFilled$3 = createCommonjsModule(function (module, exports) {
|
|
301155
|
-
Object.defineProperty(exports, "__esModule", {
|
|
301156
|
-
value: true
|
|
301157
|
-
});
|
|
301158
|
-
exports.default = void 0;
|
|
301159
|
-
|
|
301160
|
-
var _CloseCircleFilled = _interopRequireDefault(CloseCircleFilled_1$1);
|
|
301161
|
-
|
|
301162
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
|
|
301163
|
-
|
|
301164
|
-
var _default = _CloseCircleFilled;
|
|
301165
|
-
exports.default = _default;
|
|
301166
|
-
module.exports = _default;
|
|
301167
|
-
});
|
|
301168
|
-
|
|
301169
|
-
var CloseCircleFilled$4 = /*@__PURE__*/getDefaultExportFromCjs(CloseCircleFilled$3);
|
|
301170
|
-
|
|
301171
|
-
var ExclamationCircleFilled_1 = createCommonjsModule(function (module, exports) {
|
|
301172
|
-
// This icon file is generated automatically.
|
|
301173
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
301174
|
-
var ExclamationCircleFilled = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z" } }] }, "name": "exclamation-circle", "theme": "filled" };
|
|
301175
|
-
exports.default = ExclamationCircleFilled;
|
|
301176
|
-
});
|
|
301177
|
-
|
|
301178
|
-
var ExclamationCircleFilled_1$1 = createCommonjsModule(function (module, exports) {
|
|
301179
|
-
|
|
301180
|
-
|
|
301181
|
-
|
|
301182
|
-
|
|
301183
|
-
|
|
301184
|
-
Object.defineProperty(exports, "__esModule", {
|
|
301185
|
-
value: true
|
|
301186
|
-
});
|
|
301187
|
-
exports.default = void 0;
|
|
301188
|
-
|
|
301189
|
-
var _objectSpread2 = interopRequireDefault(objectSpread2);
|
|
301190
|
-
|
|
301191
|
-
var React = interopRequireWildcard(React__default['default']);
|
|
301192
|
-
|
|
301193
|
-
var _ExclamationCircleFilled = interopRequireDefault(ExclamationCircleFilled_1);
|
|
301194
|
-
|
|
301195
|
-
var _AntdIcon = interopRequireDefault(AntdIcon);
|
|
301196
|
-
|
|
301197
|
-
// GENERATE BY ./scripts/generate.ts
|
|
301198
|
-
// DON NOT EDIT IT MANUALLY
|
|
301199
|
-
var ExclamationCircleFilled = function ExclamationCircleFilled(props, ref) {
|
|
301200
|
-
return /*#__PURE__*/React.createElement(_AntdIcon.default, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, props), {}, {
|
|
301201
|
-
ref: ref,
|
|
301202
|
-
icon: _ExclamationCircleFilled.default
|
|
301203
|
-
}));
|
|
301204
|
-
};
|
|
301205
|
-
|
|
301206
|
-
ExclamationCircleFilled.displayName = 'ExclamationCircleFilled';
|
|
301207
|
-
|
|
301208
|
-
var _default = /*#__PURE__*/React.forwardRef(ExclamationCircleFilled);
|
|
301209
|
-
|
|
301210
|
-
exports.default = _default;
|
|
301211
|
-
});
|
|
301212
|
-
|
|
301213
|
-
var ExclamationCircleFilled$3 = createCommonjsModule(function (module, exports) {
|
|
301214
|
-
Object.defineProperty(exports, "__esModule", {
|
|
301215
|
-
value: true
|
|
301216
|
-
});
|
|
301217
|
-
exports.default = void 0;
|
|
301218
|
-
|
|
301219
|
-
var _ExclamationCircleFilled = _interopRequireDefault(ExclamationCircleFilled_1$1);
|
|
301220
|
-
|
|
301221
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
|
|
301222
|
-
|
|
301223
|
-
var _default = _ExclamationCircleFilled;
|
|
301224
|
-
exports.default = _default;
|
|
301225
|
-
module.exports = _default;
|
|
301226
|
-
});
|
|
301227
|
-
|
|
301228
|
-
var ExclamationCircleFilled$4 = /*@__PURE__*/getDefaultExportFromCjs(ExclamationCircleFilled$3);
|
|
301229
|
-
|
|
301230
|
-
var LoadingOutlined_1 = createCommonjsModule(function (module, exports) {
|
|
301231
|
-
// This icon file is generated automatically.
|
|
301232
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
301233
|
-
var LoadingOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "0 0 1024 1024", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z" } }] }, "name": "loading", "theme": "outlined" };
|
|
301234
|
-
exports.default = LoadingOutlined;
|
|
301235
|
-
});
|
|
301236
|
-
|
|
301237
|
-
var LoadingOutlined_1$1 = createCommonjsModule(function (module, exports) {
|
|
301238
|
-
|
|
301239
|
-
|
|
301240
|
-
|
|
301241
|
-
|
|
301242
|
-
|
|
301243
|
-
Object.defineProperty(exports, "__esModule", {
|
|
301244
|
-
value: true
|
|
301245
|
-
});
|
|
301246
|
-
exports.default = void 0;
|
|
301247
|
-
|
|
301248
|
-
var _objectSpread2 = interopRequireDefault(objectSpread2);
|
|
301249
|
-
|
|
301250
|
-
var React = interopRequireWildcard(React__default['default']);
|
|
301251
|
-
|
|
301252
|
-
var _LoadingOutlined = interopRequireDefault(LoadingOutlined_1);
|
|
301253
|
-
|
|
301254
|
-
var _AntdIcon = interopRequireDefault(AntdIcon);
|
|
301255
|
-
|
|
301256
|
-
// GENERATE BY ./scripts/generate.ts
|
|
301257
|
-
// DON NOT EDIT IT MANUALLY
|
|
301258
|
-
var LoadingOutlined = function LoadingOutlined(props, ref) {
|
|
301259
|
-
return /*#__PURE__*/React.createElement(_AntdIcon.default, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, props), {}, {
|
|
301260
|
-
ref: ref,
|
|
301261
|
-
icon: _LoadingOutlined.default
|
|
301262
|
-
}));
|
|
301263
|
-
};
|
|
301264
|
-
|
|
301265
|
-
LoadingOutlined.displayName = 'LoadingOutlined';
|
|
301266
|
-
|
|
301267
|
-
var _default = /*#__PURE__*/React.forwardRef(LoadingOutlined);
|
|
301268
|
-
|
|
301269
|
-
exports.default = _default;
|
|
301270
|
-
});
|
|
301271
|
-
|
|
301272
|
-
var LoadingOutlined$3 = createCommonjsModule(function (module, exports) {
|
|
301273
|
-
Object.defineProperty(exports, "__esModule", {
|
|
301274
|
-
value: true
|
|
301275
|
-
});
|
|
301276
|
-
exports.default = void 0;
|
|
301277
|
-
|
|
301278
|
-
var _LoadingOutlined = _interopRequireDefault(LoadingOutlined_1$1);
|
|
301279
|
-
|
|
301280
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
|
|
301281
|
-
|
|
301282
|
-
var _default = _LoadingOutlined;
|
|
301283
|
-
exports.default = _default;
|
|
301284
|
-
module.exports = _default;
|
|
301285
|
-
});
|
|
301286
|
-
|
|
301287
|
-
var LoadingOutlined$4 = /*@__PURE__*/getDefaultExportFromCjs(LoadingOutlined$3);
|
|
301288
|
-
|
|
301289
300551
|
var RowContext$1 = /*#__PURE__*/React.createContext({});
|
|
301290
300552
|
|
|
301291
|
-
var _excluded$
|
|
300553
|
+
var _excluded$2z = ["prefixCls", "span", "order", "offset", "push", "pull", "className", "children", "flex", "style"];
|
|
301292
300554
|
|
|
301293
300555
|
function parseFlex$1(flex) {
|
|
301294
300556
|
if (typeof flex === 'number') {
|
|
@@ -301325,7 +300587,7 @@
|
|
|
301325
300587
|
children = props.children,
|
|
301326
300588
|
flex = props.flex,
|
|
301327
300589
|
style = props.style,
|
|
301328
|
-
others = _objectWithoutProperties$1(props, _excluded$
|
|
300590
|
+
others = _objectWithoutProperties$1(props, _excluded$2z);
|
|
301329
300591
|
|
|
301330
300592
|
var prefixCls = getPrefixCls('col', customizePrefixCls);
|
|
301331
300593
|
var sizeClassObj = {};
|
|
@@ -301558,7 +300820,7 @@
|
|
|
301558
300820
|
return flexible;
|
|
301559
300821
|
});
|
|
301560
300822
|
|
|
301561
|
-
var _excluded$
|
|
300823
|
+
var _excluded$2A = ["prefixCls", "justify", "align", "className", "style", "children", "gutter", "wrap"];
|
|
301562
300824
|
var RowAligns$1 = tuple$2('top', 'middle', 'bottom', 'stretch');
|
|
301563
300825
|
var RowJustify$1 = tuple$2('start', 'end', 'center', 'space-around', 'space-between', 'space-evenly');
|
|
301564
300826
|
var Row$1 = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
@@ -301573,7 +300835,7 @@
|
|
|
301573
300835
|
_props$gutter = props.gutter,
|
|
301574
300836
|
gutter = _props$gutter === void 0 ? 0 : _props$gutter,
|
|
301575
300837
|
wrap = props.wrap,
|
|
301576
|
-
others = _objectWithoutProperties$1(props, _excluded$
|
|
300838
|
+
others = _objectWithoutProperties$1(props, _excluded$2A);
|
|
301577
300839
|
|
|
301578
300840
|
var _React$useContext = React.useContext(ConfigContext),
|
|
301579
300841
|
getPrefixCls = _React$useContext.getPrefixCls,
|
|
@@ -303424,7 +302686,7 @@
|
|
|
303424
302686
|
return NextArrow;
|
|
303425
302687
|
}(React__default['default'].PureComponent);
|
|
303426
302688
|
|
|
303427
|
-
var _excluded$
|
|
302689
|
+
var _excluded$2B = ["animating"];
|
|
303428
302690
|
var InnerSlider = /*#__PURE__*/function (_React$Component) {
|
|
303429
302691
|
_inherits(InnerSlider, _React$Component);
|
|
303430
302692
|
|
|
@@ -303840,7 +303102,7 @@
|
|
|
303840
303102
|
if (!nextState) return;
|
|
303841
303103
|
_this.animationEndCallback = setTimeout(function () {
|
|
303842
303104
|
var animating = nextState.animating,
|
|
303843
|
-
firstBatch = _objectWithoutProperties(nextState, _excluded$
|
|
303105
|
+
firstBatch = _objectWithoutProperties(nextState, _excluded$2B);
|
|
303844
303106
|
|
|
303845
303107
|
_this.setState(firstBatch, function () {
|
|
303846
303108
|
_this.callbackTimers.push(setTimeout(function () {
|
|
@@ -305828,7 +305090,7 @@
|
|
|
305828
305090
|
Layout$1.Content = Content;
|
|
305829
305091
|
Layout$1.Sider = Sider;
|
|
305830
305092
|
|
|
305831
|
-
var _excluded$
|
|
305093
|
+
var _excluded$2C = ["children", "locked"];
|
|
305832
305094
|
var MenuContext$4 = /*#__PURE__*/React.createContext(null);
|
|
305833
305095
|
|
|
305834
305096
|
function mergeProps$3(origin, target) {
|
|
@@ -305847,7 +305109,7 @@
|
|
|
305847
305109
|
function InheritableContextProvider$3(_ref) {
|
|
305848
305110
|
var children = _ref.children,
|
|
305849
305111
|
locked = _ref.locked,
|
|
305850
|
-
restProps = _objectWithoutProperties(_ref, _excluded$
|
|
305112
|
+
restProps = _objectWithoutProperties(_ref, _excluded$2C);
|
|
305851
305113
|
|
|
305852
305114
|
var context = React.useContext(MenuContext$4);
|
|
305853
305115
|
var inheritableContext = useMemo(function () {
|
|
@@ -305891,7 +305153,7 @@
|
|
|
305891
305153
|
return ret;
|
|
305892
305154
|
}
|
|
305893
305155
|
|
|
305894
|
-
var _excluded$
|
|
305156
|
+
var _excluded$2D = ["item"];
|
|
305895
305157
|
/**
|
|
305896
305158
|
* `onClick` event return `info.item` which point to react node directly.
|
|
305897
305159
|
* We should warning this since it will not work on FC.
|
|
@@ -305899,7 +305161,7 @@
|
|
|
305899
305161
|
|
|
305900
305162
|
function warnItemProp$3(_ref) {
|
|
305901
305163
|
var item = _ref.item,
|
|
305902
|
-
restInfo = _objectWithoutProperties(_ref, _excluded$
|
|
305164
|
+
restInfo = _objectWithoutProperties(_ref, _excluded$2D);
|
|
305903
305165
|
|
|
305904
305166
|
Object.defineProperty(restInfo, 'item', {
|
|
305905
305167
|
get: function get() {
|
|
@@ -305978,7 +305240,7 @@
|
|
|
305978
305240
|
|
|
305979
305241
|
var PrivateContext$3 = /*#__PURE__*/React.createContext({});
|
|
305980
305242
|
|
|
305981
|
-
var _excluded$
|
|
305243
|
+
var _excluded$2E = ["title", "attribute", "elementRef"],
|
|
305982
305244
|
_excluded2$F = ["style", "className", "eventKey", "warnKey", "disabled", "itemIcon", "children", "role", "onMouseEnter", "onMouseLeave", "onClick", "onKeyDown", "onFocus"],
|
|
305983
305245
|
_excluded3$a = ["active"];
|
|
305984
305246
|
// We have to use class component here.
|
|
@@ -306002,7 +305264,7 @@
|
|
|
306002
305264
|
title = _this$props.title,
|
|
306003
305265
|
attribute = _this$props.attribute,
|
|
306004
305266
|
elementRef = _this$props.elementRef,
|
|
306005
|
-
restProps = _objectWithoutProperties(_this$props, _excluded$
|
|
305267
|
+
restProps = _objectWithoutProperties(_this$props, _excluded$2E);
|
|
306006
305268
|
|
|
306007
305269
|
var passedProps = omit(restProps, ['eventKey']);
|
|
306008
305270
|
warningOnce(!attribute, '`attribute` of Menu.Item is deprecated. Please pass attribute directly.');
|
|
@@ -306177,7 +305439,7 @@
|
|
|
306177
305439
|
return /*#__PURE__*/React.createElement(InternalMenuItem$3, props);
|
|
306178
305440
|
}
|
|
306179
305441
|
|
|
306180
|
-
var _excluded$
|
|
305442
|
+
var _excluded$2F = ["label", "children", "key", "type"];
|
|
306181
305443
|
function parseChildren$3(children, keyPath) {
|
|
306182
305444
|
return toArray(children).map(function (child, index) {
|
|
306183
305445
|
if ( /*#__PURE__*/React.isValidElement(child)) {
|
|
@@ -306214,7 +305476,7 @@
|
|
|
306214
305476
|
children = opt.children,
|
|
306215
305477
|
key = opt.key,
|
|
306216
305478
|
type = opt.type,
|
|
306217
|
-
restProps = _objectWithoutProperties(opt, _excluded$
|
|
305479
|
+
restProps = _objectWithoutProperties(opt, _excluded$2F);
|
|
306218
305480
|
|
|
306219
305481
|
var mergedKey = key !== null && key !== void 0 ? key : "tmp-".concat(index); // MenuItemGroup & SubMenuItem
|
|
306220
305482
|
|
|
@@ -306284,12 +305546,12 @@
|
|
|
306284
305546
|
return func ? callback : undefined;
|
|
306285
305547
|
}
|
|
306286
305548
|
|
|
306287
|
-
var _excluded$
|
|
305549
|
+
var _excluded$2G = ["className", "children"];
|
|
306288
305550
|
|
|
306289
305551
|
var InternalSubMenuList$3 = function InternalSubMenuList(_ref, ref) {
|
|
306290
305552
|
var className = _ref.className,
|
|
306291
305553
|
children = _ref.children,
|
|
306292
|
-
restProps = _objectWithoutProperties(_ref, _excluded$
|
|
305554
|
+
restProps = _objectWithoutProperties(_ref, _excluded$2G);
|
|
306293
305555
|
|
|
306294
305556
|
var _React$useContext = React.useContext(MenuContext$4),
|
|
306295
305557
|
prefixCls = _React$useContext.prefixCls,
|
|
@@ -307118,7 +306380,7 @@
|
|
|
307118
306380
|
}));
|
|
307119
306381
|
}
|
|
307120
306382
|
|
|
307121
|
-
var _excluded$
|
|
306383
|
+
var _excluded$2H = ["style", "className", "title", "eventKey", "warnKey", "disabled", "internalPopupClose", "children", "itemIcon", "expandIcon", "popupClassName", "popupOffset", "onClick", "onMouseEnter", "onMouseLeave", "onTitleClick", "onTitleMouseEnter", "onTitleMouseLeave"],
|
|
307122
306384
|
_excluded2$G = ["active"];
|
|
307123
306385
|
|
|
307124
306386
|
var InternalSubMenu$3 = function InternalSubMenu(props) {
|
|
@@ -307142,7 +306404,7 @@
|
|
|
307142
306404
|
onTitleClick = props.onTitleClick,
|
|
307143
306405
|
onTitleMouseEnter = props.onTitleMouseEnter,
|
|
307144
306406
|
onTitleMouseLeave = props.onTitleMouseLeave,
|
|
307145
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
306407
|
+
restProps = _objectWithoutProperties(props, _excluded$2H);
|
|
307146
306408
|
|
|
307147
306409
|
var domDataId = useMenuId$3(eventKey);
|
|
307148
306410
|
|
|
@@ -307813,7 +307075,7 @@
|
|
|
307813
307075
|
};
|
|
307814
307076
|
}
|
|
307815
307077
|
|
|
307816
|
-
var _excluded$
|
|
307078
|
+
var _excluded$2I = ["prefixCls", "rootClassName", "style", "className", "tabIndex", "items", "children", "direction", "id", "mode", "inlineCollapsed", "disabled", "disabledOverflow", "subMenuOpenDelay", "subMenuCloseDelay", "forceSubMenuRender", "defaultOpenKeys", "openKeys", "activeKey", "defaultActiveFirst", "selectable", "multiple", "defaultSelectedKeys", "selectedKeys", "onSelect", "onDeselect", "inlineIndent", "motion", "defaultMotions", "triggerSubMenuAction", "builtinPlacements", "itemIcon", "expandIcon", "overflowedIndicator", "overflowedIndicatorPopupClassName", "getPopupContainer", "onClick", "onOpenChange", "onKeyDown", "openAnimation", "openTransitionName", "_internalRenderMenuItem", "_internalRenderSubMenuItem"];
|
|
307817
307079
|
/**
|
|
307818
307080
|
* Menu modify after refactor:
|
|
307819
307081
|
* ## Add
|
|
@@ -307885,7 +307147,7 @@
|
|
|
307885
307147
|
openTransitionName = props.openTransitionName,
|
|
307886
307148
|
_internalRenderMenuItem = props._internalRenderMenuItem,
|
|
307887
307149
|
_internalRenderSubMenuItem = props._internalRenderSubMenuItem,
|
|
307888
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
307150
|
+
restProps = _objectWithoutProperties(props, _excluded$2I);
|
|
307889
307151
|
|
|
307890
307152
|
var childList = React.useMemo(function () {
|
|
307891
307153
|
return parseItems$3(children, items, EMPTY_LIST$7);
|
|
@@ -308230,7 +307492,7 @@
|
|
|
308230
307492
|
}, childList)))));
|
|
308231
307493
|
});
|
|
308232
307494
|
|
|
308233
|
-
var _excluded$
|
|
307495
|
+
var _excluded$2J = ["className", "title", "eventKey", "children"],
|
|
308234
307496
|
_excluded2$H = ["children"];
|
|
308235
307497
|
|
|
308236
307498
|
var InternalMenuItemGroup$3 = function InternalMenuItemGroup(_ref) {
|
|
@@ -308238,7 +307500,7 @@
|
|
|
308238
307500
|
title = _ref.title,
|
|
308239
307501
|
eventKey = _ref.eventKey,
|
|
308240
307502
|
children = _ref.children,
|
|
308241
|
-
restProps = _objectWithoutProperties(_ref, _excluded$
|
|
307503
|
+
restProps = _objectWithoutProperties(_ref, _excluded$2J);
|
|
308242
307504
|
|
|
308243
307505
|
var _React$useContext = React.useContext(MenuContext$4),
|
|
308244
307506
|
prefixCls = _React$useContext.prefixCls;
|
|
@@ -309862,7 +309124,7 @@
|
|
|
309862
309124
|
});
|
|
309863
309125
|
}
|
|
309864
309126
|
|
|
309865
|
-
var _excluded$
|
|
309127
|
+
var _excluded$2K = ["prefixCls", "direction", "options", "disabled", "defaultValue", "value", "onChange", "className", "motionName"];
|
|
309866
309128
|
|
|
309867
309129
|
function getValidTitle(option) {
|
|
309868
309130
|
if (typeof option.title !== 'undefined') {
|
|
@@ -309941,7 +309203,7 @@
|
|
|
309941
309203
|
className = _props$className === void 0 ? '' : _props$className,
|
|
309942
309204
|
_props$motionName = props.motionName,
|
|
309943
309205
|
motionName = _props$motionName === void 0 ? 'thumb-motion' : _props$motionName,
|
|
309944
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
309206
|
+
restProps = _objectWithoutProperties(props, _excluded$2K);
|
|
309945
309207
|
|
|
309946
309208
|
var containerRef = React.useRef(null);
|
|
309947
309209
|
var mergedRef = React.useMemo(function () {
|
|
@@ -311323,6 +310585,799 @@
|
|
|
311323
310585
|
useBreakpoint: useBreakpoint$4
|
|
311324
310586
|
};
|
|
311325
310587
|
|
|
310588
|
+
var rowMap = new Map([[5, [4, 1]], [4, [5, 1]], [3, [7, 1]]]);
|
|
310589
|
+
|
|
310590
|
+
function getResult(children, countPerRow) {
|
|
310591
|
+
var _rowMap$get = rowMap.get(countPerRow),
|
|
310592
|
+
_rowMap$get2 = _slicedToArray$1(_rowMap$get, 2),
|
|
310593
|
+
colSpan = _rowMap$get2[0],
|
|
310594
|
+
colSpace = _rowMap$get2[1]; // 收集(满了就重置)
|
|
310595
|
+
|
|
310596
|
+
|
|
310597
|
+
var collection = []; // 最终的结果
|
|
310598
|
+
|
|
310599
|
+
var result = [];
|
|
310600
|
+
children = Array.prototype.slice.call(children).flat();
|
|
310601
|
+
|
|
310602
|
+
function handle() {
|
|
310603
|
+
var node = /*#__PURE__*/React__default['default'].createElement(Row$1, null, collection.map(function (child, index) {
|
|
310604
|
+
if (index !== collection.length - 1) {
|
|
310605
|
+
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, {
|
|
310606
|
+
key: index
|
|
310607
|
+
}, /*#__PURE__*/React__default['default'].createElement(Col$1, {
|
|
310608
|
+
span: colSpan
|
|
310609
|
+
}, child), /*#__PURE__*/React__default['default'].createElement(Col$1, {
|
|
310610
|
+
span: colSpace
|
|
310611
|
+
}));
|
|
310612
|
+
}
|
|
310613
|
+
|
|
310614
|
+
return /*#__PURE__*/React__default['default'].createElement(Col$1, {
|
|
310615
|
+
span: colSpan,
|
|
310616
|
+
key: index
|
|
310617
|
+
}, child);
|
|
310618
|
+
}));
|
|
310619
|
+
result.push(node);
|
|
310620
|
+
collection.length = 0;
|
|
310621
|
+
}
|
|
310622
|
+
|
|
310623
|
+
for (var i = 0; i < children.length; i += 1) {
|
|
310624
|
+
var _child, _child$props;
|
|
310625
|
+
|
|
310626
|
+
var child = children[i]; // 过滤掉React.Fragment
|
|
310627
|
+
|
|
310628
|
+
while (child.type === Symbol.for('react.fragment')) {
|
|
310629
|
+
if (Array.isArray(child.props.children)) {
|
|
310630
|
+
var _children;
|
|
310631
|
+
|
|
310632
|
+
(_children = children).splice.apply(_children, [i, 1].concat(_toConsumableArray$1(child.props.children)));
|
|
310633
|
+
|
|
310634
|
+
child = children[i];
|
|
310635
|
+
} else {
|
|
310636
|
+
child = child.props.children;
|
|
310637
|
+
}
|
|
310638
|
+
}
|
|
310639
|
+
|
|
310640
|
+
if ((_child = child) === null || _child === void 0 ? void 0 : (_child$props = _child.props) === null || _child$props === void 0 ? void 0 : _child$props.responsive) {
|
|
310641
|
+
collection.push(child);
|
|
310642
|
+
|
|
310643
|
+
if (collection.length && collection.length === countPerRow) {
|
|
310644
|
+
handle();
|
|
310645
|
+
}
|
|
310646
|
+
} else if (collection.length) {
|
|
310647
|
+
handle();
|
|
310648
|
+
result.push(child);
|
|
310649
|
+
} else {
|
|
310650
|
+
result.push(child);
|
|
310651
|
+
}
|
|
310652
|
+
}
|
|
310653
|
+
|
|
310654
|
+
if (collection.length) {
|
|
310655
|
+
handle();
|
|
310656
|
+
}
|
|
310657
|
+
|
|
310658
|
+
return result;
|
|
310659
|
+
}
|
|
310660
|
+
|
|
310661
|
+
var WrapperItem = function WrapperItem(props) {
|
|
310662
|
+
var children = props.children;
|
|
310663
|
+
var targetRef = React.useRef(null);
|
|
310664
|
+
|
|
310665
|
+
var _useState = React.useState({
|
|
310666
|
+
width: '100%',
|
|
310667
|
+
height: '100%'
|
|
310668
|
+
}),
|
|
310669
|
+
_useState2 = _slicedToArray$1(_useState, 2),
|
|
310670
|
+
containerSize = _useState2[0],
|
|
310671
|
+
setContainerSize = _useState2[1]; // 每行的个数
|
|
310672
|
+
|
|
310673
|
+
|
|
310674
|
+
var _useState3 = React.useState(5),
|
|
310675
|
+
_useState4 = _slicedToArray$1(_useState3, 2),
|
|
310676
|
+
countPerRow = _useState4[0],
|
|
310677
|
+
setCountPerRow = _useState4[1];
|
|
310678
|
+
|
|
310679
|
+
var result = getResult(children, countPerRow);
|
|
310680
|
+
|
|
310681
|
+
var changeSize = function changeSize() {
|
|
310682
|
+
var _targetRef$current;
|
|
310683
|
+
|
|
310684
|
+
var maxWidth = 1824;
|
|
310685
|
+
|
|
310686
|
+
var _ref = ((_targetRef$current = targetRef.current) === null || _targetRef$current === void 0 ? void 0 : _targetRef$current.getBoundingClientRect()) || {},
|
|
310687
|
+
_ref$width = _ref.width,
|
|
310688
|
+
width = _ref$width === void 0 ? '100%' : _ref$width;
|
|
310689
|
+
|
|
310690
|
+
if (width < 990) {
|
|
310691
|
+
setCountPerRow(3);
|
|
310692
|
+
} else if (width < 1390) {
|
|
310693
|
+
setCountPerRow(4);
|
|
310694
|
+
} else {
|
|
310695
|
+
setCountPerRow(5);
|
|
310696
|
+
}
|
|
310697
|
+
|
|
310698
|
+
if (width !== '100%' && width > maxWidth) {
|
|
310699
|
+
width = maxWidth;
|
|
310700
|
+
}
|
|
310701
|
+
|
|
310702
|
+
setContainerSize({
|
|
310703
|
+
width: width - 32
|
|
310704
|
+
});
|
|
310705
|
+
};
|
|
310706
|
+
|
|
310707
|
+
var handResize = lodash.throttle(changeSize, 600);
|
|
310708
|
+
React.useEffect(function () {
|
|
310709
|
+
changeSize();
|
|
310710
|
+
window.addEventListener('resize', handResize);
|
|
310711
|
+
return function () {
|
|
310712
|
+
window.removeEventListener('resize', handResize);
|
|
310713
|
+
};
|
|
310714
|
+
}, []);
|
|
310715
|
+
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
310716
|
+
className: "lm_container_wrapper",
|
|
310717
|
+
ref: targetRef
|
|
310718
|
+
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
310719
|
+
style: _objectSpread(_objectSpread({}, containerSize), {}, {
|
|
310720
|
+
margin: '0 auto'
|
|
310721
|
+
})
|
|
310722
|
+
}, result.map(function (child, index) {
|
|
310723
|
+
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, {
|
|
310724
|
+
key: index
|
|
310725
|
+
}, child);
|
|
310726
|
+
}))));
|
|
310727
|
+
};
|
|
310728
|
+
|
|
310729
|
+
var _excluded$2L = ["prefixCls", "className", "size", "disabled", "form", "colon", "labelAlign", "labelWrap", "labelCol", "wrapperCol", "hideRequiredMark", "layout", "scrollToFirstError", "requiredMark", "onFinishFailed", "name", "responsive", "children"];
|
|
310730
|
+
|
|
310731
|
+
var InternalForm$2 = function InternalForm(props, ref) {
|
|
310732
|
+
var _classNames;
|
|
310733
|
+
|
|
310734
|
+
var contextSize = React.useContext(SizeContext$1);
|
|
310735
|
+
var contextDisabled = React.useContext(DisabledContext$1);
|
|
310736
|
+
|
|
310737
|
+
var _React$useContext = React.useContext(ConfigContext$1),
|
|
310738
|
+
getPrefixCls = _React$useContext.getPrefixCls,
|
|
310739
|
+
direction = _React$useContext.direction,
|
|
310740
|
+
contextForm = _React$useContext.form;
|
|
310741
|
+
|
|
310742
|
+
var customizePrefixCls = props.prefixCls,
|
|
310743
|
+
_props$className = props.className,
|
|
310744
|
+
className = _props$className === void 0 ? '' : _props$className,
|
|
310745
|
+
_props$size = props.size,
|
|
310746
|
+
size = _props$size === void 0 ? contextSize : _props$size,
|
|
310747
|
+
_props$disabled = props.disabled,
|
|
310748
|
+
disabled = _props$disabled === void 0 ? contextDisabled : _props$disabled,
|
|
310749
|
+
form = props.form,
|
|
310750
|
+
colon = props.colon,
|
|
310751
|
+
labelAlign = props.labelAlign,
|
|
310752
|
+
labelWrap = props.labelWrap,
|
|
310753
|
+
labelCol = props.labelCol,
|
|
310754
|
+
wrapperCol = props.wrapperCol,
|
|
310755
|
+
hideRequiredMark = props.hideRequiredMark,
|
|
310756
|
+
_props$layout = props.layout,
|
|
310757
|
+
layout = _props$layout === void 0 ? 'horizontal' : _props$layout,
|
|
310758
|
+
scrollToFirstError = props.scrollToFirstError,
|
|
310759
|
+
requiredMark = props.requiredMark,
|
|
310760
|
+
onFinishFailed = props.onFinishFailed,
|
|
310761
|
+
name = props.name,
|
|
310762
|
+
responsive = props.responsive,
|
|
310763
|
+
customizeChildren = props.children,
|
|
310764
|
+
restFormProps = _objectWithoutProperties$1(props, _excluded$2L);
|
|
310765
|
+
|
|
310766
|
+
var children = customizeChildren;
|
|
310767
|
+
var mergedRequiredMark = React.useMemo(function () {
|
|
310768
|
+
if (requiredMark !== undefined) {
|
|
310769
|
+
return requiredMark;
|
|
310770
|
+
}
|
|
310771
|
+
|
|
310772
|
+
if (contextForm && contextForm.requiredMark !== undefined) {
|
|
310773
|
+
return contextForm.requiredMark;
|
|
310774
|
+
}
|
|
310775
|
+
|
|
310776
|
+
if (hideRequiredMark) {
|
|
310777
|
+
return false;
|
|
310778
|
+
}
|
|
310779
|
+
|
|
310780
|
+
return true;
|
|
310781
|
+
}, [hideRequiredMark, requiredMark, contextForm]);
|
|
310782
|
+
var mergedColon = colon !== null && colon !== void 0 ? colon : contextForm === null || contextForm === void 0 ? void 0 : contextForm.colon;
|
|
310783
|
+
var prefixCls = getPrefixCls('form', customizePrefixCls);
|
|
310784
|
+
var formClassName = classnames('lm_form', prefixCls, (_classNames = {}, _defineProperty$1(_classNames, "".concat(prefixCls, "-").concat(layout), true), _defineProperty$1(_classNames, "".concat(prefixCls, "-hide-required-mark"), mergedRequiredMark === false), _defineProperty$1(_classNames, "".concat(prefixCls, "-rtl"), direction === 'rtl'), _defineProperty$1(_classNames, "".concat(prefixCls, "-").concat(size), size), _classNames), className);
|
|
310785
|
+
|
|
310786
|
+
var _useForm = useForm$2(form),
|
|
310787
|
+
_useForm2 = _slicedToArray$1(_useForm, 1),
|
|
310788
|
+
wrapForm = _useForm2[0];
|
|
310789
|
+
|
|
310790
|
+
var __INTERNAL__ = wrapForm.__INTERNAL__;
|
|
310791
|
+
__INTERNAL__.name = name;
|
|
310792
|
+
var formContextValue = React.useMemo(function () {
|
|
310793
|
+
return {
|
|
310794
|
+
name: name,
|
|
310795
|
+
labelAlign: labelAlign,
|
|
310796
|
+
labelCol: labelCol,
|
|
310797
|
+
labelWrap: labelWrap,
|
|
310798
|
+
wrapperCol: wrapperCol,
|
|
310799
|
+
vertical: layout === 'vertical',
|
|
310800
|
+
colon: mergedColon,
|
|
310801
|
+
requiredMark: mergedRequiredMark,
|
|
310802
|
+
itemRef: __INTERNAL__.itemRef,
|
|
310803
|
+
form: wrapForm
|
|
310804
|
+
};
|
|
310805
|
+
}, [name, labelAlign, labelCol, wrapperCol, layout, mergedColon, mergedRequiredMark, wrapForm]);
|
|
310806
|
+
React.useImperativeHandle(ref, function () {
|
|
310807
|
+
return wrapForm;
|
|
310808
|
+
});
|
|
310809
|
+
|
|
310810
|
+
var onInternalFinishFailed = function onInternalFinishFailed(errorInfo) {
|
|
310811
|
+
onFinishFailed === null || onFinishFailed === void 0 ? void 0 : onFinishFailed(errorInfo);
|
|
310812
|
+
var defaultScrollToFirstError = {
|
|
310813
|
+
block: 'nearest'
|
|
310814
|
+
};
|
|
310815
|
+
|
|
310816
|
+
if (scrollToFirstError && errorInfo.errorFields.length) {
|
|
310817
|
+
if (_typeof$1(scrollToFirstError) === 'object') {
|
|
310818
|
+
defaultScrollToFirstError = scrollToFirstError;
|
|
310819
|
+
}
|
|
310820
|
+
|
|
310821
|
+
wrapForm.scrollToField(errorInfo.errorFields[0].name, defaultScrollToFirstError);
|
|
310822
|
+
}
|
|
310823
|
+
};
|
|
310824
|
+
|
|
310825
|
+
if (responsive) {
|
|
310826
|
+
children = /*#__PURE__*/React.createElement(WrapperItem, {
|
|
310827
|
+
children: children
|
|
310828
|
+
});
|
|
310829
|
+
}
|
|
310830
|
+
|
|
310831
|
+
var formNode = /*#__PURE__*/React.createElement(DisabledContextProvider$1, {
|
|
310832
|
+
disabled: disabled
|
|
310833
|
+
}, /*#__PURE__*/React.createElement(SizeContextProvider$1, {
|
|
310834
|
+
size: size
|
|
310835
|
+
}, /*#__PURE__*/React.createElement(FormContext$2.Provider, {
|
|
310836
|
+
value: formContextValue
|
|
310837
|
+
}, /*#__PURE__*/React.createElement(RefForm, _objectSpread(_objectSpread({
|
|
310838
|
+
id: name
|
|
310839
|
+
}, restFormProps), {}, {
|
|
310840
|
+
children: children,
|
|
310841
|
+
name: name,
|
|
310842
|
+
onFinishFailed: onInternalFinishFailed,
|
|
310843
|
+
form: wrapForm,
|
|
310844
|
+
className: formClassName
|
|
310845
|
+
})))));
|
|
310846
|
+
|
|
310847
|
+
if (responsive) {
|
|
310848
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
310849
|
+
className: "lm_form_responsive_box"
|
|
310850
|
+
}, formNode);
|
|
310851
|
+
}
|
|
310852
|
+
|
|
310853
|
+
return formNode;
|
|
310854
|
+
};
|
|
310855
|
+
|
|
310856
|
+
var Form$3 = /*#__PURE__*/React.forwardRef(InternalForm$2);
|
|
310857
|
+
|
|
310858
|
+
var createForOfIteratorHelper = createCommonjsModule(function (module) {
|
|
310859
|
+
function _createForOfIteratorHelper(o, allowArrayLike) {
|
|
310860
|
+
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
|
310861
|
+
|
|
310862
|
+
if (!it) {
|
|
310863
|
+
if (Array.isArray(o) || (it = unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
|
|
310864
|
+
if (it) o = it;
|
|
310865
|
+
var i = 0;
|
|
310866
|
+
|
|
310867
|
+
var F = function F() {};
|
|
310868
|
+
|
|
310869
|
+
return {
|
|
310870
|
+
s: F,
|
|
310871
|
+
n: function n() {
|
|
310872
|
+
if (i >= o.length) return {
|
|
310873
|
+
done: true
|
|
310874
|
+
};
|
|
310875
|
+
return {
|
|
310876
|
+
done: false,
|
|
310877
|
+
value: o[i++]
|
|
310878
|
+
};
|
|
310879
|
+
},
|
|
310880
|
+
e: function e(_e) {
|
|
310881
|
+
throw _e;
|
|
310882
|
+
},
|
|
310883
|
+
f: F
|
|
310884
|
+
};
|
|
310885
|
+
}
|
|
310886
|
+
|
|
310887
|
+
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
310888
|
+
}
|
|
310889
|
+
|
|
310890
|
+
var normalCompletion = true,
|
|
310891
|
+
didErr = false,
|
|
310892
|
+
err;
|
|
310893
|
+
return {
|
|
310894
|
+
s: function s() {
|
|
310895
|
+
it = it.call(o);
|
|
310896
|
+
},
|
|
310897
|
+
n: function n() {
|
|
310898
|
+
var step = it.next();
|
|
310899
|
+
normalCompletion = step.done;
|
|
310900
|
+
return step;
|
|
310901
|
+
},
|
|
310902
|
+
e: function e(_e2) {
|
|
310903
|
+
didErr = true;
|
|
310904
|
+
err = _e2;
|
|
310905
|
+
},
|
|
310906
|
+
f: function f() {
|
|
310907
|
+
try {
|
|
310908
|
+
if (!normalCompletion && it["return"] != null) it["return"]();
|
|
310909
|
+
} finally {
|
|
310910
|
+
if (didErr) throw err;
|
|
310911
|
+
}
|
|
310912
|
+
}
|
|
310913
|
+
};
|
|
310914
|
+
}
|
|
310915
|
+
|
|
310916
|
+
module.exports = _createForOfIteratorHelper, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
310917
|
+
});
|
|
310918
|
+
|
|
310919
|
+
var _createForOfIteratorHelper$1 = /*@__PURE__*/getDefaultExportFromCjs(createForOfIteratorHelper);
|
|
310920
|
+
|
|
310921
|
+
var ref$1 = createCommonjsModule(function (module, exports) {
|
|
310922
|
+
|
|
310923
|
+
|
|
310924
|
+
|
|
310925
|
+
Object.defineProperty(exports, "__esModule", {
|
|
310926
|
+
value: true
|
|
310927
|
+
});
|
|
310928
|
+
exports.composeRef = composeRef;
|
|
310929
|
+
exports.fillRef = fillRef;
|
|
310930
|
+
exports.supportRef = supportRef;
|
|
310931
|
+
exports.useComposeRef = useComposeRef;
|
|
310932
|
+
|
|
310933
|
+
var _typeof2 = interopRequireDefault(_typeof_1);
|
|
310934
|
+
|
|
310935
|
+
|
|
310936
|
+
|
|
310937
|
+
var _useMemo = interopRequireDefault(useMemo_1);
|
|
310938
|
+
|
|
310939
|
+
function fillRef(ref, node) {
|
|
310940
|
+
if (typeof ref === 'function') {
|
|
310941
|
+
ref(node);
|
|
310942
|
+
} else if ((0, _typeof2.default)(ref) === 'object' && ref && 'current' in ref) {
|
|
310943
|
+
ref.current = node;
|
|
310944
|
+
}
|
|
310945
|
+
}
|
|
310946
|
+
/**
|
|
310947
|
+
* Merge refs into one ref function to support ref passing.
|
|
310948
|
+
*/
|
|
310949
|
+
|
|
310950
|
+
|
|
310951
|
+
function composeRef() {
|
|
310952
|
+
for (var _len = arguments.length, refs = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
310953
|
+
refs[_key] = arguments[_key];
|
|
310954
|
+
}
|
|
310955
|
+
|
|
310956
|
+
var refList = refs.filter(function (ref) {
|
|
310957
|
+
return ref;
|
|
310958
|
+
});
|
|
310959
|
+
|
|
310960
|
+
if (refList.length <= 1) {
|
|
310961
|
+
return refList[0];
|
|
310962
|
+
}
|
|
310963
|
+
|
|
310964
|
+
return function (node) {
|
|
310965
|
+
refs.forEach(function (ref) {
|
|
310966
|
+
fillRef(ref, node);
|
|
310967
|
+
});
|
|
310968
|
+
};
|
|
310969
|
+
}
|
|
310970
|
+
|
|
310971
|
+
function useComposeRef() {
|
|
310972
|
+
for (var _len2 = arguments.length, refs = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
310973
|
+
refs[_key2] = arguments[_key2];
|
|
310974
|
+
}
|
|
310975
|
+
|
|
310976
|
+
return (0, _useMemo.default)(function () {
|
|
310977
|
+
return composeRef.apply(void 0, refs);
|
|
310978
|
+
}, refs, function (prev, next) {
|
|
310979
|
+
return prev.length === next.length && prev.every(function (ref, i) {
|
|
310980
|
+
return ref === next[i];
|
|
310981
|
+
});
|
|
310982
|
+
});
|
|
310983
|
+
}
|
|
310984
|
+
|
|
310985
|
+
function supportRef(nodeOrComponent) {
|
|
310986
|
+
var _type$prototype, _nodeOrComponent$prot;
|
|
310987
|
+
|
|
310988
|
+
var type = (0, reactIs.isMemo)(nodeOrComponent) ? nodeOrComponent.type.type : nodeOrComponent.type; // Function component node
|
|
310989
|
+
|
|
310990
|
+
if (typeof type === 'function' && !((_type$prototype = type.prototype) === null || _type$prototype === void 0 ? void 0 : _type$prototype.render)) {
|
|
310991
|
+
return false;
|
|
310992
|
+
} // Class component
|
|
310993
|
+
|
|
310994
|
+
|
|
310995
|
+
if (typeof nodeOrComponent === 'function' && !((_nodeOrComponent$prot = nodeOrComponent.prototype) === null || _nodeOrComponent$prot === void 0 ? void 0 : _nodeOrComponent$prot.render)) {
|
|
310996
|
+
return false;
|
|
310997
|
+
}
|
|
310998
|
+
|
|
310999
|
+
return true;
|
|
311000
|
+
}
|
|
311001
|
+
/* eslint-enable */
|
|
311002
|
+
});
|
|
311003
|
+
|
|
311004
|
+
var useFormItemStatus$1 = function useFormItemStatus() {
|
|
311005
|
+
var _useContext = React.useContext(FormItemInputContext$1),
|
|
311006
|
+
status = _useContext.status;
|
|
311007
|
+
|
|
311008
|
+
warning$6(status !== undefined, 'Form.Item', "Form.Item.useStatus should be used under Form.Item component. For more information: ".concat(window.location.protocol, "//").concat(window.location.host, "/components/form-cn/#Form.Item.useStatus"));
|
|
311009
|
+
return {
|
|
311010
|
+
status: status
|
|
311011
|
+
};
|
|
311012
|
+
};
|
|
311013
|
+
|
|
311014
|
+
var raf_1 = createCommonjsModule(function (module, exports) {
|
|
311015
|
+
|
|
311016
|
+
Object.defineProperty(exports, "__esModule", {
|
|
311017
|
+
value: true
|
|
311018
|
+
});
|
|
311019
|
+
exports.default = wrapperRaf;
|
|
311020
|
+
|
|
311021
|
+
var raf = function raf(callback) {
|
|
311022
|
+
return +setTimeout(callback, 16);
|
|
311023
|
+
};
|
|
311024
|
+
|
|
311025
|
+
var caf = function caf(num) {
|
|
311026
|
+
return clearTimeout(num);
|
|
311027
|
+
};
|
|
311028
|
+
|
|
311029
|
+
if (typeof window !== 'undefined' && 'requestAnimationFrame' in window) {
|
|
311030
|
+
raf = function raf(callback) {
|
|
311031
|
+
return window.requestAnimationFrame(callback);
|
|
311032
|
+
};
|
|
311033
|
+
|
|
311034
|
+
caf = function caf(handle) {
|
|
311035
|
+
return window.cancelAnimationFrame(handle);
|
|
311036
|
+
};
|
|
311037
|
+
}
|
|
311038
|
+
|
|
311039
|
+
var rafUUID = 0;
|
|
311040
|
+
var rafIds = new Map();
|
|
311041
|
+
|
|
311042
|
+
function cleanup(id) {
|
|
311043
|
+
rafIds.delete(id);
|
|
311044
|
+
}
|
|
311045
|
+
|
|
311046
|
+
function wrapperRaf(callback) {
|
|
311047
|
+
var times = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
|
|
311048
|
+
rafUUID += 1;
|
|
311049
|
+
var id = rafUUID;
|
|
311050
|
+
|
|
311051
|
+
function callRef(leftTimes) {
|
|
311052
|
+
if (leftTimes === 0) {
|
|
311053
|
+
// Clean up
|
|
311054
|
+
cleanup(id); // Trigger
|
|
311055
|
+
|
|
311056
|
+
callback();
|
|
311057
|
+
} else {
|
|
311058
|
+
// Next raf
|
|
311059
|
+
var realId = raf(function () {
|
|
311060
|
+
callRef(leftTimes - 1);
|
|
311061
|
+
}); // Bind real raf id
|
|
311062
|
+
|
|
311063
|
+
rafIds.set(id, realId);
|
|
311064
|
+
}
|
|
311065
|
+
}
|
|
311066
|
+
|
|
311067
|
+
callRef(times);
|
|
311068
|
+
return id;
|
|
311069
|
+
}
|
|
311070
|
+
|
|
311071
|
+
wrapperRaf.cancel = function (id) {
|
|
311072
|
+
var realId = rafIds.get(id);
|
|
311073
|
+
cleanup(realId);
|
|
311074
|
+
return caf(realId);
|
|
311075
|
+
};
|
|
311076
|
+
});
|
|
311077
|
+
|
|
311078
|
+
var raf$1 = /*@__PURE__*/getDefaultExportFromCjs(raf_1);
|
|
311079
|
+
|
|
311080
|
+
function useFrameState$1(defaultValue) {
|
|
311081
|
+
var _React$useState = React.useState(defaultValue),
|
|
311082
|
+
_React$useState2 = _slicedToArray$1(_React$useState, 2),
|
|
311083
|
+
value = _React$useState2[0],
|
|
311084
|
+
setValue = _React$useState2[1];
|
|
311085
|
+
|
|
311086
|
+
var frameRef = React.useRef(null);
|
|
311087
|
+
var batchRef = React.useRef([]);
|
|
311088
|
+
var destroyRef = React.useRef(false);
|
|
311089
|
+
React.useEffect(function () {
|
|
311090
|
+
destroyRef.current = false;
|
|
311091
|
+
return function () {
|
|
311092
|
+
destroyRef.current = true;
|
|
311093
|
+
raf$1.cancel(frameRef.current);
|
|
311094
|
+
frameRef.current = null;
|
|
311095
|
+
};
|
|
311096
|
+
}, []);
|
|
311097
|
+
|
|
311098
|
+
function setFrameValue(updater) {
|
|
311099
|
+
if (destroyRef.current) {
|
|
311100
|
+
return;
|
|
311101
|
+
}
|
|
311102
|
+
|
|
311103
|
+
if (frameRef.current === null) {
|
|
311104
|
+
batchRef.current = [];
|
|
311105
|
+
frameRef.current = raf$1(function () {
|
|
311106
|
+
frameRef.current = null;
|
|
311107
|
+
setValue(function (prevValue) {
|
|
311108
|
+
var current = prevValue;
|
|
311109
|
+
batchRef.current.forEach(function (func) {
|
|
311110
|
+
current = func(current);
|
|
311111
|
+
});
|
|
311112
|
+
return current;
|
|
311113
|
+
});
|
|
311114
|
+
});
|
|
311115
|
+
}
|
|
311116
|
+
|
|
311117
|
+
batchRef.current.push(updater);
|
|
311118
|
+
}
|
|
311119
|
+
|
|
311120
|
+
return [value, setFrameValue];
|
|
311121
|
+
}
|
|
311122
|
+
|
|
311123
|
+
function useItemRef$1() {
|
|
311124
|
+
var _React$useContext = React.useContext(FormContext$2),
|
|
311125
|
+
itemRef = _React$useContext.itemRef;
|
|
311126
|
+
|
|
311127
|
+
var cacheRef = React.useRef({});
|
|
311128
|
+
|
|
311129
|
+
function getRef(name, children) {
|
|
311130
|
+
var childrenRef = children && _typeof$1(children) === 'object' && children.ref;
|
|
311131
|
+
var nameStr = name.join('_');
|
|
311132
|
+
|
|
311133
|
+
if (cacheRef.current.name !== nameStr || cacheRef.current.originRef !== childrenRef) {
|
|
311134
|
+
cacheRef.current.name = nameStr;
|
|
311135
|
+
cacheRef.current.originRef = childrenRef;
|
|
311136
|
+
cacheRef.current.ref = ref$1.composeRef(itemRef(name), childrenRef);
|
|
311137
|
+
}
|
|
311138
|
+
|
|
311139
|
+
return cacheRef.current.ref;
|
|
311140
|
+
}
|
|
311141
|
+
|
|
311142
|
+
return getRef;
|
|
311143
|
+
}
|
|
311144
|
+
|
|
311145
|
+
var CheckCircleFilled_1 = createCommonjsModule(function (module, exports) {
|
|
311146
|
+
// This icon file is generated automatically.
|
|
311147
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
311148
|
+
var CheckCircleFilled = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z" } }] }, "name": "check-circle", "theme": "filled" };
|
|
311149
|
+
exports.default = CheckCircleFilled;
|
|
311150
|
+
});
|
|
311151
|
+
|
|
311152
|
+
var CheckCircleFilled_1$1 = createCommonjsModule(function (module, exports) {
|
|
311153
|
+
|
|
311154
|
+
|
|
311155
|
+
|
|
311156
|
+
|
|
311157
|
+
|
|
311158
|
+
Object.defineProperty(exports, "__esModule", {
|
|
311159
|
+
value: true
|
|
311160
|
+
});
|
|
311161
|
+
exports.default = void 0;
|
|
311162
|
+
|
|
311163
|
+
var _objectSpread2 = interopRequireDefault(objectSpread2);
|
|
311164
|
+
|
|
311165
|
+
var React = interopRequireWildcard(React__default['default']);
|
|
311166
|
+
|
|
311167
|
+
var _CheckCircleFilled = interopRequireDefault(CheckCircleFilled_1);
|
|
311168
|
+
|
|
311169
|
+
var _AntdIcon = interopRequireDefault(AntdIcon);
|
|
311170
|
+
|
|
311171
|
+
// GENERATE BY ./scripts/generate.ts
|
|
311172
|
+
// DON NOT EDIT IT MANUALLY
|
|
311173
|
+
var CheckCircleFilled = function CheckCircleFilled(props, ref) {
|
|
311174
|
+
return /*#__PURE__*/React.createElement(_AntdIcon.default, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, props), {}, {
|
|
311175
|
+
ref: ref,
|
|
311176
|
+
icon: _CheckCircleFilled.default
|
|
311177
|
+
}));
|
|
311178
|
+
};
|
|
311179
|
+
|
|
311180
|
+
CheckCircleFilled.displayName = 'CheckCircleFilled';
|
|
311181
|
+
|
|
311182
|
+
var _default = /*#__PURE__*/React.forwardRef(CheckCircleFilled);
|
|
311183
|
+
|
|
311184
|
+
exports.default = _default;
|
|
311185
|
+
});
|
|
311186
|
+
|
|
311187
|
+
var CheckCircleFilled$3 = createCommonjsModule(function (module, exports) {
|
|
311188
|
+
Object.defineProperty(exports, "__esModule", {
|
|
311189
|
+
value: true
|
|
311190
|
+
});
|
|
311191
|
+
exports.default = void 0;
|
|
311192
|
+
|
|
311193
|
+
var _CheckCircleFilled = _interopRequireDefault(CheckCircleFilled_1$1);
|
|
311194
|
+
|
|
311195
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
|
|
311196
|
+
|
|
311197
|
+
var _default = _CheckCircleFilled;
|
|
311198
|
+
exports.default = _default;
|
|
311199
|
+
module.exports = _default;
|
|
311200
|
+
});
|
|
311201
|
+
|
|
311202
|
+
var CheckCircleFilled$4 = /*@__PURE__*/getDefaultExportFromCjs(CheckCircleFilled$3);
|
|
311203
|
+
|
|
311204
|
+
var CloseCircleFilled_1 = createCommonjsModule(function (module, exports) {
|
|
311205
|
+
// This icon file is generated automatically.
|
|
311206
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
311207
|
+
var CloseCircleFilled = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm165.4 618.2l-66-.3L512 563.4l-99.3 118.4-66.1.3c-4.4 0-8-3.5-8-8 0-1.9.7-3.7 1.9-5.2l130.1-155L340.5 359a8.32 8.32 0 01-1.9-5.2c0-4.4 3.6-8 8-8l66.1.3L512 464.6l99.3-118.4 66-.3c4.4 0 8 3.5 8 8 0 1.9-.7 3.7-1.9 5.2L553.5 514l130 155c1.2 1.5 1.9 3.3 1.9 5.2 0 4.4-3.6 8-8 8z" } }] }, "name": "close-circle", "theme": "filled" };
|
|
311208
|
+
exports.default = CloseCircleFilled;
|
|
311209
|
+
});
|
|
311210
|
+
|
|
311211
|
+
var CloseCircleFilled_1$1 = createCommonjsModule(function (module, exports) {
|
|
311212
|
+
|
|
311213
|
+
|
|
311214
|
+
|
|
311215
|
+
|
|
311216
|
+
|
|
311217
|
+
Object.defineProperty(exports, "__esModule", {
|
|
311218
|
+
value: true
|
|
311219
|
+
});
|
|
311220
|
+
exports.default = void 0;
|
|
311221
|
+
|
|
311222
|
+
var _objectSpread2 = interopRequireDefault(objectSpread2);
|
|
311223
|
+
|
|
311224
|
+
var React = interopRequireWildcard(React__default['default']);
|
|
311225
|
+
|
|
311226
|
+
var _CloseCircleFilled = interopRequireDefault(CloseCircleFilled_1);
|
|
311227
|
+
|
|
311228
|
+
var _AntdIcon = interopRequireDefault(AntdIcon);
|
|
311229
|
+
|
|
311230
|
+
// GENERATE BY ./scripts/generate.ts
|
|
311231
|
+
// DON NOT EDIT IT MANUALLY
|
|
311232
|
+
var CloseCircleFilled = function CloseCircleFilled(props, ref) {
|
|
311233
|
+
return /*#__PURE__*/React.createElement(_AntdIcon.default, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, props), {}, {
|
|
311234
|
+
ref: ref,
|
|
311235
|
+
icon: _CloseCircleFilled.default
|
|
311236
|
+
}));
|
|
311237
|
+
};
|
|
311238
|
+
|
|
311239
|
+
CloseCircleFilled.displayName = 'CloseCircleFilled';
|
|
311240
|
+
|
|
311241
|
+
var _default = /*#__PURE__*/React.forwardRef(CloseCircleFilled);
|
|
311242
|
+
|
|
311243
|
+
exports.default = _default;
|
|
311244
|
+
});
|
|
311245
|
+
|
|
311246
|
+
var CloseCircleFilled$3 = createCommonjsModule(function (module, exports) {
|
|
311247
|
+
Object.defineProperty(exports, "__esModule", {
|
|
311248
|
+
value: true
|
|
311249
|
+
});
|
|
311250
|
+
exports.default = void 0;
|
|
311251
|
+
|
|
311252
|
+
var _CloseCircleFilled = _interopRequireDefault(CloseCircleFilled_1$1);
|
|
311253
|
+
|
|
311254
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
|
|
311255
|
+
|
|
311256
|
+
var _default = _CloseCircleFilled;
|
|
311257
|
+
exports.default = _default;
|
|
311258
|
+
module.exports = _default;
|
|
311259
|
+
});
|
|
311260
|
+
|
|
311261
|
+
var CloseCircleFilled$4 = /*@__PURE__*/getDefaultExportFromCjs(CloseCircleFilled$3);
|
|
311262
|
+
|
|
311263
|
+
var ExclamationCircleFilled_1 = createCommonjsModule(function (module, exports) {
|
|
311264
|
+
// This icon file is generated automatically.
|
|
311265
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
311266
|
+
var ExclamationCircleFilled = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z" } }] }, "name": "exclamation-circle", "theme": "filled" };
|
|
311267
|
+
exports.default = ExclamationCircleFilled;
|
|
311268
|
+
});
|
|
311269
|
+
|
|
311270
|
+
var ExclamationCircleFilled_1$1 = createCommonjsModule(function (module, exports) {
|
|
311271
|
+
|
|
311272
|
+
|
|
311273
|
+
|
|
311274
|
+
|
|
311275
|
+
|
|
311276
|
+
Object.defineProperty(exports, "__esModule", {
|
|
311277
|
+
value: true
|
|
311278
|
+
});
|
|
311279
|
+
exports.default = void 0;
|
|
311280
|
+
|
|
311281
|
+
var _objectSpread2 = interopRequireDefault(objectSpread2);
|
|
311282
|
+
|
|
311283
|
+
var React = interopRequireWildcard(React__default['default']);
|
|
311284
|
+
|
|
311285
|
+
var _ExclamationCircleFilled = interopRequireDefault(ExclamationCircleFilled_1);
|
|
311286
|
+
|
|
311287
|
+
var _AntdIcon = interopRequireDefault(AntdIcon);
|
|
311288
|
+
|
|
311289
|
+
// GENERATE BY ./scripts/generate.ts
|
|
311290
|
+
// DON NOT EDIT IT MANUALLY
|
|
311291
|
+
var ExclamationCircleFilled = function ExclamationCircleFilled(props, ref) {
|
|
311292
|
+
return /*#__PURE__*/React.createElement(_AntdIcon.default, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, props), {}, {
|
|
311293
|
+
ref: ref,
|
|
311294
|
+
icon: _ExclamationCircleFilled.default
|
|
311295
|
+
}));
|
|
311296
|
+
};
|
|
311297
|
+
|
|
311298
|
+
ExclamationCircleFilled.displayName = 'ExclamationCircleFilled';
|
|
311299
|
+
|
|
311300
|
+
var _default = /*#__PURE__*/React.forwardRef(ExclamationCircleFilled);
|
|
311301
|
+
|
|
311302
|
+
exports.default = _default;
|
|
311303
|
+
});
|
|
311304
|
+
|
|
311305
|
+
var ExclamationCircleFilled$3 = createCommonjsModule(function (module, exports) {
|
|
311306
|
+
Object.defineProperty(exports, "__esModule", {
|
|
311307
|
+
value: true
|
|
311308
|
+
});
|
|
311309
|
+
exports.default = void 0;
|
|
311310
|
+
|
|
311311
|
+
var _ExclamationCircleFilled = _interopRequireDefault(ExclamationCircleFilled_1$1);
|
|
311312
|
+
|
|
311313
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
|
|
311314
|
+
|
|
311315
|
+
var _default = _ExclamationCircleFilled;
|
|
311316
|
+
exports.default = _default;
|
|
311317
|
+
module.exports = _default;
|
|
311318
|
+
});
|
|
311319
|
+
|
|
311320
|
+
var ExclamationCircleFilled$4 = /*@__PURE__*/getDefaultExportFromCjs(ExclamationCircleFilled$3);
|
|
311321
|
+
|
|
311322
|
+
var LoadingOutlined_1 = createCommonjsModule(function (module, exports) {
|
|
311323
|
+
// This icon file is generated automatically.
|
|
311324
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
311325
|
+
var LoadingOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "0 0 1024 1024", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z" } }] }, "name": "loading", "theme": "outlined" };
|
|
311326
|
+
exports.default = LoadingOutlined;
|
|
311327
|
+
});
|
|
311328
|
+
|
|
311329
|
+
var LoadingOutlined_1$1 = createCommonjsModule(function (module, exports) {
|
|
311330
|
+
|
|
311331
|
+
|
|
311332
|
+
|
|
311333
|
+
|
|
311334
|
+
|
|
311335
|
+
Object.defineProperty(exports, "__esModule", {
|
|
311336
|
+
value: true
|
|
311337
|
+
});
|
|
311338
|
+
exports.default = void 0;
|
|
311339
|
+
|
|
311340
|
+
var _objectSpread2 = interopRequireDefault(objectSpread2);
|
|
311341
|
+
|
|
311342
|
+
var React = interopRequireWildcard(React__default['default']);
|
|
311343
|
+
|
|
311344
|
+
var _LoadingOutlined = interopRequireDefault(LoadingOutlined_1);
|
|
311345
|
+
|
|
311346
|
+
var _AntdIcon = interopRequireDefault(AntdIcon);
|
|
311347
|
+
|
|
311348
|
+
// GENERATE BY ./scripts/generate.ts
|
|
311349
|
+
// DON NOT EDIT IT MANUALLY
|
|
311350
|
+
var LoadingOutlined = function LoadingOutlined(props, ref) {
|
|
311351
|
+
return /*#__PURE__*/React.createElement(_AntdIcon.default, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, props), {}, {
|
|
311352
|
+
ref: ref,
|
|
311353
|
+
icon: _LoadingOutlined.default
|
|
311354
|
+
}));
|
|
311355
|
+
};
|
|
311356
|
+
|
|
311357
|
+
LoadingOutlined.displayName = 'LoadingOutlined';
|
|
311358
|
+
|
|
311359
|
+
var _default = /*#__PURE__*/React.forwardRef(LoadingOutlined);
|
|
311360
|
+
|
|
311361
|
+
exports.default = _default;
|
|
311362
|
+
});
|
|
311363
|
+
|
|
311364
|
+
var LoadingOutlined$3 = createCommonjsModule(function (module, exports) {
|
|
311365
|
+
Object.defineProperty(exports, "__esModule", {
|
|
311366
|
+
value: true
|
|
311367
|
+
});
|
|
311368
|
+
exports.default = void 0;
|
|
311369
|
+
|
|
311370
|
+
var _LoadingOutlined = _interopRequireDefault(LoadingOutlined_1$1);
|
|
311371
|
+
|
|
311372
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
|
|
311373
|
+
|
|
311374
|
+
var _default = _LoadingOutlined;
|
|
311375
|
+
exports.default = _default;
|
|
311376
|
+
module.exports = _default;
|
|
311377
|
+
});
|
|
311378
|
+
|
|
311379
|
+
var LoadingOutlined$4 = /*@__PURE__*/getDefaultExportFromCjs(LoadingOutlined$3);
|
|
311380
|
+
|
|
311326
311381
|
var QuestionCircleOutlined_1 = createCommonjsModule(function (module, exports) {
|
|
311327
311382
|
// This icon file is generated automatically.
|
|
311328
311383
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -311382,7 +311437,7 @@
|
|
|
311382
311437
|
|
|
311383
311438
|
var QuestionCircleOutlined$4 = /*@__PURE__*/getDefaultExportFromCjs(QuestionCircleOutlined$3);
|
|
311384
311439
|
|
|
311385
|
-
var _excluded$
|
|
311440
|
+
var _excluded$2M = ["icon"];
|
|
311386
311441
|
|
|
311387
311442
|
function toTooltipProps$1(tooltip) {
|
|
311388
311443
|
if (!tooltip) {
|
|
@@ -311443,7 +311498,7 @@
|
|
|
311443
311498
|
if (tooltipProps) {
|
|
311444
311499
|
var _tooltipProps$icon = tooltipProps.icon,
|
|
311445
311500
|
icon = _tooltipProps$icon === void 0 ? /*#__PURE__*/React.createElement(QuestionCircleOutlined$4, null) : _tooltipProps$icon,
|
|
311446
|
-
restTooltipProps = _objectWithoutProperties$1(tooltipProps, _excluded$
|
|
311501
|
+
restTooltipProps = _objectWithoutProperties$1(tooltipProps, _excluded$2M);
|
|
311447
311502
|
|
|
311448
311503
|
var tooltipNode = /*#__PURE__*/React.createElement(Tooltip$4, _objectSpread({}, restTooltipProps), /*#__PURE__*/React.cloneElement(icon, {
|
|
311449
311504
|
className: "".concat(prefixCls, "-item-tooltip"),
|
|
@@ -311543,7 +311598,7 @@
|
|
|
311543
311598
|
}), dom));
|
|
311544
311599
|
};
|
|
311545
311600
|
|
|
311546
|
-
var _excluded$
|
|
311601
|
+
var _excluded$2N = ["prefixCls", "className", "style", "help", "errors", "warnings", "validateStatus", "meta", "hasFeedback", "hidden", "children", "fieldId", "isRequired", "responsive", "errorPlacement", "onSubItemMetaChange"];
|
|
311547
311602
|
var iconMap$1 = {
|
|
311548
311603
|
success: CheckCircleFilled$4,
|
|
311549
311604
|
warning: ExclamationCircleFilled$4,
|
|
@@ -311570,7 +311625,7 @@
|
|
|
311570
311625
|
_props$errorPlacement = props.errorPlacement,
|
|
311571
311626
|
errorPlacement = _props$errorPlacement === void 0 ? 'default' : _props$errorPlacement,
|
|
311572
311627
|
onSubItemMetaChange = props.onSubItemMetaChange,
|
|
311573
|
-
restProps = _objectWithoutProperties$1(props, _excluded$
|
|
311628
|
+
restProps = _objectWithoutProperties$1(props, _excluded$2N);
|
|
311574
311629
|
|
|
311575
311630
|
var itemPrefixCls = "".concat(prefixCls, "-item");
|
|
311576
311631
|
|
|
@@ -311636,17 +311691,8 @@
|
|
|
311636
311691
|
}, [mergedValidateStatus, hasFeedback]); // ======================== Render ========================
|
|
311637
311692
|
|
|
311638
311693
|
var itemClassName = (_itemClassName = {}, _defineProperty$1(_itemClassName, itemPrefixCls, true), _defineProperty$1(_itemClassName, "".concat(itemPrefixCls, "-with-help"), hasHelp || debounceErrors.length || debounceWarnings.length), _defineProperty$1(_itemClassName, "".concat(className), !!className), _defineProperty$1(_itemClassName, "".concat(itemPrefixCls, "-has-feedback"), mergedValidateStatus && hasFeedback), _defineProperty$1(_itemClassName, "".concat(itemPrefixCls, "-has-success"), mergedValidateStatus === 'success'), _defineProperty$1(_itemClassName, "".concat(itemPrefixCls, "-has-warning"), mergedValidateStatus === 'warning'), _defineProperty$1(_itemClassName, "".concat(itemPrefixCls, "-has-error"), mergedValidateStatus === 'error'), _defineProperty$1(_itemClassName, "".concat(itemPrefixCls, "-is-validating"), mergedValidateStatus === 'validating'), _defineProperty$1(_itemClassName, "".concat(itemPrefixCls, "-hidden"), hidden), _defineProperty$1(_itemClassName, 'lm_form-item-tip-error lm_form-item-tip-error-top', errorPlacement === 'top'), _defineProperty$1(_itemClassName, 'lm_form-item-tip-error lm_form-item-tip-error-left', errorPlacement === 'left'), _defineProperty$1(_itemClassName, 'lm_form-item-tip-error lm_form-item-tip-error-right', errorPlacement === 'right'), _defineProperty$1(_itemClassName, 'lm_form-item-tip-error lm_form-item-tip-error-bottom', errorPlacement === 'bottom'), _defineProperty$1(_itemClassName, 'ant-form-item-responsive', responsive), _itemClassName);
|
|
311639
|
-
var nthCls = '';
|
|
311640
|
-
|
|
311641
|
-
if (itemRef.current && itemRef.current.classList) {
|
|
311642
|
-
var list = itemRef.current.classList;
|
|
311643
|
-
if (list.contains('nth-three')) nthCls = 'nth-three';
|
|
311644
|
-
if (list.contains('nth-four')) nthCls = 'nth-four';
|
|
311645
|
-
if (list.contains('nth-five')) nthCls = 'nth-five';
|
|
311646
|
-
}
|
|
311647
|
-
|
|
311648
311694
|
return /*#__PURE__*/React.createElement("div", {
|
|
311649
|
-
className: classnames(itemClassName
|
|
311695
|
+
className: classnames(itemClassName),
|
|
311650
311696
|
style: style,
|
|
311651
311697
|
ref: itemRef
|
|
311652
311698
|
}, /*#__PURE__*/React.createElement(Row$1, _objectSpread({
|
|
@@ -311980,12 +312026,12 @@
|
|
|
311980
312026
|
var FormItem$1 = InternalFormItem$2;
|
|
311981
312027
|
FormItem$1.useStatus = useFormItemStatus$1;
|
|
311982
312028
|
|
|
311983
|
-
var _excluded$
|
|
312029
|
+
var _excluded$2O = ["prefixCls", "children"];
|
|
311984
312030
|
|
|
311985
312031
|
var FormList$1 = function FormList(_ref) {
|
|
311986
312032
|
var customizePrefixCls = _ref.prefixCls,
|
|
311987
312033
|
children = _ref.children,
|
|
311988
|
-
props = _objectWithoutProperties$1(_ref, _excluded$
|
|
312034
|
+
props = _objectWithoutProperties$1(_ref, _excluded$2O);
|
|
311989
312035
|
|
|
311990
312036
|
warning$6(!!props.name, 'Form.List', 'Miss `name` prop.');
|
|
311991
312037
|
|
|
@@ -312020,6 +312066,27 @@
|
|
|
312020
312066
|
return form;
|
|
312021
312067
|
}
|
|
312022
312068
|
|
|
312069
|
+
function withComponent(WrappedComponent) {
|
|
312070
|
+
var WithComponent = function WithComponent(props) {
|
|
312071
|
+
return /*#__PURE__*/React__default['default'].createElement(WrappedComponent, _objectSpread(_objectSpread({}, props), {}, {
|
|
312072
|
+
with: true
|
|
312073
|
+
}));
|
|
312074
|
+
};
|
|
312075
|
+
|
|
312076
|
+
var wrappedComponentName = WrappedComponent.displayName || WrappedComponent.name || 'Component';
|
|
312077
|
+
WithComponent.displayName = "withComponent(".concat(wrappedComponentName, ")");
|
|
312078
|
+
return WithComponent;
|
|
312079
|
+
}
|
|
312080
|
+
|
|
312081
|
+
var FormWrapper = function FormWrapper(props) {
|
|
312082
|
+
var children = props.children;
|
|
312083
|
+
return /*#__PURE__*/React__default['default'].createElement(WrapperItem, {
|
|
312084
|
+
children: children
|
|
312085
|
+
});
|
|
312086
|
+
};
|
|
312087
|
+
|
|
312088
|
+
var Wrapper = withComponent(FormWrapper);
|
|
312089
|
+
|
|
312023
312090
|
var Form$4 = Form$3;
|
|
312024
312091
|
Form$4.Item = FormItem$1;
|
|
312025
312092
|
Form$4.List = FormList$1;
|
|
@@ -312033,6 +312100,8 @@
|
|
|
312033
312100
|
warning$6(false, 'Form', 'antd v4 removed `Form.create`. Please remove or use `@ant-design/compatible` instead.');
|
|
312034
312101
|
};
|
|
312035
312102
|
|
|
312103
|
+
Form$4.Wrapper = Wrapper;
|
|
312104
|
+
|
|
312036
312105
|
var DndContainer$1 = function DndContainer(_ref) {
|
|
312037
312106
|
var children = _ref.children,
|
|
312038
312107
|
move = _ref.move;
|
|
@@ -312080,13 +312149,13 @@
|
|
|
312080
312149
|
}, children);
|
|
312081
312150
|
};
|
|
312082
312151
|
|
|
312083
|
-
var _excluded$
|
|
312152
|
+
var _excluded$2P = ["data-row-key", "children", "className"];
|
|
312084
312153
|
|
|
312085
312154
|
var SortableItem$1 = function SortableItem(props) {
|
|
312086
312155
|
var key = props['data-row-key'],
|
|
312087
312156
|
children = props.children,
|
|
312088
312157
|
className = props.className,
|
|
312089
|
-
resetField = _objectWithoutProperties$1(props, _excluded$
|
|
312158
|
+
resetField = _objectWithoutProperties$1(props, _excluded$2P);
|
|
312090
312159
|
|
|
312091
312160
|
var _useSortable = useSortable({
|
|
312092
312161
|
id: key
|
|
@@ -312107,12 +312176,12 @@
|
|
|
312107
312176
|
}, attributes), children);
|
|
312108
312177
|
};
|
|
312109
312178
|
|
|
312110
|
-
var _excluded$
|
|
312179
|
+
var _excluded$2Q = ["children"];
|
|
312111
312180
|
var Item$5 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
312112
312181
|
var _children$props;
|
|
312113
312182
|
|
|
312114
312183
|
var children = _ref.children,
|
|
312115
|
-
props = _objectWithoutProperties$1(_ref, _excluded$
|
|
312184
|
+
props = _objectWithoutProperties$1(_ref, _excluded$2Q);
|
|
312116
312185
|
|
|
312117
312186
|
return /*#__PURE__*/React__default['default'].createElement("th", _objectSpread(_objectSpread({}, props), {}, {
|
|
312118
312187
|
ref: ref
|
|
@@ -312219,7 +312288,7 @@
|
|
|
312219
312288
|
return res;
|
|
312220
312289
|
}
|
|
312221
312290
|
|
|
312222
|
-
var _excluded$
|
|
312291
|
+
var _excluded$2R = ["index"],
|
|
312223
312292
|
_excluded2$I = ["index"],
|
|
312224
312293
|
_excluded3$b = ["value", "onChange", "record", "rowIndex", "colIndex", "validator"],
|
|
312225
312294
|
_excluded4$1 = ["record", "rowKey", "isEdit", "col", "rowIndex", "colIndex", "handleTableRowDelete", "handleTableRowAdd", "quickOpetateClearAll", "getLength", "isHoverEdit", "editEnum", "valueType", "children", "handleSave", "handleAdd", "handleDelete", "handleCopy", "itemProps", "setValid", "reWriteOriginSource"],
|
|
@@ -312230,7 +312299,7 @@
|
|
|
312230
312299
|
|
|
312231
312300
|
var EditableRow$1 = function EditableRow(_ref) {
|
|
312232
312301
|
var index = _ref.index,
|
|
312233
|
-
props = _objectWithoutProperties$1(_ref, _excluded$
|
|
312302
|
+
props = _objectWithoutProperties$1(_ref, _excluded$2R);
|
|
312234
312303
|
|
|
312235
312304
|
var _Form$useForm = Form$4.useForm(),
|
|
312236
312305
|
_Form$useForm2 = _slicedToArray$1(_Form$useForm, 1),
|
|
@@ -312445,7 +312514,7 @@
|
|
|
312445
312514
|
fontSize: 16
|
|
312446
312515
|
}
|
|
312447
312516
|
})
|
|
312448
|
-
})) : /*#__PURE__*/React__default['default'].createElement(LMButton, {
|
|
312517
|
+
})) : (options === null || options === void 0 ? void 0 : options.includes('add')) || (options === null || options === void 0 ? void 0 : options.includes('addInChildren')) ? /*#__PURE__*/React__default['default'].createElement(LMButton, {
|
|
312449
312518
|
type: "link",
|
|
312450
312519
|
size: "small",
|
|
312451
312520
|
icon: /*#__PURE__*/React__default['default'].createElement(IconFont, {
|
|
@@ -312457,7 +312526,7 @@
|
|
|
312457
312526
|
onClick: function onClick() {
|
|
312458
312527
|
return handleAdd(record, (options === null || options === void 0 ? void 0 : options.includes('addInChildren')) ? true : false);
|
|
312459
312528
|
}
|
|
312460
|
-
}));
|
|
312529
|
+
}) : null);
|
|
312461
312530
|
}; // const isValidValue = (verifyValue) => {
|
|
312462
312531
|
// const toStringValue = JSON.stringify(verifyValue);
|
|
312463
312532
|
// if (verifyValue === undefined || verifyValue === null || verifyValue === '' || toStringValue === '[]' || toStringValue === '{}') {
|
|
@@ -313317,9 +313386,10 @@
|
|
|
313317
313386
|
|
|
313318
313387
|
var dataIndex = col.dataIndex,
|
|
313319
313388
|
editable = col.editable,
|
|
313320
|
-
relevanceCols = col.relevanceCols
|
|
313389
|
+
relevanceCols = col.relevanceCols,
|
|
313390
|
+
componentProps = col.componentProps;
|
|
313321
313391
|
|
|
313322
|
-
if ((col === null || col === void 0 ? void 0 : col.fixed) || hasDisableOptions && hasDisableOptions.includes(dataIndex) || ((_col$componentProps2 = col.componentProps) === null || _col$componentProps2 === void 0 ? void 0 : _col$componentProps2.options) || editable === 'render' || !!relevanceCols || !!shouldUpdate || !!record.children) {
|
|
313392
|
+
if ((col === null || col === void 0 ? void 0 : col.fixed) || hasDisableOptions && hasDisableOptions.includes(dataIndex) || ((_col$componentProps2 = col.componentProps) === null || _col$componentProps2 === void 0 ? void 0 : _col$componentProps2.options) || editable === 'render' || !!relevanceCols || !!shouldUpdate || !!record.children || componentProps && lodash.isFunction(componentProps)) {
|
|
313323
313393
|
return true;
|
|
313324
313394
|
}
|
|
313325
313395
|
|
|
@@ -313540,7 +313610,7 @@
|
|
|
313540
313610
|
return targetElement;
|
|
313541
313611
|
}
|
|
313542
313612
|
|
|
313543
|
-
var prefixCls$
|
|
313613
|
+
var prefixCls$a = 'lm_quick_menu';
|
|
313544
313614
|
|
|
313545
313615
|
var LMQuickMenu = function LMQuickMenu(props) {
|
|
313546
313616
|
var className = props.className,
|
|
@@ -313674,7 +313744,7 @@
|
|
|
313674
313744
|
};
|
|
313675
313745
|
}, []);
|
|
313676
313746
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
313677
|
-
className: classnames(prefixCls$
|
|
313747
|
+
className: classnames(prefixCls$a),
|
|
313678
313748
|
onMouseEnter: function onMouseEnter() {
|
|
313679
313749
|
if (scrollTimeOut.current) {
|
|
313680
313750
|
clearTimeout(scrollTimeOut.current);
|
|
@@ -314188,7 +314258,7 @@
|
|
|
314188
314258
|
}
|
|
314189
314259
|
}
|
|
314190
314260
|
|
|
314191
|
-
var _excluded$
|
|
314261
|
+
var _excluded$2S = ["prefixCls", "getPopupContainer", "className", "placement", "size", "disabled", "bordered", "placeholder", "status"];
|
|
314192
314262
|
function generateRangePicker$1(generateConfig) {
|
|
314193
314263
|
var RangePicker$1 = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
314194
314264
|
var customizePrefixCls = props.prefixCls,
|
|
@@ -314201,7 +314271,7 @@
|
|
|
314201
314271
|
bordered = _props$bordered === void 0 ? true : _props$bordered,
|
|
314202
314272
|
placeholder = props.placeholder,
|
|
314203
314273
|
customStatus = props.status,
|
|
314204
|
-
restProps = _objectWithoutProperties$1(props, _excluded$
|
|
314274
|
+
restProps = _objectWithoutProperties$1(props, _excluded$2S);
|
|
314205
314275
|
|
|
314206
314276
|
var innerRef = React.useRef(null);
|
|
314207
314277
|
|
|
@@ -314301,7 +314371,7 @@
|
|
|
314301
314371
|
return RangePicker$1;
|
|
314302
314372
|
}
|
|
314303
314373
|
|
|
314304
|
-
var _excluded$
|
|
314374
|
+
var _excluded$2T = ["prefixCls", "getPopupContainer", "className", "size", "bordered", "placement", "placeholder", "disabled", "status"];
|
|
314305
314375
|
function generatePicker$2(generateConfig) {
|
|
314306
314376
|
function getPicker(picker, displayName) {
|
|
314307
314377
|
var Picker$1 = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
@@ -314315,7 +314385,7 @@
|
|
|
314315
314385
|
placeholder = props.placeholder,
|
|
314316
314386
|
customDisabled = props.disabled,
|
|
314317
314387
|
customStatus = props.status,
|
|
314318
|
-
restProps = _objectWithoutProperties$1(props, _excluded$
|
|
314388
|
+
restProps = _objectWithoutProperties$1(props, _excluded$2T);
|
|
314319
314389
|
|
|
314320
314390
|
warning$6(picker !== 'quarter', displayName, "DatePicker.".concat(displayName, " is legacy usage. Please use DatePicker[picker='").concat(picker, "'] directly."));
|
|
314321
314391
|
|
|
@@ -314537,13 +314607,13 @@
|
|
|
314537
314607
|
return propValue;
|
|
314538
314608
|
};
|
|
314539
314609
|
|
|
314540
|
-
var _excluded$
|
|
314610
|
+
var _excluded$2U = ["prefixCls", "title", "content", "_overlay"];
|
|
314541
314611
|
var Popover$1 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
314542
314612
|
var customizePrefixCls = _ref.prefixCls,
|
|
314543
314613
|
title = _ref.title,
|
|
314544
314614
|
content = _ref.content,
|
|
314545
314615
|
_overlay = _ref._overlay,
|
|
314546
|
-
otherProps = _objectWithoutProperties$1(_ref, _excluded$
|
|
314616
|
+
otherProps = _objectWithoutProperties$1(_ref, _excluded$2U);
|
|
314547
314617
|
|
|
314548
314618
|
var _React$useContext = React.useContext(ConfigContext),
|
|
314549
314619
|
getPrefixCls = _React$useContext.getPrefixCls;
|
|
@@ -315392,7 +315462,7 @@
|
|
|
315392
315462
|
|
|
315393
315463
|
var KeyCode$1 = /*@__PURE__*/getDefaultExportFromCjs(KeyCode_1);
|
|
315394
315464
|
|
|
315395
|
-
var _excluded$
|
|
315465
|
+
var _excluded$2V = ["style", "noStyle", "disabled"];
|
|
315396
315466
|
var inlineStyle$1 = {
|
|
315397
315467
|
border: 0,
|
|
315398
315468
|
background: 'transparent',
|
|
@@ -315421,7 +315491,7 @@
|
|
|
315421
315491
|
var style = props.style,
|
|
315422
315492
|
noStyle = props.noStyle,
|
|
315423
315493
|
disabled = props.disabled,
|
|
315424
|
-
restProps = _objectWithoutProperties$1(props, _excluded$
|
|
315494
|
+
restProps = _objectWithoutProperties$1(props, _excluded$2V);
|
|
315425
315495
|
|
|
315426
315496
|
var mergedStyle = {};
|
|
315427
315497
|
|
|
@@ -315632,7 +315702,7 @@
|
|
|
315632
315702
|
}, conditions);
|
|
315633
315703
|
});
|
|
315634
315704
|
|
|
315635
|
-
var _excluded$
|
|
315705
|
+
var _excluded$2W = ["prefixCls", "component", "className", "aria-label", "setContentRef", "children"];
|
|
315636
315706
|
|
|
315637
315707
|
var Typography$2 = function Typography(_ref, ref) {
|
|
315638
315708
|
var customizePrefixCls = _ref.prefixCls,
|
|
@@ -315642,7 +315712,7 @@
|
|
|
315642
315712
|
ariaLabel = _ref['aria-label'],
|
|
315643
315713
|
setContentRef = _ref.setContentRef,
|
|
315644
315714
|
children = _ref.children,
|
|
315645
|
-
restProps = _objectWithoutProperties$1(_ref, _excluded$
|
|
315715
|
+
restProps = _objectWithoutProperties$1(_ref, _excluded$2W);
|
|
315646
315716
|
|
|
315647
315717
|
var _React$useContext = React.useContext(ConfigContext),
|
|
315648
315718
|
getPrefixCls = _React$useContext.getPrefixCls,
|
|
@@ -315885,7 +315955,7 @@
|
|
|
315885
315955
|
EllipsisTooltip$1.displayName = 'EllipsisTooltip';
|
|
315886
315956
|
}
|
|
315887
315957
|
|
|
315888
|
-
var _excluded$
|
|
315958
|
+
var _excluded$2X = ["prefixCls", "className", "style", "type", "disabled", "children", "ellipsis", "editable", "copyable", "component", "title"];
|
|
315889
315959
|
|
|
315890
315960
|
function wrapperDecorations$1(_ref, content) {
|
|
315891
315961
|
var mark = _ref.mark,
|
|
@@ -315937,7 +316007,7 @@
|
|
|
315937
316007
|
copyable = props.copyable,
|
|
315938
316008
|
component = props.component,
|
|
315939
316009
|
title = props.title,
|
|
315940
|
-
restProps = _objectWithoutProperties$1(props, _excluded$
|
|
316010
|
+
restProps = _objectWithoutProperties$1(props, _excluded$2X);
|
|
315941
316011
|
|
|
315942
316012
|
var _React$useContext = React.useContext(ConfigContext),
|
|
315943
316013
|
getPrefixCls = _React$useContext.getPrefixCls,
|
|
@@ -316355,12 +316425,12 @@
|
|
|
316355
316425
|
});
|
|
316356
316426
|
});
|
|
316357
316427
|
|
|
316358
|
-
var _excluded$
|
|
316428
|
+
var _excluded$2Y = ["ellipsis", "rel"];
|
|
316359
316429
|
|
|
316360
316430
|
var Link$2 = function Link(_ref, ref) {
|
|
316361
316431
|
var ellipsis = _ref.ellipsis,
|
|
316362
316432
|
rel = _ref.rel,
|
|
316363
|
-
restProps = _objectWithoutProperties$1(_ref, _excluded$
|
|
316433
|
+
restProps = _objectWithoutProperties$1(_ref, _excluded$2Y);
|
|
316364
316434
|
|
|
316365
316435
|
warning$6(_typeof$1(ellipsis) !== 'object', 'Typography.Link', '`ellipsis` only supports boolean value.');
|
|
316366
316436
|
var baseRef = React.useRef(null);
|
|
@@ -316394,11 +316464,11 @@
|
|
|
316394
316464
|
|
|
316395
316465
|
var Paragraph$7 = /*#__PURE__*/React.forwardRef(Paragraph$6);
|
|
316396
316466
|
|
|
316397
|
-
var _excluded$
|
|
316467
|
+
var _excluded$2Z = ["ellipsis"];
|
|
316398
316468
|
|
|
316399
316469
|
var Text$2 = function Text(_ref, ref) {
|
|
316400
316470
|
var ellipsis = _ref.ellipsis,
|
|
316401
|
-
restProps = _objectWithoutProperties$1(_ref, _excluded$
|
|
316471
|
+
restProps = _objectWithoutProperties$1(_ref, _excluded$2Z);
|
|
316402
316472
|
|
|
316403
316473
|
var mergedEllipsis = React.useMemo(function () {
|
|
316404
316474
|
if (ellipsis && _typeof$1(ellipsis) === 'object') {
|
|
@@ -316418,13 +316488,13 @@
|
|
|
316418
316488
|
|
|
316419
316489
|
var Text$3 = /*#__PURE__*/React.forwardRef(Text$2);
|
|
316420
316490
|
|
|
316421
|
-
var _excluded$
|
|
316491
|
+
var _excluded$2_ = ["level"];
|
|
316422
316492
|
var TITLE_ELE_LIST$1 = tupleNum$1(1, 2, 3, 4, 5);
|
|
316423
316493
|
|
|
316424
316494
|
var Title$3 = function Title(props, ref) {
|
|
316425
316495
|
var _props$level = props.level,
|
|
316426
316496
|
level = _props$level === void 0 ? 1 : _props$level,
|
|
316427
|
-
restProps = _objectWithoutProperties$1(props, _excluded$
|
|
316497
|
+
restProps = _objectWithoutProperties$1(props, _excluded$2_);
|
|
316428
316498
|
|
|
316429
316499
|
var component;
|
|
316430
316500
|
|
|
@@ -316529,13 +316599,13 @@
|
|
|
316529
316599
|
RefAutoComplete$1.Option = Option;
|
|
316530
316600
|
RefAutoComplete$1.AntdAutoComplete = RefAutoComplete;
|
|
316531
316601
|
|
|
316532
|
-
var _excluded$
|
|
316602
|
+
var _excluded$2$ = ["children", "treeData", "value", "defaultLabel"];
|
|
316533
316603
|
var CLMTreeSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
316534
316604
|
var children = props.children,
|
|
316535
316605
|
treeData = props.treeData,
|
|
316536
316606
|
value = props.value,
|
|
316537
316607
|
defaultLabel = props.defaultLabel,
|
|
316538
|
-
resetProps = _objectWithoutProperties$1(props, _excluded$
|
|
316608
|
+
resetProps = _objectWithoutProperties$1(props, _excluded$2$);
|
|
316539
316609
|
|
|
316540
316610
|
var deepChildren = React.useCallback(function (arr) {
|
|
316541
316611
|
var flag = false;
|
|
@@ -316660,7 +316730,7 @@
|
|
|
316660
316730
|
return ErrorBoundary;
|
|
316661
316731
|
}(React.Component);
|
|
316662
316732
|
|
|
316663
|
-
var _excluded$
|
|
316733
|
+
var _excluded$30 = ["description", "prefixCls", "message", "banner", "className", "style", "onMouseEnter", "onMouseLeave", "onClick", "afterClose", "showIcon", "closable", "closeText", "closeIcon", "action", "duration"];
|
|
316664
316734
|
var iconMapFilled$1 = {
|
|
316665
316735
|
success: CheckCircleFilled$2,
|
|
316666
316736
|
info: InfoCircleFilled$2,
|
|
@@ -316733,7 +316803,7 @@
|
|
|
316733
316803
|
closeIcon = _ref$closeIcon === void 0 ? /*#__PURE__*/React.createElement(CloseOutlined$2, null) : _ref$closeIcon,
|
|
316734
316804
|
action = _ref.action,
|
|
316735
316805
|
duration = _ref.duration,
|
|
316736
|
-
props = _objectWithoutProperties$1(_ref, _excluded$
|
|
316806
|
+
props = _objectWithoutProperties$1(_ref, _excluded$30);
|
|
316737
316807
|
|
|
316738
316808
|
var _React$useState = React.useState(false),
|
|
316739
316809
|
_React$useState2 = _slicedToArray$1(_React$useState, 2),
|
|
@@ -317163,8 +317233,8 @@
|
|
|
317163
317233
|
};
|
|
317164
317234
|
};
|
|
317165
317235
|
|
|
317166
|
-
var _excluded$
|
|
317167
|
-
var prefixCls$
|
|
317236
|
+
var _excluded$31 = ["className", "onUrge", "onDeleteComment"];
|
|
317237
|
+
var prefixCls$b = 'lm_approval';
|
|
317168
317238
|
var colors = ['#36BCF1', '#AE86DC', '#8BD248', '#F5A173'];
|
|
317169
317239
|
var cacheColorMap = new Map();
|
|
317170
317240
|
|
|
@@ -317202,8 +317272,8 @@
|
|
|
317202
317272
|
_props$onAgree = props.onAgree,
|
|
317203
317273
|
onAgree = _props$onAgree === void 0 ? function () {} : _props$onAgree;
|
|
317204
317274
|
var status = getStatus(steps);
|
|
317205
|
-
var currentStatusCls = classnames(prefixCls$
|
|
317206
|
-
var drawerCls = classnames(prefixCls$
|
|
317275
|
+
var currentStatusCls = classnames(prefixCls$b + '_title_status');
|
|
317276
|
+
var drawerCls = classnames(prefixCls$b + '_drawer');
|
|
317207
317277
|
var statusText = ApprovalType.toText(ApprovalType.APPROVAL, status);
|
|
317208
317278
|
|
|
317209
317279
|
var handleClose = function handleClose() {
|
|
@@ -317270,7 +317340,7 @@
|
|
|
317270
317340
|
_user = props._user,
|
|
317271
317341
|
onUrge = props.onUrge,
|
|
317272
317342
|
onDeleteComment = props.onDeleteComment;
|
|
317273
|
-
var itemCls = classnames(prefixCls$
|
|
317343
|
+
var itemCls = classnames(prefixCls$b + '_item');
|
|
317274
317344
|
var itemHeaderCls = classnames(itemCls + '_header');
|
|
317275
317345
|
var itemBodyCls = classnames(itemCls + '_body', ApprovalType.isPending(type, approvalStatus) ? 'small' : '');
|
|
317276
317346
|
|
|
@@ -317571,7 +317641,7 @@
|
|
|
317571
317641
|
onUrge = _props$onUrge === void 0 ? function () {} : _props$onUrge,
|
|
317572
317642
|
_props$onDeleteCommen2 = props.onDeleteComment,
|
|
317573
317643
|
onDeleteComment = _props$onDeleteCommen2 === void 0 ? function () {} : _props$onDeleteCommen2,
|
|
317574
|
-
others = _objectWithoutProperties$1(props, _excluded$
|
|
317644
|
+
others = _objectWithoutProperties$1(props, _excluded$31);
|
|
317575
317645
|
|
|
317576
317646
|
var _useState = React.useState(false),
|
|
317577
317647
|
_useState2 = _slicedToArray$1(_useState, 2),
|
|
@@ -317596,7 +317666,7 @@
|
|
|
317596
317666
|
};
|
|
317597
317667
|
|
|
317598
317668
|
return /*#__PURE__*/React__default['default'].createElement(LMDrawer$1, _objectSpread({
|
|
317599
|
-
className: classnames(className, prefixCls$
|
|
317669
|
+
className: classnames(className, prefixCls$b)
|
|
317600
317670
|
}, others), /*#__PURE__*/React__default['default'].createElement(Approval, _objectSpread(_objectSpread({}, others), {}, {
|
|
317601
317671
|
onUrge: _onUrge,
|
|
317602
317672
|
onDeleteComment: onDeleteComment,
|
|
@@ -319362,7 +319432,7 @@
|
|
|
319362
319432
|
return nodes;
|
|
319363
319433
|
}
|
|
319364
319434
|
|
|
319365
|
-
var _excluded$
|
|
319435
|
+
var _excluded$32 = ["defaultExpandAll", "defaultExpandParent", "defaultExpandedKeys"],
|
|
319366
319436
|
_excluded2$J = ["prefixCls", "className"];
|
|
319367
319437
|
var ConfigContext$6 = ConfigProvider$1.ConfigContext;
|
|
319368
319438
|
|
|
@@ -319387,7 +319457,7 @@
|
|
|
319387
319457
|
var defaultExpandAll = _ref2.defaultExpandAll,
|
|
319388
319458
|
defaultExpandParent = _ref2.defaultExpandParent,
|
|
319389
319459
|
defaultExpandedKeys = _ref2.defaultExpandedKeys,
|
|
319390
|
-
props = _objectWithoutProperties$1(_ref2, _excluded$
|
|
319460
|
+
props = _objectWithoutProperties$1(_ref2, _excluded$32);
|
|
319391
319461
|
|
|
319392
319462
|
// Shift click usage
|
|
319393
319463
|
var lastSelectedKey = React.useRef();
|
|
@@ -319885,16 +319955,16 @@
|
|
|
319885
319955
|
blockNode: false
|
|
319886
319956
|
};
|
|
319887
319957
|
|
|
319888
|
-
var _excluded$
|
|
319889
|
-
var prefixCls$
|
|
319958
|
+
var _excluded$33 = ["className"];
|
|
319959
|
+
var prefixCls$c = 'lm_tree';
|
|
319890
319960
|
var LmTree = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
319891
319961
|
var className = props.className,
|
|
319892
|
-
rest = _objectWithoutProperties$1(props, _excluded$
|
|
319962
|
+
rest = _objectWithoutProperties$1(props, _excluded$33);
|
|
319893
319963
|
|
|
319894
319964
|
return /*#__PURE__*/React__default['default'].createElement(Tree$2, _objectSpread(_objectSpread({
|
|
319895
319965
|
ref: ref
|
|
319896
319966
|
}, rest), {}, {
|
|
319897
|
-
className: classnames(prefixCls$
|
|
319967
|
+
className: classnames(prefixCls$c, className)
|
|
319898
319968
|
}));
|
|
319899
319969
|
});
|
|
319900
319970
|
LmTree.TreeNode = Tree$2.TreeNode;
|
|
@@ -320948,7 +321018,7 @@
|
|
|
320948
321018
|
}, unitNodes);
|
|
320949
321019
|
}
|
|
320950
321020
|
|
|
320951
|
-
var _excluded$
|
|
321021
|
+
var _excluded$34 = ["prefixCls", "count", "className", "motionClassName", "style", "title", "show", "component", "children"];
|
|
320952
321022
|
|
|
320953
321023
|
var ScrollNumber$1 = function ScrollNumber(_ref) {
|
|
320954
321024
|
var customizePrefixCls = _ref.prefixCls,
|
|
@@ -320961,7 +321031,7 @@
|
|
|
320961
321031
|
_ref$component = _ref.component,
|
|
320962
321032
|
component = _ref$component === void 0 ? 'sup' : _ref$component,
|
|
320963
321033
|
children = _ref.children,
|
|
320964
|
-
restProps = _objectWithoutProperties$1(_ref, _excluded$
|
|
321034
|
+
restProps = _objectWithoutProperties$1(_ref, _excluded$34);
|
|
320965
321035
|
|
|
320966
321036
|
var _React$useContext = React.useContext(ConfigContext$1),
|
|
320967
321037
|
getPrefixCls = _React$useContext.getPrefixCls;
|
|
@@ -321011,7 +321081,7 @@
|
|
|
321011
321081
|
return /*#__PURE__*/React.createElement(component, newProps, numberNodes);
|
|
321012
321082
|
};
|
|
321013
321083
|
|
|
321014
|
-
var _excluded$
|
|
321084
|
+
var _excluded$35 = ["prefixCls", "scrollNumberPrefixCls", "children", "status", "text", "color", "count", "overflowCount", "dot", "size", "title", "offset", "style", "className", "showZero"];
|
|
321015
321085
|
|
|
321016
321086
|
var Badge$1 = function Badge(_ref) {
|
|
321017
321087
|
var _classNames, _classNames2;
|
|
@@ -321036,7 +321106,7 @@
|
|
|
321036
321106
|
className = _ref.className,
|
|
321037
321107
|
_ref$showZero = _ref.showZero,
|
|
321038
321108
|
showZero = _ref$showZero === void 0 ? false : _ref$showZero,
|
|
321039
|
-
restProps = _objectWithoutProperties$1(_ref, _excluded$
|
|
321109
|
+
restProps = _objectWithoutProperties$1(_ref, _excluded$35);
|
|
321040
321110
|
|
|
321041
321111
|
var _React$useContext = React.useContext(ConfigContext$1),
|
|
321042
321112
|
getPrefixCls = _React$useContext.getPrefixCls,
|
|
@@ -321171,7 +321241,7 @@
|
|
|
321171
321241
|
|
|
321172
321242
|
Badge$1.Ribbon = Ribbon$1;
|
|
321173
321243
|
|
|
321174
|
-
var _excluded$
|
|
321244
|
+
var _excluded$36 = ["prefixCls", "type", "orientation", "orientationMargin", "className", "children", "dashed", "plain"];
|
|
321175
321245
|
|
|
321176
321246
|
var Divider$5 = function Divider(props) {
|
|
321177
321247
|
var _classNames;
|
|
@@ -321190,7 +321260,7 @@
|
|
|
321190
321260
|
children = props.children,
|
|
321191
321261
|
dashed = props.dashed,
|
|
321192
321262
|
plain = props.plain,
|
|
321193
|
-
restProps = _objectWithoutProperties$1(props, _excluded$
|
|
321263
|
+
restProps = _objectWithoutProperties$1(props, _excluded$36);
|
|
321194
321264
|
|
|
321195
321265
|
var prefixCls = getPrefixCls('divider', customizePrefixCls);
|
|
321196
321266
|
var orientationPrefix = orientation.length > 0 ? "-".concat(orientation) : orientation;
|
|
@@ -323706,14 +323776,14 @@
|
|
|
323706
323776
|
|
|
323707
323777
|
var Body$1 = /*#__PURE__*/React__default['default'].memo(Index$b);
|
|
323708
323778
|
|
|
323709
|
-
var _excluded$
|
|
323779
|
+
var _excluded$37 = ["value", "onChange", "leftIcon", "rightIcon"];
|
|
323710
323780
|
|
|
323711
323781
|
var ResetSlider = function ResetSlider(_ref) {
|
|
323712
323782
|
var value = _ref.value,
|
|
323713
323783
|
_onChange = _ref.onChange,
|
|
323714
323784
|
leftIcon = _ref.leftIcon,
|
|
323715
323785
|
rightIcon = _ref.rightIcon,
|
|
323716
|
-
props = _objectWithoutProperties$1(_ref, _excluded$
|
|
323786
|
+
props = _objectWithoutProperties$1(_ref, _excluded$37);
|
|
323717
323787
|
|
|
323718
323788
|
// 减
|
|
323719
323789
|
var decrement = function decrement() {
|
|
@@ -323856,14 +323926,14 @@
|
|
|
323856
323926
|
|
|
323857
323927
|
var Container$2 = /*#__PURE__*/React__default['default'].memo(LmBoxContainer);
|
|
323858
323928
|
|
|
323859
|
-
var Wrapper = function Wrapper(_ref) {
|
|
323929
|
+
var Wrapper$1 = function Wrapper(_ref) {
|
|
323860
323930
|
var instance = _ref.instance;
|
|
323861
323931
|
return /*#__PURE__*/React__default['default'].createElement(Container$2, {
|
|
323862
323932
|
instance: instance
|
|
323863
323933
|
});
|
|
323864
323934
|
};
|
|
323865
323935
|
|
|
323866
|
-
var Wrapper$
|
|
323936
|
+
var Wrapper$2 = /*#__PURE__*/React__default['default'].memo(Wrapper$1);
|
|
323867
323937
|
|
|
323868
323938
|
var LmBox = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
323869
323939
|
var initialState = React.useMemo(function () {
|
|
@@ -323899,7 +323969,7 @@
|
|
|
323899
323969
|
}
|
|
323900
323970
|
}, RefMethods);
|
|
323901
323971
|
});
|
|
323902
|
-
return /*#__PURE__*/React__default['default'].createElement(Wrapper$
|
|
323972
|
+
return /*#__PURE__*/React__default['default'].createElement(Wrapper$2, {
|
|
323903
323973
|
instance: instance
|
|
323904
323974
|
});
|
|
323905
323975
|
});
|