linkmore-design 1.1.15 → 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 +927 -852
- package/dist/index.umd.min.js +5 -5
- package/dist/variables.css +59 -48
- 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/InputNumber/style/index.css +4 -0
- package/es/InputNumber/style/variables.css +4 -0
- package/es/LmEditTable/EditTable.js +3 -2
- 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/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/InputNumber/style/index.css +4 -0
- package/lib/InputNumber/style/variables.css +4 -0
- package/lib/LmEditTable/EditTable.js +3 -2
- 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
|
@@ -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,14 +90781,20 @@
|
|
|
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
|
+
}; // 冒号
|
|
90784
90792
|
|
|
90785
90793
|
|
|
90794
|
+
var showColon = React.useMemo(function () {
|
|
90795
|
+
return (colon !== null && colon !== void 0 ? colon : ':') ? ':' : null;
|
|
90796
|
+
}, [colon]); // 重组Instance 加入下拉关闭控制
|
|
90797
|
+
|
|
90786
90798
|
var resetInstance = _objectSpread(_objectSpread({
|
|
90787
90799
|
visible: visible,
|
|
90788
90800
|
setVisible: setVisible
|
|
@@ -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"
|
|
@@ -300487,28 +300499,6 @@
|
|
|
300487
300499
|
var isIllegalName = formItemNameBlackList$1.indexOf(mergedId) >= 0;
|
|
300488
300500
|
return isIllegalName ? "".concat(defaultItemNamePrefixCls$1, "_").concat(mergedId) : mergedId;
|
|
300489
300501
|
}
|
|
300490
|
-
function updateFormResponsiveClass(dom) {
|
|
300491
|
-
var form = dom.tagName.toLocaleLowerCase() === 'form' ? dom : dom.querySelector('form');
|
|
300492
|
-
|
|
300493
|
-
if (form) {
|
|
300494
|
-
var index = 0;
|
|
300495
|
-
Array.prototype.slice.call(form.children).forEach(function (element) {
|
|
300496
|
-
if (element.classList.contains('ant-form-item-responsive')) {
|
|
300497
|
-
index += 1;
|
|
300498
|
-
|
|
300499
|
-
if (index % 3 === 0) {
|
|
300500
|
-
element.classList.add('nth-three');
|
|
300501
|
-
} else if (index % 4 === 0) {
|
|
300502
|
-
element.classList.add('nth-four');
|
|
300503
|
-
} else if (index % 5 === 0) {
|
|
300504
|
-
element.classList.add('nth-five');
|
|
300505
|
-
}
|
|
300506
|
-
} else {
|
|
300507
|
-
index = 0;
|
|
300508
|
-
}
|
|
300509
|
-
});
|
|
300510
|
-
}
|
|
300511
|
-
}
|
|
300512
300502
|
|
|
300513
300503
|
function toNamePathStr$1(name) {
|
|
300514
300504
|
var namePath = toArray$c(name);
|
|
@@ -300558,732 +300548,9 @@
|
|
|
300558
300548
|
return [wrapForm];
|
|
300559
300549
|
}
|
|
300560
300550
|
|
|
300561
|
-
var _excluded$2z = ["children", "className", "responsive"];
|
|
300562
|
-
var prefixCls$a = 'lm_container';
|
|
300563
|
-
|
|
300564
|
-
var LMContainer = function LMContainer(props) {
|
|
300565
|
-
var children = props.children,
|
|
300566
|
-
className = props.className,
|
|
300567
|
-
responsive = props.responsive,
|
|
300568
|
-
others = _objectWithoutProperties$1(props, _excluded$2z);
|
|
300569
|
-
|
|
300570
|
-
var _useState = React.useState({
|
|
300571
|
-
width: '100%',
|
|
300572
|
-
height: '100%'
|
|
300573
|
-
}),
|
|
300574
|
-
_useState2 = _slicedToArray$1(_useState, 2),
|
|
300575
|
-
containerSize = _useState2[0],
|
|
300576
|
-
setContainerSize = _useState2[1];
|
|
300577
|
-
|
|
300578
|
-
var containerWrapRef = React.useRef(null);
|
|
300579
|
-
var throttleSize = React.useCallback(function () {
|
|
300580
|
-
var width = containerSize.width,
|
|
300581
|
-
height = containerSize.height;
|
|
300582
|
-
var responsiveCls = responsive && width !== '100%' ? 'responsive' : '';
|
|
300583
|
-
var lm_col = '';
|
|
300584
|
-
|
|
300585
|
-
if (responsiveCls) {
|
|
300586
|
-
if (parseInt(width) < 990) {
|
|
300587
|
-
lm_col = 'lm_col_3';
|
|
300588
|
-
} else if (parseInt(width) < 1390) {
|
|
300589
|
-
lm_col = 'lm_col_4';
|
|
300590
|
-
} else {
|
|
300591
|
-
lm_col = 'lm_col_5';
|
|
300592
|
-
}
|
|
300593
|
-
}
|
|
300594
|
-
|
|
300595
|
-
var classes = classnames(className, prefixCls$a, responsiveCls, lm_col);
|
|
300596
|
-
return /*#__PURE__*/React__default['default'].createElement("div", _objectSpread(_objectSpread({
|
|
300597
|
-
className: classes
|
|
300598
|
-
}, others), {}, {
|
|
300599
|
-
style: {
|
|
300600
|
-
width: width,
|
|
300601
|
-
height: height
|
|
300602
|
-
}
|
|
300603
|
-
}), children);
|
|
300604
|
-
}, [containerSize, props]);
|
|
300605
|
-
|
|
300606
|
-
var changeSize = function changeSize() {
|
|
300607
|
-
var _containerWrapRef$cur;
|
|
300608
|
-
|
|
300609
|
-
updateFormResponsiveClass(containerWrapRef.current);
|
|
300610
|
-
|
|
300611
|
-
var _ref = ((_containerWrapRef$cur = containerWrapRef.current) === null || _containerWrapRef$cur === void 0 ? void 0 : _containerWrapRef$cur.getBoundingClientRect()) || {},
|
|
300612
|
-
_ref$width = _ref.width,
|
|
300613
|
-
width = _ref$width === void 0 ? '100%' : _ref$width;
|
|
300614
|
-
|
|
300615
|
-
setContainerSize({
|
|
300616
|
-
width: width,
|
|
300617
|
-
height: '100%'
|
|
300618
|
-
});
|
|
300619
|
-
};
|
|
300620
|
-
|
|
300621
|
-
var handResize = lodash.throttle(changeSize, 600);
|
|
300622
|
-
React.useEffect(function () {
|
|
300623
|
-
setTimeout(function () {
|
|
300624
|
-
changeSize();
|
|
300625
|
-
}, 100);
|
|
300626
|
-
window.addEventListener('resize', handResize);
|
|
300627
|
-
return function () {
|
|
300628
|
-
window.removeEventListener('resize', handResize);
|
|
300629
|
-
};
|
|
300630
|
-
}, []);
|
|
300631
|
-
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
300632
|
-
className: "lm_container_wrapper",
|
|
300633
|
-
ref: containerWrapRef,
|
|
300634
|
-
style: {
|
|
300635
|
-
width: '100%',
|
|
300636
|
-
height: '100%'
|
|
300637
|
-
}
|
|
300638
|
-
}, throttleSize());
|
|
300639
|
-
};
|
|
300640
|
-
|
|
300641
|
-
var _excluded$2A = ["prefixCls", "className", "size", "disabled", "form", "colon", "labelAlign", "labelWrap", "labelCol", "wrapperCol", "hideRequiredMark", "layout", "scrollToFirstError", "requiredMark", "onFinishFailed", "name", "responsive"];
|
|
300642
|
-
|
|
300643
|
-
var InternalForm$2 = function InternalForm(props, ref) {
|
|
300644
|
-
var _classNames;
|
|
300645
|
-
|
|
300646
|
-
var contextSize = React.useContext(SizeContext$1);
|
|
300647
|
-
var contextDisabled = React.useContext(DisabledContext$1);
|
|
300648
|
-
|
|
300649
|
-
var _React$useContext = React.useContext(ConfigContext$1),
|
|
300650
|
-
getPrefixCls = _React$useContext.getPrefixCls,
|
|
300651
|
-
direction = _React$useContext.direction,
|
|
300652
|
-
contextForm = _React$useContext.form;
|
|
300653
|
-
|
|
300654
|
-
var customizePrefixCls = props.prefixCls,
|
|
300655
|
-
_props$className = props.className,
|
|
300656
|
-
className = _props$className === void 0 ? '' : _props$className,
|
|
300657
|
-
_props$size = props.size,
|
|
300658
|
-
size = _props$size === void 0 ? contextSize : _props$size,
|
|
300659
|
-
_props$disabled = props.disabled,
|
|
300660
|
-
disabled = _props$disabled === void 0 ? contextDisabled : _props$disabled,
|
|
300661
|
-
form = props.form,
|
|
300662
|
-
colon = props.colon,
|
|
300663
|
-
labelAlign = props.labelAlign,
|
|
300664
|
-
labelWrap = props.labelWrap,
|
|
300665
|
-
labelCol = props.labelCol,
|
|
300666
|
-
wrapperCol = props.wrapperCol,
|
|
300667
|
-
hideRequiredMark = props.hideRequiredMark,
|
|
300668
|
-
_props$layout = props.layout,
|
|
300669
|
-
layout = _props$layout === void 0 ? 'horizontal' : _props$layout,
|
|
300670
|
-
scrollToFirstError = props.scrollToFirstError,
|
|
300671
|
-
requiredMark = props.requiredMark,
|
|
300672
|
-
onFinishFailed = props.onFinishFailed,
|
|
300673
|
-
name = props.name,
|
|
300674
|
-
responsive = props.responsive,
|
|
300675
|
-
restFormProps = _objectWithoutProperties$1(props, _excluded$2A);
|
|
300676
|
-
|
|
300677
|
-
var mergedRequiredMark = React.useMemo(function () {
|
|
300678
|
-
if (requiredMark !== undefined) {
|
|
300679
|
-
return requiredMark;
|
|
300680
|
-
}
|
|
300681
|
-
|
|
300682
|
-
if (contextForm && contextForm.requiredMark !== undefined) {
|
|
300683
|
-
return contextForm.requiredMark;
|
|
300684
|
-
}
|
|
300685
|
-
|
|
300686
|
-
if (hideRequiredMark) {
|
|
300687
|
-
return false;
|
|
300688
|
-
}
|
|
300689
|
-
|
|
300690
|
-
return true;
|
|
300691
|
-
}, [hideRequiredMark, requiredMark, contextForm]);
|
|
300692
|
-
var mergedColon = colon !== null && colon !== void 0 ? colon : contextForm === null || contextForm === void 0 ? void 0 : contextForm.colon;
|
|
300693
|
-
var prefixCls = getPrefixCls('form', customizePrefixCls);
|
|
300694
|
-
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);
|
|
300695
|
-
|
|
300696
|
-
var _useForm = useForm$2(form),
|
|
300697
|
-
_useForm2 = _slicedToArray$1(_useForm, 1),
|
|
300698
|
-
wrapForm = _useForm2[0];
|
|
300699
|
-
|
|
300700
|
-
var __INTERNAL__ = wrapForm.__INTERNAL__;
|
|
300701
|
-
__INTERNAL__.name = name;
|
|
300702
|
-
var formContextValue = React.useMemo(function () {
|
|
300703
|
-
return {
|
|
300704
|
-
name: name,
|
|
300705
|
-
labelAlign: labelAlign,
|
|
300706
|
-
labelCol: labelCol,
|
|
300707
|
-
labelWrap: labelWrap,
|
|
300708
|
-
wrapperCol: wrapperCol,
|
|
300709
|
-
vertical: layout === 'vertical',
|
|
300710
|
-
colon: mergedColon,
|
|
300711
|
-
requiredMark: mergedRequiredMark,
|
|
300712
|
-
itemRef: __INTERNAL__.itemRef,
|
|
300713
|
-
form: wrapForm
|
|
300714
|
-
};
|
|
300715
|
-
}, [name, labelAlign, labelCol, wrapperCol, layout, mergedColon, mergedRequiredMark, wrapForm]);
|
|
300716
|
-
React.useImperativeHandle(ref, function () {
|
|
300717
|
-
return wrapForm;
|
|
300718
|
-
});
|
|
300719
|
-
|
|
300720
|
-
var onInternalFinishFailed = function onInternalFinishFailed(errorInfo) {
|
|
300721
|
-
onFinishFailed === null || onFinishFailed === void 0 ? void 0 : onFinishFailed(errorInfo);
|
|
300722
|
-
var defaultScrollToFirstError = {
|
|
300723
|
-
block: 'nearest'
|
|
300724
|
-
};
|
|
300725
|
-
|
|
300726
|
-
if (scrollToFirstError && errorInfo.errorFields.length) {
|
|
300727
|
-
if (_typeof$1(scrollToFirstError) === 'object') {
|
|
300728
|
-
defaultScrollToFirstError = scrollToFirstError;
|
|
300729
|
-
}
|
|
300730
|
-
|
|
300731
|
-
wrapForm.scrollToField(errorInfo.errorFields[0].name, defaultScrollToFirstError);
|
|
300732
|
-
}
|
|
300733
|
-
};
|
|
300734
|
-
|
|
300735
|
-
var formNode = /*#__PURE__*/React.createElement(DisabledContextProvider$1, {
|
|
300736
|
-
disabled: disabled
|
|
300737
|
-
}, /*#__PURE__*/React.createElement(SizeContextProvider$1, {
|
|
300738
|
-
size: size
|
|
300739
|
-
}, /*#__PURE__*/React.createElement(FormContext$2.Provider, {
|
|
300740
|
-
value: formContextValue
|
|
300741
|
-
}, /*#__PURE__*/React.createElement(RefForm, _objectSpread(_objectSpread({
|
|
300742
|
-
id: name
|
|
300743
|
-
}, restFormProps), {}, {
|
|
300744
|
-
name: name,
|
|
300745
|
-
onFinishFailed: onInternalFinishFailed,
|
|
300746
|
-
form: wrapForm,
|
|
300747
|
-
className: formClassName
|
|
300748
|
-
})))));
|
|
300749
|
-
|
|
300750
|
-
if (responsive) {
|
|
300751
|
-
return /*#__PURE__*/React.createElement(LMContainer, {
|
|
300752
|
-
responsive: true
|
|
300753
|
-
}, formNode);
|
|
300754
|
-
}
|
|
300755
|
-
|
|
300756
|
-
return formNode;
|
|
300757
|
-
};
|
|
300758
|
-
|
|
300759
|
-
var Form$3 = /*#__PURE__*/React.forwardRef(InternalForm$2);
|
|
300760
|
-
|
|
300761
|
-
var createForOfIteratorHelper = createCommonjsModule(function (module) {
|
|
300762
|
-
function _createForOfIteratorHelper(o, allowArrayLike) {
|
|
300763
|
-
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
|
300764
|
-
|
|
300765
|
-
if (!it) {
|
|
300766
|
-
if (Array.isArray(o) || (it = unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
|
|
300767
|
-
if (it) o = it;
|
|
300768
|
-
var i = 0;
|
|
300769
|
-
|
|
300770
|
-
var F = function F() {};
|
|
300771
|
-
|
|
300772
|
-
return {
|
|
300773
|
-
s: F,
|
|
300774
|
-
n: function n() {
|
|
300775
|
-
if (i >= o.length) return {
|
|
300776
|
-
done: true
|
|
300777
|
-
};
|
|
300778
|
-
return {
|
|
300779
|
-
done: false,
|
|
300780
|
-
value: o[i++]
|
|
300781
|
-
};
|
|
300782
|
-
},
|
|
300783
|
-
e: function e(_e) {
|
|
300784
|
-
throw _e;
|
|
300785
|
-
},
|
|
300786
|
-
f: F
|
|
300787
|
-
};
|
|
300788
|
-
}
|
|
300789
|
-
|
|
300790
|
-
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
300791
|
-
}
|
|
300792
|
-
|
|
300793
|
-
var normalCompletion = true,
|
|
300794
|
-
didErr = false,
|
|
300795
|
-
err;
|
|
300796
|
-
return {
|
|
300797
|
-
s: function s() {
|
|
300798
|
-
it = it.call(o);
|
|
300799
|
-
},
|
|
300800
|
-
n: function n() {
|
|
300801
|
-
var step = it.next();
|
|
300802
|
-
normalCompletion = step.done;
|
|
300803
|
-
return step;
|
|
300804
|
-
},
|
|
300805
|
-
e: function e(_e2) {
|
|
300806
|
-
didErr = true;
|
|
300807
|
-
err = _e2;
|
|
300808
|
-
},
|
|
300809
|
-
f: function f() {
|
|
300810
|
-
try {
|
|
300811
|
-
if (!normalCompletion && it["return"] != null) it["return"]();
|
|
300812
|
-
} finally {
|
|
300813
|
-
if (didErr) throw err;
|
|
300814
|
-
}
|
|
300815
|
-
}
|
|
300816
|
-
};
|
|
300817
|
-
}
|
|
300818
|
-
|
|
300819
|
-
module.exports = _createForOfIteratorHelper, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
300820
|
-
});
|
|
300821
|
-
|
|
300822
|
-
var _createForOfIteratorHelper$1 = /*@__PURE__*/getDefaultExportFromCjs(createForOfIteratorHelper);
|
|
300823
|
-
|
|
300824
|
-
var ref$1 = createCommonjsModule(function (module, exports) {
|
|
300825
|
-
|
|
300826
|
-
|
|
300827
|
-
|
|
300828
|
-
Object.defineProperty(exports, "__esModule", {
|
|
300829
|
-
value: true
|
|
300830
|
-
});
|
|
300831
|
-
exports.composeRef = composeRef;
|
|
300832
|
-
exports.fillRef = fillRef;
|
|
300833
|
-
exports.supportRef = supportRef;
|
|
300834
|
-
exports.useComposeRef = useComposeRef;
|
|
300835
|
-
|
|
300836
|
-
var _typeof2 = interopRequireDefault(_typeof_1);
|
|
300837
|
-
|
|
300838
|
-
|
|
300839
|
-
|
|
300840
|
-
var _useMemo = interopRequireDefault(useMemo_1);
|
|
300841
|
-
|
|
300842
|
-
function fillRef(ref, node) {
|
|
300843
|
-
if (typeof ref === 'function') {
|
|
300844
|
-
ref(node);
|
|
300845
|
-
} else if ((0, _typeof2.default)(ref) === 'object' && ref && 'current' in ref) {
|
|
300846
|
-
ref.current = node;
|
|
300847
|
-
}
|
|
300848
|
-
}
|
|
300849
|
-
/**
|
|
300850
|
-
* Merge refs into one ref function to support ref passing.
|
|
300851
|
-
*/
|
|
300852
|
-
|
|
300853
|
-
|
|
300854
|
-
function composeRef() {
|
|
300855
|
-
for (var _len = arguments.length, refs = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
300856
|
-
refs[_key] = arguments[_key];
|
|
300857
|
-
}
|
|
300858
|
-
|
|
300859
|
-
var refList = refs.filter(function (ref) {
|
|
300860
|
-
return ref;
|
|
300861
|
-
});
|
|
300862
|
-
|
|
300863
|
-
if (refList.length <= 1) {
|
|
300864
|
-
return refList[0];
|
|
300865
|
-
}
|
|
300866
|
-
|
|
300867
|
-
return function (node) {
|
|
300868
|
-
refs.forEach(function (ref) {
|
|
300869
|
-
fillRef(ref, node);
|
|
300870
|
-
});
|
|
300871
|
-
};
|
|
300872
|
-
}
|
|
300873
|
-
|
|
300874
|
-
function useComposeRef() {
|
|
300875
|
-
for (var _len2 = arguments.length, refs = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
300876
|
-
refs[_key2] = arguments[_key2];
|
|
300877
|
-
}
|
|
300878
|
-
|
|
300879
|
-
return (0, _useMemo.default)(function () {
|
|
300880
|
-
return composeRef.apply(void 0, refs);
|
|
300881
|
-
}, refs, function (prev, next) {
|
|
300882
|
-
return prev.length === next.length && prev.every(function (ref, i) {
|
|
300883
|
-
return ref === next[i];
|
|
300884
|
-
});
|
|
300885
|
-
});
|
|
300886
|
-
}
|
|
300887
|
-
|
|
300888
|
-
function supportRef(nodeOrComponent) {
|
|
300889
|
-
var _type$prototype, _nodeOrComponent$prot;
|
|
300890
|
-
|
|
300891
|
-
var type = (0, reactIs.isMemo)(nodeOrComponent) ? nodeOrComponent.type.type : nodeOrComponent.type; // Function component node
|
|
300892
|
-
|
|
300893
|
-
if (typeof type === 'function' && !((_type$prototype = type.prototype) === null || _type$prototype === void 0 ? void 0 : _type$prototype.render)) {
|
|
300894
|
-
return false;
|
|
300895
|
-
} // Class component
|
|
300896
|
-
|
|
300897
|
-
|
|
300898
|
-
if (typeof nodeOrComponent === 'function' && !((_nodeOrComponent$prot = nodeOrComponent.prototype) === null || _nodeOrComponent$prot === void 0 ? void 0 : _nodeOrComponent$prot.render)) {
|
|
300899
|
-
return false;
|
|
300900
|
-
}
|
|
300901
|
-
|
|
300902
|
-
return true;
|
|
300903
|
-
}
|
|
300904
|
-
/* eslint-enable */
|
|
300905
|
-
});
|
|
300906
|
-
|
|
300907
|
-
var useFormItemStatus$1 = function useFormItemStatus() {
|
|
300908
|
-
var _useContext = React.useContext(FormItemInputContext$1),
|
|
300909
|
-
status = _useContext.status;
|
|
300910
|
-
|
|
300911
|
-
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"));
|
|
300912
|
-
return {
|
|
300913
|
-
status: status
|
|
300914
|
-
};
|
|
300915
|
-
};
|
|
300916
|
-
|
|
300917
|
-
var raf_1 = createCommonjsModule(function (module, exports) {
|
|
300918
|
-
|
|
300919
|
-
Object.defineProperty(exports, "__esModule", {
|
|
300920
|
-
value: true
|
|
300921
|
-
});
|
|
300922
|
-
exports.default = wrapperRaf;
|
|
300923
|
-
|
|
300924
|
-
var raf = function raf(callback) {
|
|
300925
|
-
return +setTimeout(callback, 16);
|
|
300926
|
-
};
|
|
300927
|
-
|
|
300928
|
-
var caf = function caf(num) {
|
|
300929
|
-
return clearTimeout(num);
|
|
300930
|
-
};
|
|
300931
|
-
|
|
300932
|
-
if (typeof window !== 'undefined' && 'requestAnimationFrame' in window) {
|
|
300933
|
-
raf = function raf(callback) {
|
|
300934
|
-
return window.requestAnimationFrame(callback);
|
|
300935
|
-
};
|
|
300936
|
-
|
|
300937
|
-
caf = function caf(handle) {
|
|
300938
|
-
return window.cancelAnimationFrame(handle);
|
|
300939
|
-
};
|
|
300940
|
-
}
|
|
300941
|
-
|
|
300942
|
-
var rafUUID = 0;
|
|
300943
|
-
var rafIds = new Map();
|
|
300944
|
-
|
|
300945
|
-
function cleanup(id) {
|
|
300946
|
-
rafIds.delete(id);
|
|
300947
|
-
}
|
|
300948
|
-
|
|
300949
|
-
function wrapperRaf(callback) {
|
|
300950
|
-
var times = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
|
|
300951
|
-
rafUUID += 1;
|
|
300952
|
-
var id = rafUUID;
|
|
300953
|
-
|
|
300954
|
-
function callRef(leftTimes) {
|
|
300955
|
-
if (leftTimes === 0) {
|
|
300956
|
-
// Clean up
|
|
300957
|
-
cleanup(id); // Trigger
|
|
300958
|
-
|
|
300959
|
-
callback();
|
|
300960
|
-
} else {
|
|
300961
|
-
// Next raf
|
|
300962
|
-
var realId = raf(function () {
|
|
300963
|
-
callRef(leftTimes - 1);
|
|
300964
|
-
}); // Bind real raf id
|
|
300965
|
-
|
|
300966
|
-
rafIds.set(id, realId);
|
|
300967
|
-
}
|
|
300968
|
-
}
|
|
300969
|
-
|
|
300970
|
-
callRef(times);
|
|
300971
|
-
return id;
|
|
300972
|
-
}
|
|
300973
|
-
|
|
300974
|
-
wrapperRaf.cancel = function (id) {
|
|
300975
|
-
var realId = rafIds.get(id);
|
|
300976
|
-
cleanup(realId);
|
|
300977
|
-
return caf(realId);
|
|
300978
|
-
};
|
|
300979
|
-
});
|
|
300980
|
-
|
|
300981
|
-
var raf$1 = /*@__PURE__*/getDefaultExportFromCjs(raf_1);
|
|
300982
|
-
|
|
300983
|
-
function useFrameState$1(defaultValue) {
|
|
300984
|
-
var _React$useState = React.useState(defaultValue),
|
|
300985
|
-
_React$useState2 = _slicedToArray$1(_React$useState, 2),
|
|
300986
|
-
value = _React$useState2[0],
|
|
300987
|
-
setValue = _React$useState2[1];
|
|
300988
|
-
|
|
300989
|
-
var frameRef = React.useRef(null);
|
|
300990
|
-
var batchRef = React.useRef([]);
|
|
300991
|
-
var destroyRef = React.useRef(false);
|
|
300992
|
-
React.useEffect(function () {
|
|
300993
|
-
destroyRef.current = false;
|
|
300994
|
-
return function () {
|
|
300995
|
-
destroyRef.current = true;
|
|
300996
|
-
raf$1.cancel(frameRef.current);
|
|
300997
|
-
frameRef.current = null;
|
|
300998
|
-
};
|
|
300999
|
-
}, []);
|
|
301000
|
-
|
|
301001
|
-
function setFrameValue(updater) {
|
|
301002
|
-
if (destroyRef.current) {
|
|
301003
|
-
return;
|
|
301004
|
-
}
|
|
301005
|
-
|
|
301006
|
-
if (frameRef.current === null) {
|
|
301007
|
-
batchRef.current = [];
|
|
301008
|
-
frameRef.current = raf$1(function () {
|
|
301009
|
-
frameRef.current = null;
|
|
301010
|
-
setValue(function (prevValue) {
|
|
301011
|
-
var current = prevValue;
|
|
301012
|
-
batchRef.current.forEach(function (func) {
|
|
301013
|
-
current = func(current);
|
|
301014
|
-
});
|
|
301015
|
-
return current;
|
|
301016
|
-
});
|
|
301017
|
-
});
|
|
301018
|
-
}
|
|
301019
|
-
|
|
301020
|
-
batchRef.current.push(updater);
|
|
301021
|
-
}
|
|
301022
|
-
|
|
301023
|
-
return [value, setFrameValue];
|
|
301024
|
-
}
|
|
301025
|
-
|
|
301026
|
-
function useItemRef$1() {
|
|
301027
|
-
var _React$useContext = React.useContext(FormContext$2),
|
|
301028
|
-
itemRef = _React$useContext.itemRef;
|
|
301029
|
-
|
|
301030
|
-
var cacheRef = React.useRef({});
|
|
301031
|
-
|
|
301032
|
-
function getRef(name, children) {
|
|
301033
|
-
var childrenRef = children && _typeof$1(children) === 'object' && children.ref;
|
|
301034
|
-
var nameStr = name.join('_');
|
|
301035
|
-
|
|
301036
|
-
if (cacheRef.current.name !== nameStr || cacheRef.current.originRef !== childrenRef) {
|
|
301037
|
-
cacheRef.current.name = nameStr;
|
|
301038
|
-
cacheRef.current.originRef = childrenRef;
|
|
301039
|
-
cacheRef.current.ref = ref$1.composeRef(itemRef(name), childrenRef);
|
|
301040
|
-
}
|
|
301041
|
-
|
|
301042
|
-
return cacheRef.current.ref;
|
|
301043
|
-
}
|
|
301044
|
-
|
|
301045
|
-
return getRef;
|
|
301046
|
-
}
|
|
301047
|
-
|
|
301048
|
-
var CheckCircleFilled_1 = createCommonjsModule(function (module, exports) {
|
|
301049
|
-
// This icon file is generated automatically.
|
|
301050
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
301051
|
-
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" };
|
|
301052
|
-
exports.default = CheckCircleFilled;
|
|
301053
|
-
});
|
|
301054
|
-
|
|
301055
|
-
var CheckCircleFilled_1$1 = createCommonjsModule(function (module, exports) {
|
|
301056
|
-
|
|
301057
|
-
|
|
301058
|
-
|
|
301059
|
-
|
|
301060
|
-
|
|
301061
|
-
Object.defineProperty(exports, "__esModule", {
|
|
301062
|
-
value: true
|
|
301063
|
-
});
|
|
301064
|
-
exports.default = void 0;
|
|
301065
|
-
|
|
301066
|
-
var _objectSpread2 = interopRequireDefault(objectSpread2);
|
|
301067
|
-
|
|
301068
|
-
var React = interopRequireWildcard(React__default['default']);
|
|
301069
|
-
|
|
301070
|
-
var _CheckCircleFilled = interopRequireDefault(CheckCircleFilled_1);
|
|
301071
|
-
|
|
301072
|
-
var _AntdIcon = interopRequireDefault(AntdIcon);
|
|
301073
|
-
|
|
301074
|
-
// GENERATE BY ./scripts/generate.ts
|
|
301075
|
-
// DON NOT EDIT IT MANUALLY
|
|
301076
|
-
var CheckCircleFilled = function CheckCircleFilled(props, ref) {
|
|
301077
|
-
return /*#__PURE__*/React.createElement(_AntdIcon.default, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, props), {}, {
|
|
301078
|
-
ref: ref,
|
|
301079
|
-
icon: _CheckCircleFilled.default
|
|
301080
|
-
}));
|
|
301081
|
-
};
|
|
301082
|
-
|
|
301083
|
-
CheckCircleFilled.displayName = 'CheckCircleFilled';
|
|
301084
|
-
|
|
301085
|
-
var _default = /*#__PURE__*/React.forwardRef(CheckCircleFilled);
|
|
301086
|
-
|
|
301087
|
-
exports.default = _default;
|
|
301088
|
-
});
|
|
301089
|
-
|
|
301090
|
-
var CheckCircleFilled$3 = createCommonjsModule(function (module, exports) {
|
|
301091
|
-
Object.defineProperty(exports, "__esModule", {
|
|
301092
|
-
value: true
|
|
301093
|
-
});
|
|
301094
|
-
exports.default = void 0;
|
|
301095
|
-
|
|
301096
|
-
var _CheckCircleFilled = _interopRequireDefault(CheckCircleFilled_1$1);
|
|
301097
|
-
|
|
301098
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
|
|
301099
|
-
|
|
301100
|
-
var _default = _CheckCircleFilled;
|
|
301101
|
-
exports.default = _default;
|
|
301102
|
-
module.exports = _default;
|
|
301103
|
-
});
|
|
301104
|
-
|
|
301105
|
-
var CheckCircleFilled$4 = /*@__PURE__*/getDefaultExportFromCjs(CheckCircleFilled$3);
|
|
301106
|
-
|
|
301107
|
-
var CloseCircleFilled_1 = createCommonjsModule(function (module, exports) {
|
|
301108
|
-
// This icon file is generated automatically.
|
|
301109
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
301110
|
-
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" };
|
|
301111
|
-
exports.default = CloseCircleFilled;
|
|
301112
|
-
});
|
|
301113
|
-
|
|
301114
|
-
var CloseCircleFilled_1$1 = createCommonjsModule(function (module, exports) {
|
|
301115
|
-
|
|
301116
|
-
|
|
301117
|
-
|
|
301118
|
-
|
|
301119
|
-
|
|
301120
|
-
Object.defineProperty(exports, "__esModule", {
|
|
301121
|
-
value: true
|
|
301122
|
-
});
|
|
301123
|
-
exports.default = void 0;
|
|
301124
|
-
|
|
301125
|
-
var _objectSpread2 = interopRequireDefault(objectSpread2);
|
|
301126
|
-
|
|
301127
|
-
var React = interopRequireWildcard(React__default['default']);
|
|
301128
|
-
|
|
301129
|
-
var _CloseCircleFilled = interopRequireDefault(CloseCircleFilled_1);
|
|
301130
|
-
|
|
301131
|
-
var _AntdIcon = interopRequireDefault(AntdIcon);
|
|
301132
|
-
|
|
301133
|
-
// GENERATE BY ./scripts/generate.ts
|
|
301134
|
-
// DON NOT EDIT IT MANUALLY
|
|
301135
|
-
var CloseCircleFilled = function CloseCircleFilled(props, ref) {
|
|
301136
|
-
return /*#__PURE__*/React.createElement(_AntdIcon.default, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, props), {}, {
|
|
301137
|
-
ref: ref,
|
|
301138
|
-
icon: _CloseCircleFilled.default
|
|
301139
|
-
}));
|
|
301140
|
-
};
|
|
301141
|
-
|
|
301142
|
-
CloseCircleFilled.displayName = 'CloseCircleFilled';
|
|
301143
|
-
|
|
301144
|
-
var _default = /*#__PURE__*/React.forwardRef(CloseCircleFilled);
|
|
301145
|
-
|
|
301146
|
-
exports.default = _default;
|
|
301147
|
-
});
|
|
301148
|
-
|
|
301149
|
-
var CloseCircleFilled$3 = createCommonjsModule(function (module, exports) {
|
|
301150
|
-
Object.defineProperty(exports, "__esModule", {
|
|
301151
|
-
value: true
|
|
301152
|
-
});
|
|
301153
|
-
exports.default = void 0;
|
|
301154
|
-
|
|
301155
|
-
var _CloseCircleFilled = _interopRequireDefault(CloseCircleFilled_1$1);
|
|
301156
|
-
|
|
301157
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
|
|
301158
|
-
|
|
301159
|
-
var _default = _CloseCircleFilled;
|
|
301160
|
-
exports.default = _default;
|
|
301161
|
-
module.exports = _default;
|
|
301162
|
-
});
|
|
301163
|
-
|
|
301164
|
-
var CloseCircleFilled$4 = /*@__PURE__*/getDefaultExportFromCjs(CloseCircleFilled$3);
|
|
301165
|
-
|
|
301166
|
-
var ExclamationCircleFilled_1 = createCommonjsModule(function (module, exports) {
|
|
301167
|
-
// This icon file is generated automatically.
|
|
301168
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
301169
|
-
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" };
|
|
301170
|
-
exports.default = ExclamationCircleFilled;
|
|
301171
|
-
});
|
|
301172
|
-
|
|
301173
|
-
var ExclamationCircleFilled_1$1 = createCommonjsModule(function (module, exports) {
|
|
301174
|
-
|
|
301175
|
-
|
|
301176
|
-
|
|
301177
|
-
|
|
301178
|
-
|
|
301179
|
-
Object.defineProperty(exports, "__esModule", {
|
|
301180
|
-
value: true
|
|
301181
|
-
});
|
|
301182
|
-
exports.default = void 0;
|
|
301183
|
-
|
|
301184
|
-
var _objectSpread2 = interopRequireDefault(objectSpread2);
|
|
301185
|
-
|
|
301186
|
-
var React = interopRequireWildcard(React__default['default']);
|
|
301187
|
-
|
|
301188
|
-
var _ExclamationCircleFilled = interopRequireDefault(ExclamationCircleFilled_1);
|
|
301189
|
-
|
|
301190
|
-
var _AntdIcon = interopRequireDefault(AntdIcon);
|
|
301191
|
-
|
|
301192
|
-
// GENERATE BY ./scripts/generate.ts
|
|
301193
|
-
// DON NOT EDIT IT MANUALLY
|
|
301194
|
-
var ExclamationCircleFilled = function ExclamationCircleFilled(props, ref) {
|
|
301195
|
-
return /*#__PURE__*/React.createElement(_AntdIcon.default, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, props), {}, {
|
|
301196
|
-
ref: ref,
|
|
301197
|
-
icon: _ExclamationCircleFilled.default
|
|
301198
|
-
}));
|
|
301199
|
-
};
|
|
301200
|
-
|
|
301201
|
-
ExclamationCircleFilled.displayName = 'ExclamationCircleFilled';
|
|
301202
|
-
|
|
301203
|
-
var _default = /*#__PURE__*/React.forwardRef(ExclamationCircleFilled);
|
|
301204
|
-
|
|
301205
|
-
exports.default = _default;
|
|
301206
|
-
});
|
|
301207
|
-
|
|
301208
|
-
var ExclamationCircleFilled$3 = createCommonjsModule(function (module, exports) {
|
|
301209
|
-
Object.defineProperty(exports, "__esModule", {
|
|
301210
|
-
value: true
|
|
301211
|
-
});
|
|
301212
|
-
exports.default = void 0;
|
|
301213
|
-
|
|
301214
|
-
var _ExclamationCircleFilled = _interopRequireDefault(ExclamationCircleFilled_1$1);
|
|
301215
|
-
|
|
301216
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
|
|
301217
|
-
|
|
301218
|
-
var _default = _ExclamationCircleFilled;
|
|
301219
|
-
exports.default = _default;
|
|
301220
|
-
module.exports = _default;
|
|
301221
|
-
});
|
|
301222
|
-
|
|
301223
|
-
var ExclamationCircleFilled$4 = /*@__PURE__*/getDefaultExportFromCjs(ExclamationCircleFilled$3);
|
|
301224
|
-
|
|
301225
|
-
var LoadingOutlined_1 = createCommonjsModule(function (module, exports) {
|
|
301226
|
-
// This icon file is generated automatically.
|
|
301227
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
301228
|
-
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" };
|
|
301229
|
-
exports.default = LoadingOutlined;
|
|
301230
|
-
});
|
|
301231
|
-
|
|
301232
|
-
var LoadingOutlined_1$1 = createCommonjsModule(function (module, exports) {
|
|
301233
|
-
|
|
301234
|
-
|
|
301235
|
-
|
|
301236
|
-
|
|
301237
|
-
|
|
301238
|
-
Object.defineProperty(exports, "__esModule", {
|
|
301239
|
-
value: true
|
|
301240
|
-
});
|
|
301241
|
-
exports.default = void 0;
|
|
301242
|
-
|
|
301243
|
-
var _objectSpread2 = interopRequireDefault(objectSpread2);
|
|
301244
|
-
|
|
301245
|
-
var React = interopRequireWildcard(React__default['default']);
|
|
301246
|
-
|
|
301247
|
-
var _LoadingOutlined = interopRequireDefault(LoadingOutlined_1);
|
|
301248
|
-
|
|
301249
|
-
var _AntdIcon = interopRequireDefault(AntdIcon);
|
|
301250
|
-
|
|
301251
|
-
// GENERATE BY ./scripts/generate.ts
|
|
301252
|
-
// DON NOT EDIT IT MANUALLY
|
|
301253
|
-
var LoadingOutlined = function LoadingOutlined(props, ref) {
|
|
301254
|
-
return /*#__PURE__*/React.createElement(_AntdIcon.default, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, props), {}, {
|
|
301255
|
-
ref: ref,
|
|
301256
|
-
icon: _LoadingOutlined.default
|
|
301257
|
-
}));
|
|
301258
|
-
};
|
|
301259
|
-
|
|
301260
|
-
LoadingOutlined.displayName = 'LoadingOutlined';
|
|
301261
|
-
|
|
301262
|
-
var _default = /*#__PURE__*/React.forwardRef(LoadingOutlined);
|
|
301263
|
-
|
|
301264
|
-
exports.default = _default;
|
|
301265
|
-
});
|
|
301266
|
-
|
|
301267
|
-
var LoadingOutlined$3 = createCommonjsModule(function (module, exports) {
|
|
301268
|
-
Object.defineProperty(exports, "__esModule", {
|
|
301269
|
-
value: true
|
|
301270
|
-
});
|
|
301271
|
-
exports.default = void 0;
|
|
301272
|
-
|
|
301273
|
-
var _LoadingOutlined = _interopRequireDefault(LoadingOutlined_1$1);
|
|
301274
|
-
|
|
301275
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
|
|
301276
|
-
|
|
301277
|
-
var _default = _LoadingOutlined;
|
|
301278
|
-
exports.default = _default;
|
|
301279
|
-
module.exports = _default;
|
|
301280
|
-
});
|
|
301281
|
-
|
|
301282
|
-
var LoadingOutlined$4 = /*@__PURE__*/getDefaultExportFromCjs(LoadingOutlined$3);
|
|
301283
|
-
|
|
301284
300551
|
var RowContext$1 = /*#__PURE__*/React.createContext({});
|
|
301285
300552
|
|
|
301286
|
-
var _excluded$
|
|
300553
|
+
var _excluded$2z = ["prefixCls", "span", "order", "offset", "push", "pull", "className", "children", "flex", "style"];
|
|
301287
300554
|
|
|
301288
300555
|
function parseFlex$1(flex) {
|
|
301289
300556
|
if (typeof flex === 'number') {
|
|
@@ -301320,7 +300587,7 @@
|
|
|
301320
300587
|
children = props.children,
|
|
301321
300588
|
flex = props.flex,
|
|
301322
300589
|
style = props.style,
|
|
301323
|
-
others = _objectWithoutProperties$1(props, _excluded$
|
|
300590
|
+
others = _objectWithoutProperties$1(props, _excluded$2z);
|
|
301324
300591
|
|
|
301325
300592
|
var prefixCls = getPrefixCls('col', customizePrefixCls);
|
|
301326
300593
|
var sizeClassObj = {};
|
|
@@ -301553,7 +300820,7 @@
|
|
|
301553
300820
|
return flexible;
|
|
301554
300821
|
});
|
|
301555
300822
|
|
|
301556
|
-
var _excluded$
|
|
300823
|
+
var _excluded$2A = ["prefixCls", "justify", "align", "className", "style", "children", "gutter", "wrap"];
|
|
301557
300824
|
var RowAligns$1 = tuple$2('top', 'middle', 'bottom', 'stretch');
|
|
301558
300825
|
var RowJustify$1 = tuple$2('start', 'end', 'center', 'space-around', 'space-between', 'space-evenly');
|
|
301559
300826
|
var Row$1 = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
@@ -301568,7 +300835,7 @@
|
|
|
301568
300835
|
_props$gutter = props.gutter,
|
|
301569
300836
|
gutter = _props$gutter === void 0 ? 0 : _props$gutter,
|
|
301570
300837
|
wrap = props.wrap,
|
|
301571
|
-
others = _objectWithoutProperties$1(props, _excluded$
|
|
300838
|
+
others = _objectWithoutProperties$1(props, _excluded$2A);
|
|
301572
300839
|
|
|
301573
300840
|
var _React$useContext = React.useContext(ConfigContext),
|
|
301574
300841
|
getPrefixCls = _React$useContext.getPrefixCls,
|
|
@@ -303419,7 +302686,7 @@
|
|
|
303419
302686
|
return NextArrow;
|
|
303420
302687
|
}(React__default['default'].PureComponent);
|
|
303421
302688
|
|
|
303422
|
-
var _excluded$
|
|
302689
|
+
var _excluded$2B = ["animating"];
|
|
303423
302690
|
var InnerSlider = /*#__PURE__*/function (_React$Component) {
|
|
303424
302691
|
_inherits(InnerSlider, _React$Component);
|
|
303425
302692
|
|
|
@@ -303835,7 +303102,7 @@
|
|
|
303835
303102
|
if (!nextState) return;
|
|
303836
303103
|
_this.animationEndCallback = setTimeout(function () {
|
|
303837
303104
|
var animating = nextState.animating,
|
|
303838
|
-
firstBatch = _objectWithoutProperties(nextState, _excluded$
|
|
303105
|
+
firstBatch = _objectWithoutProperties(nextState, _excluded$2B);
|
|
303839
303106
|
|
|
303840
303107
|
_this.setState(firstBatch, function () {
|
|
303841
303108
|
_this.callbackTimers.push(setTimeout(function () {
|
|
@@ -305823,7 +305090,7 @@
|
|
|
305823
305090
|
Layout$1.Content = Content;
|
|
305824
305091
|
Layout$1.Sider = Sider;
|
|
305825
305092
|
|
|
305826
|
-
var _excluded$
|
|
305093
|
+
var _excluded$2C = ["children", "locked"];
|
|
305827
305094
|
var MenuContext$4 = /*#__PURE__*/React.createContext(null);
|
|
305828
305095
|
|
|
305829
305096
|
function mergeProps$3(origin, target) {
|
|
@@ -305842,7 +305109,7 @@
|
|
|
305842
305109
|
function InheritableContextProvider$3(_ref) {
|
|
305843
305110
|
var children = _ref.children,
|
|
305844
305111
|
locked = _ref.locked,
|
|
305845
|
-
restProps = _objectWithoutProperties(_ref, _excluded$
|
|
305112
|
+
restProps = _objectWithoutProperties(_ref, _excluded$2C);
|
|
305846
305113
|
|
|
305847
305114
|
var context = React.useContext(MenuContext$4);
|
|
305848
305115
|
var inheritableContext = useMemo(function () {
|
|
@@ -305886,7 +305153,7 @@
|
|
|
305886
305153
|
return ret;
|
|
305887
305154
|
}
|
|
305888
305155
|
|
|
305889
|
-
var _excluded$
|
|
305156
|
+
var _excluded$2D = ["item"];
|
|
305890
305157
|
/**
|
|
305891
305158
|
* `onClick` event return `info.item` which point to react node directly.
|
|
305892
305159
|
* We should warning this since it will not work on FC.
|
|
@@ -305894,7 +305161,7 @@
|
|
|
305894
305161
|
|
|
305895
305162
|
function warnItemProp$3(_ref) {
|
|
305896
305163
|
var item = _ref.item,
|
|
305897
|
-
restInfo = _objectWithoutProperties(_ref, _excluded$
|
|
305164
|
+
restInfo = _objectWithoutProperties(_ref, _excluded$2D);
|
|
305898
305165
|
|
|
305899
305166
|
Object.defineProperty(restInfo, 'item', {
|
|
305900
305167
|
get: function get() {
|
|
@@ -305973,7 +305240,7 @@
|
|
|
305973
305240
|
|
|
305974
305241
|
var PrivateContext$3 = /*#__PURE__*/React.createContext({});
|
|
305975
305242
|
|
|
305976
|
-
var _excluded$
|
|
305243
|
+
var _excluded$2E = ["title", "attribute", "elementRef"],
|
|
305977
305244
|
_excluded2$F = ["style", "className", "eventKey", "warnKey", "disabled", "itemIcon", "children", "role", "onMouseEnter", "onMouseLeave", "onClick", "onKeyDown", "onFocus"],
|
|
305978
305245
|
_excluded3$a = ["active"];
|
|
305979
305246
|
// We have to use class component here.
|
|
@@ -305997,7 +305264,7 @@
|
|
|
305997
305264
|
title = _this$props.title,
|
|
305998
305265
|
attribute = _this$props.attribute,
|
|
305999
305266
|
elementRef = _this$props.elementRef,
|
|
306000
|
-
restProps = _objectWithoutProperties(_this$props, _excluded$
|
|
305267
|
+
restProps = _objectWithoutProperties(_this$props, _excluded$2E);
|
|
306001
305268
|
|
|
306002
305269
|
var passedProps = omit(restProps, ['eventKey']);
|
|
306003
305270
|
warningOnce(!attribute, '`attribute` of Menu.Item is deprecated. Please pass attribute directly.');
|
|
@@ -306172,7 +305439,7 @@
|
|
|
306172
305439
|
return /*#__PURE__*/React.createElement(InternalMenuItem$3, props);
|
|
306173
305440
|
}
|
|
306174
305441
|
|
|
306175
|
-
var _excluded$
|
|
305442
|
+
var _excluded$2F = ["label", "children", "key", "type"];
|
|
306176
305443
|
function parseChildren$3(children, keyPath) {
|
|
306177
305444
|
return toArray(children).map(function (child, index) {
|
|
306178
305445
|
if ( /*#__PURE__*/React.isValidElement(child)) {
|
|
@@ -306209,7 +305476,7 @@
|
|
|
306209
305476
|
children = opt.children,
|
|
306210
305477
|
key = opt.key,
|
|
306211
305478
|
type = opt.type,
|
|
306212
|
-
restProps = _objectWithoutProperties(opt, _excluded$
|
|
305479
|
+
restProps = _objectWithoutProperties(opt, _excluded$2F);
|
|
306213
305480
|
|
|
306214
305481
|
var mergedKey = key !== null && key !== void 0 ? key : "tmp-".concat(index); // MenuItemGroup & SubMenuItem
|
|
306215
305482
|
|
|
@@ -306279,12 +305546,12 @@
|
|
|
306279
305546
|
return func ? callback : undefined;
|
|
306280
305547
|
}
|
|
306281
305548
|
|
|
306282
|
-
var _excluded$
|
|
305549
|
+
var _excluded$2G = ["className", "children"];
|
|
306283
305550
|
|
|
306284
305551
|
var InternalSubMenuList$3 = function InternalSubMenuList(_ref, ref) {
|
|
306285
305552
|
var className = _ref.className,
|
|
306286
305553
|
children = _ref.children,
|
|
306287
|
-
restProps = _objectWithoutProperties(_ref, _excluded$
|
|
305554
|
+
restProps = _objectWithoutProperties(_ref, _excluded$2G);
|
|
306288
305555
|
|
|
306289
305556
|
var _React$useContext = React.useContext(MenuContext$4),
|
|
306290
305557
|
prefixCls = _React$useContext.prefixCls,
|
|
@@ -307113,7 +306380,7 @@
|
|
|
307113
306380
|
}));
|
|
307114
306381
|
}
|
|
307115
306382
|
|
|
307116
|
-
var _excluded$
|
|
306383
|
+
var _excluded$2H = ["style", "className", "title", "eventKey", "warnKey", "disabled", "internalPopupClose", "children", "itemIcon", "expandIcon", "popupClassName", "popupOffset", "onClick", "onMouseEnter", "onMouseLeave", "onTitleClick", "onTitleMouseEnter", "onTitleMouseLeave"],
|
|
307117
306384
|
_excluded2$G = ["active"];
|
|
307118
306385
|
|
|
307119
306386
|
var InternalSubMenu$3 = function InternalSubMenu(props) {
|
|
@@ -307137,7 +306404,7 @@
|
|
|
307137
306404
|
onTitleClick = props.onTitleClick,
|
|
307138
306405
|
onTitleMouseEnter = props.onTitleMouseEnter,
|
|
307139
306406
|
onTitleMouseLeave = props.onTitleMouseLeave,
|
|
307140
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
306407
|
+
restProps = _objectWithoutProperties(props, _excluded$2H);
|
|
307141
306408
|
|
|
307142
306409
|
var domDataId = useMenuId$3(eventKey);
|
|
307143
306410
|
|
|
@@ -307808,7 +307075,7 @@
|
|
|
307808
307075
|
};
|
|
307809
307076
|
}
|
|
307810
307077
|
|
|
307811
|
-
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"];
|
|
307812
307079
|
/**
|
|
307813
307080
|
* Menu modify after refactor:
|
|
307814
307081
|
* ## Add
|
|
@@ -307880,7 +307147,7 @@
|
|
|
307880
307147
|
openTransitionName = props.openTransitionName,
|
|
307881
307148
|
_internalRenderMenuItem = props._internalRenderMenuItem,
|
|
307882
307149
|
_internalRenderSubMenuItem = props._internalRenderSubMenuItem,
|
|
307883
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
307150
|
+
restProps = _objectWithoutProperties(props, _excluded$2I);
|
|
307884
307151
|
|
|
307885
307152
|
var childList = React.useMemo(function () {
|
|
307886
307153
|
return parseItems$3(children, items, EMPTY_LIST$7);
|
|
@@ -308225,7 +307492,7 @@
|
|
|
308225
307492
|
}, childList)))));
|
|
308226
307493
|
});
|
|
308227
307494
|
|
|
308228
|
-
var _excluded$
|
|
307495
|
+
var _excluded$2J = ["className", "title", "eventKey", "children"],
|
|
308229
307496
|
_excluded2$H = ["children"];
|
|
308230
307497
|
|
|
308231
307498
|
var InternalMenuItemGroup$3 = function InternalMenuItemGroup(_ref) {
|
|
@@ -308233,7 +307500,7 @@
|
|
|
308233
307500
|
title = _ref.title,
|
|
308234
307501
|
eventKey = _ref.eventKey,
|
|
308235
307502
|
children = _ref.children,
|
|
308236
|
-
restProps = _objectWithoutProperties(_ref, _excluded$
|
|
307503
|
+
restProps = _objectWithoutProperties(_ref, _excluded$2J);
|
|
308237
307504
|
|
|
308238
307505
|
var _React$useContext = React.useContext(MenuContext$4),
|
|
308239
307506
|
prefixCls = _React$useContext.prefixCls;
|
|
@@ -309857,7 +309124,7 @@
|
|
|
309857
309124
|
});
|
|
309858
309125
|
}
|
|
309859
309126
|
|
|
309860
|
-
var _excluded$
|
|
309127
|
+
var _excluded$2K = ["prefixCls", "direction", "options", "disabled", "defaultValue", "value", "onChange", "className", "motionName"];
|
|
309861
309128
|
|
|
309862
309129
|
function getValidTitle(option) {
|
|
309863
309130
|
if (typeof option.title !== 'undefined') {
|
|
@@ -309936,7 +309203,7 @@
|
|
|
309936
309203
|
className = _props$className === void 0 ? '' : _props$className,
|
|
309937
309204
|
_props$motionName = props.motionName,
|
|
309938
309205
|
motionName = _props$motionName === void 0 ? 'thumb-motion' : _props$motionName,
|
|
309939
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
309206
|
+
restProps = _objectWithoutProperties(props, _excluded$2K);
|
|
309940
309207
|
|
|
309941
309208
|
var containerRef = React.useRef(null);
|
|
309942
309209
|
var mergedRef = React.useMemo(function () {
|
|
@@ -311318,6 +310585,799 @@
|
|
|
311318
310585
|
useBreakpoint: useBreakpoint$4
|
|
311319
310586
|
};
|
|
311320
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
|
+
|
|
311321
311381
|
var QuestionCircleOutlined_1 = createCommonjsModule(function (module, exports) {
|
|
311322
311382
|
// This icon file is generated automatically.
|
|
311323
311383
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -311377,7 +311437,7 @@
|
|
|
311377
311437
|
|
|
311378
311438
|
var QuestionCircleOutlined$4 = /*@__PURE__*/getDefaultExportFromCjs(QuestionCircleOutlined$3);
|
|
311379
311439
|
|
|
311380
|
-
var _excluded$
|
|
311440
|
+
var _excluded$2M = ["icon"];
|
|
311381
311441
|
|
|
311382
311442
|
function toTooltipProps$1(tooltip) {
|
|
311383
311443
|
if (!tooltip) {
|
|
@@ -311438,7 +311498,7 @@
|
|
|
311438
311498
|
if (tooltipProps) {
|
|
311439
311499
|
var _tooltipProps$icon = tooltipProps.icon,
|
|
311440
311500
|
icon = _tooltipProps$icon === void 0 ? /*#__PURE__*/React.createElement(QuestionCircleOutlined$4, null) : _tooltipProps$icon,
|
|
311441
|
-
restTooltipProps = _objectWithoutProperties$1(tooltipProps, _excluded$
|
|
311501
|
+
restTooltipProps = _objectWithoutProperties$1(tooltipProps, _excluded$2M);
|
|
311442
311502
|
|
|
311443
311503
|
var tooltipNode = /*#__PURE__*/React.createElement(Tooltip$4, _objectSpread({}, restTooltipProps), /*#__PURE__*/React.cloneElement(icon, {
|
|
311444
311504
|
className: "".concat(prefixCls, "-item-tooltip"),
|
|
@@ -311538,7 +311598,7 @@
|
|
|
311538
311598
|
}), dom));
|
|
311539
311599
|
};
|
|
311540
311600
|
|
|
311541
|
-
var _excluded$
|
|
311601
|
+
var _excluded$2N = ["prefixCls", "className", "style", "help", "errors", "warnings", "validateStatus", "meta", "hasFeedback", "hidden", "children", "fieldId", "isRequired", "responsive", "errorPlacement", "onSubItemMetaChange"];
|
|
311542
311602
|
var iconMap$1 = {
|
|
311543
311603
|
success: CheckCircleFilled$4,
|
|
311544
311604
|
warning: ExclamationCircleFilled$4,
|
|
@@ -311565,7 +311625,7 @@
|
|
|
311565
311625
|
_props$errorPlacement = props.errorPlacement,
|
|
311566
311626
|
errorPlacement = _props$errorPlacement === void 0 ? 'default' : _props$errorPlacement,
|
|
311567
311627
|
onSubItemMetaChange = props.onSubItemMetaChange,
|
|
311568
|
-
restProps = _objectWithoutProperties$1(props, _excluded$
|
|
311628
|
+
restProps = _objectWithoutProperties$1(props, _excluded$2N);
|
|
311569
311629
|
|
|
311570
311630
|
var itemPrefixCls = "".concat(prefixCls, "-item");
|
|
311571
311631
|
|
|
@@ -311631,17 +311691,8 @@
|
|
|
311631
311691
|
}, [mergedValidateStatus, hasFeedback]); // ======================== Render ========================
|
|
311632
311692
|
|
|
311633
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);
|
|
311634
|
-
var nthCls = '';
|
|
311635
|
-
|
|
311636
|
-
if (itemRef.current && itemRef.current.classList) {
|
|
311637
|
-
var list = itemRef.current.classList;
|
|
311638
|
-
if (list.contains('nth-three')) nthCls = 'nth-three';
|
|
311639
|
-
if (list.contains('nth-four')) nthCls = 'nth-four';
|
|
311640
|
-
if (list.contains('nth-five')) nthCls = 'nth-five';
|
|
311641
|
-
}
|
|
311642
|
-
|
|
311643
311694
|
return /*#__PURE__*/React.createElement("div", {
|
|
311644
|
-
className: classnames(itemClassName
|
|
311695
|
+
className: classnames(itemClassName),
|
|
311645
311696
|
style: style,
|
|
311646
311697
|
ref: itemRef
|
|
311647
311698
|
}, /*#__PURE__*/React.createElement(Row$1, _objectSpread({
|
|
@@ -311975,12 +312026,12 @@
|
|
|
311975
312026
|
var FormItem$1 = InternalFormItem$2;
|
|
311976
312027
|
FormItem$1.useStatus = useFormItemStatus$1;
|
|
311977
312028
|
|
|
311978
|
-
var _excluded$
|
|
312029
|
+
var _excluded$2O = ["prefixCls", "children"];
|
|
311979
312030
|
|
|
311980
312031
|
var FormList$1 = function FormList(_ref) {
|
|
311981
312032
|
var customizePrefixCls = _ref.prefixCls,
|
|
311982
312033
|
children = _ref.children,
|
|
311983
|
-
props = _objectWithoutProperties$1(_ref, _excluded$
|
|
312034
|
+
props = _objectWithoutProperties$1(_ref, _excluded$2O);
|
|
311984
312035
|
|
|
311985
312036
|
warning$6(!!props.name, 'Form.List', 'Miss `name` prop.');
|
|
311986
312037
|
|
|
@@ -312015,6 +312066,27 @@
|
|
|
312015
312066
|
return form;
|
|
312016
312067
|
}
|
|
312017
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
|
+
|
|
312018
312090
|
var Form$4 = Form$3;
|
|
312019
312091
|
Form$4.Item = FormItem$1;
|
|
312020
312092
|
Form$4.List = FormList$1;
|
|
@@ -312028,6 +312100,8 @@
|
|
|
312028
312100
|
warning$6(false, 'Form', 'antd v4 removed `Form.create`. Please remove or use `@ant-design/compatible` instead.');
|
|
312029
312101
|
};
|
|
312030
312102
|
|
|
312103
|
+
Form$4.Wrapper = Wrapper;
|
|
312104
|
+
|
|
312031
312105
|
var DndContainer$1 = function DndContainer(_ref) {
|
|
312032
312106
|
var children = _ref.children,
|
|
312033
312107
|
move = _ref.move;
|
|
@@ -312075,13 +312149,13 @@
|
|
|
312075
312149
|
}, children);
|
|
312076
312150
|
};
|
|
312077
312151
|
|
|
312078
|
-
var _excluded$
|
|
312152
|
+
var _excluded$2P = ["data-row-key", "children", "className"];
|
|
312079
312153
|
|
|
312080
312154
|
var SortableItem$1 = function SortableItem(props) {
|
|
312081
312155
|
var key = props['data-row-key'],
|
|
312082
312156
|
children = props.children,
|
|
312083
312157
|
className = props.className,
|
|
312084
|
-
resetField = _objectWithoutProperties$1(props, _excluded$
|
|
312158
|
+
resetField = _objectWithoutProperties$1(props, _excluded$2P);
|
|
312085
312159
|
|
|
312086
312160
|
var _useSortable = useSortable({
|
|
312087
312161
|
id: key
|
|
@@ -312102,12 +312176,12 @@
|
|
|
312102
312176
|
}, attributes), children);
|
|
312103
312177
|
};
|
|
312104
312178
|
|
|
312105
|
-
var _excluded$
|
|
312179
|
+
var _excluded$2Q = ["children"];
|
|
312106
312180
|
var Item$5 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
312107
312181
|
var _children$props;
|
|
312108
312182
|
|
|
312109
312183
|
var children = _ref.children,
|
|
312110
|
-
props = _objectWithoutProperties$1(_ref, _excluded$
|
|
312184
|
+
props = _objectWithoutProperties$1(_ref, _excluded$2Q);
|
|
312111
312185
|
|
|
312112
312186
|
return /*#__PURE__*/React__default['default'].createElement("th", _objectSpread(_objectSpread({}, props), {}, {
|
|
312113
312187
|
ref: ref
|
|
@@ -312214,7 +312288,7 @@
|
|
|
312214
312288
|
return res;
|
|
312215
312289
|
}
|
|
312216
312290
|
|
|
312217
|
-
var _excluded$
|
|
312291
|
+
var _excluded$2R = ["index"],
|
|
312218
312292
|
_excluded2$I = ["index"],
|
|
312219
312293
|
_excluded3$b = ["value", "onChange", "record", "rowIndex", "colIndex", "validator"],
|
|
312220
312294
|
_excluded4$1 = ["record", "rowKey", "isEdit", "col", "rowIndex", "colIndex", "handleTableRowDelete", "handleTableRowAdd", "quickOpetateClearAll", "getLength", "isHoverEdit", "editEnum", "valueType", "children", "handleSave", "handleAdd", "handleDelete", "handleCopy", "itemProps", "setValid", "reWriteOriginSource"],
|
|
@@ -312225,7 +312299,7 @@
|
|
|
312225
312299
|
|
|
312226
312300
|
var EditableRow$1 = function EditableRow(_ref) {
|
|
312227
312301
|
var index = _ref.index,
|
|
312228
|
-
props = _objectWithoutProperties$1(_ref, _excluded$
|
|
312302
|
+
props = _objectWithoutProperties$1(_ref, _excluded$2R);
|
|
312229
312303
|
|
|
312230
312304
|
var _Form$useForm = Form$4.useForm(),
|
|
312231
312305
|
_Form$useForm2 = _slicedToArray$1(_Form$useForm, 1),
|
|
@@ -313312,9 +313386,10 @@
|
|
|
313312
313386
|
|
|
313313
313387
|
var dataIndex = col.dataIndex,
|
|
313314
313388
|
editable = col.editable,
|
|
313315
|
-
relevanceCols = col.relevanceCols
|
|
313389
|
+
relevanceCols = col.relevanceCols,
|
|
313390
|
+
componentProps = col.componentProps;
|
|
313316
313391
|
|
|
313317
|
-
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)) {
|
|
313318
313393
|
return true;
|
|
313319
313394
|
}
|
|
313320
313395
|
|
|
@@ -313535,7 +313610,7 @@
|
|
|
313535
313610
|
return targetElement;
|
|
313536
313611
|
}
|
|
313537
313612
|
|
|
313538
|
-
var prefixCls$
|
|
313613
|
+
var prefixCls$a = 'lm_quick_menu';
|
|
313539
313614
|
|
|
313540
313615
|
var LMQuickMenu = function LMQuickMenu(props) {
|
|
313541
313616
|
var className = props.className,
|
|
@@ -313669,7 +313744,7 @@
|
|
|
313669
313744
|
};
|
|
313670
313745
|
}, []);
|
|
313671
313746
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
313672
|
-
className: classnames(prefixCls$
|
|
313747
|
+
className: classnames(prefixCls$a),
|
|
313673
313748
|
onMouseEnter: function onMouseEnter() {
|
|
313674
313749
|
if (scrollTimeOut.current) {
|
|
313675
313750
|
clearTimeout(scrollTimeOut.current);
|
|
@@ -314183,7 +314258,7 @@
|
|
|
314183
314258
|
}
|
|
314184
314259
|
}
|
|
314185
314260
|
|
|
314186
|
-
var _excluded$
|
|
314261
|
+
var _excluded$2S = ["prefixCls", "getPopupContainer", "className", "placement", "size", "disabled", "bordered", "placeholder", "status"];
|
|
314187
314262
|
function generateRangePicker$1(generateConfig) {
|
|
314188
314263
|
var RangePicker$1 = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
314189
314264
|
var customizePrefixCls = props.prefixCls,
|
|
@@ -314196,7 +314271,7 @@
|
|
|
314196
314271
|
bordered = _props$bordered === void 0 ? true : _props$bordered,
|
|
314197
314272
|
placeholder = props.placeholder,
|
|
314198
314273
|
customStatus = props.status,
|
|
314199
|
-
restProps = _objectWithoutProperties$1(props, _excluded$
|
|
314274
|
+
restProps = _objectWithoutProperties$1(props, _excluded$2S);
|
|
314200
314275
|
|
|
314201
314276
|
var innerRef = React.useRef(null);
|
|
314202
314277
|
|
|
@@ -314296,7 +314371,7 @@
|
|
|
314296
314371
|
return RangePicker$1;
|
|
314297
314372
|
}
|
|
314298
314373
|
|
|
314299
|
-
var _excluded$
|
|
314374
|
+
var _excluded$2T = ["prefixCls", "getPopupContainer", "className", "size", "bordered", "placement", "placeholder", "disabled", "status"];
|
|
314300
314375
|
function generatePicker$2(generateConfig) {
|
|
314301
314376
|
function getPicker(picker, displayName) {
|
|
314302
314377
|
var Picker$1 = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
@@ -314310,7 +314385,7 @@
|
|
|
314310
314385
|
placeholder = props.placeholder,
|
|
314311
314386
|
customDisabled = props.disabled,
|
|
314312
314387
|
customStatus = props.status,
|
|
314313
|
-
restProps = _objectWithoutProperties$1(props, _excluded$
|
|
314388
|
+
restProps = _objectWithoutProperties$1(props, _excluded$2T);
|
|
314314
314389
|
|
|
314315
314390
|
warning$6(picker !== 'quarter', displayName, "DatePicker.".concat(displayName, " is legacy usage. Please use DatePicker[picker='").concat(picker, "'] directly."));
|
|
314316
314391
|
|
|
@@ -314532,13 +314607,13 @@
|
|
|
314532
314607
|
return propValue;
|
|
314533
314608
|
};
|
|
314534
314609
|
|
|
314535
|
-
var _excluded$
|
|
314610
|
+
var _excluded$2U = ["prefixCls", "title", "content", "_overlay"];
|
|
314536
314611
|
var Popover$1 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
314537
314612
|
var customizePrefixCls = _ref.prefixCls,
|
|
314538
314613
|
title = _ref.title,
|
|
314539
314614
|
content = _ref.content,
|
|
314540
314615
|
_overlay = _ref._overlay,
|
|
314541
|
-
otherProps = _objectWithoutProperties$1(_ref, _excluded$
|
|
314616
|
+
otherProps = _objectWithoutProperties$1(_ref, _excluded$2U);
|
|
314542
314617
|
|
|
314543
314618
|
var _React$useContext = React.useContext(ConfigContext),
|
|
314544
314619
|
getPrefixCls = _React$useContext.getPrefixCls;
|
|
@@ -315387,7 +315462,7 @@
|
|
|
315387
315462
|
|
|
315388
315463
|
var KeyCode$1 = /*@__PURE__*/getDefaultExportFromCjs(KeyCode_1);
|
|
315389
315464
|
|
|
315390
|
-
var _excluded$
|
|
315465
|
+
var _excluded$2V = ["style", "noStyle", "disabled"];
|
|
315391
315466
|
var inlineStyle$1 = {
|
|
315392
315467
|
border: 0,
|
|
315393
315468
|
background: 'transparent',
|
|
@@ -315416,7 +315491,7 @@
|
|
|
315416
315491
|
var style = props.style,
|
|
315417
315492
|
noStyle = props.noStyle,
|
|
315418
315493
|
disabled = props.disabled,
|
|
315419
|
-
restProps = _objectWithoutProperties$1(props, _excluded$
|
|
315494
|
+
restProps = _objectWithoutProperties$1(props, _excluded$2V);
|
|
315420
315495
|
|
|
315421
315496
|
var mergedStyle = {};
|
|
315422
315497
|
|
|
@@ -315627,7 +315702,7 @@
|
|
|
315627
315702
|
}, conditions);
|
|
315628
315703
|
});
|
|
315629
315704
|
|
|
315630
|
-
var _excluded$
|
|
315705
|
+
var _excluded$2W = ["prefixCls", "component", "className", "aria-label", "setContentRef", "children"];
|
|
315631
315706
|
|
|
315632
315707
|
var Typography$2 = function Typography(_ref, ref) {
|
|
315633
315708
|
var customizePrefixCls = _ref.prefixCls,
|
|
@@ -315637,7 +315712,7 @@
|
|
|
315637
315712
|
ariaLabel = _ref['aria-label'],
|
|
315638
315713
|
setContentRef = _ref.setContentRef,
|
|
315639
315714
|
children = _ref.children,
|
|
315640
|
-
restProps = _objectWithoutProperties$1(_ref, _excluded$
|
|
315715
|
+
restProps = _objectWithoutProperties$1(_ref, _excluded$2W);
|
|
315641
315716
|
|
|
315642
315717
|
var _React$useContext = React.useContext(ConfigContext),
|
|
315643
315718
|
getPrefixCls = _React$useContext.getPrefixCls,
|
|
@@ -315880,7 +315955,7 @@
|
|
|
315880
315955
|
EllipsisTooltip$1.displayName = 'EllipsisTooltip';
|
|
315881
315956
|
}
|
|
315882
315957
|
|
|
315883
|
-
var _excluded$
|
|
315958
|
+
var _excluded$2X = ["prefixCls", "className", "style", "type", "disabled", "children", "ellipsis", "editable", "copyable", "component", "title"];
|
|
315884
315959
|
|
|
315885
315960
|
function wrapperDecorations$1(_ref, content) {
|
|
315886
315961
|
var mark = _ref.mark,
|
|
@@ -315932,7 +316007,7 @@
|
|
|
315932
316007
|
copyable = props.copyable,
|
|
315933
316008
|
component = props.component,
|
|
315934
316009
|
title = props.title,
|
|
315935
|
-
restProps = _objectWithoutProperties$1(props, _excluded$
|
|
316010
|
+
restProps = _objectWithoutProperties$1(props, _excluded$2X);
|
|
315936
316011
|
|
|
315937
316012
|
var _React$useContext = React.useContext(ConfigContext),
|
|
315938
316013
|
getPrefixCls = _React$useContext.getPrefixCls,
|
|
@@ -316350,12 +316425,12 @@
|
|
|
316350
316425
|
});
|
|
316351
316426
|
});
|
|
316352
316427
|
|
|
316353
|
-
var _excluded$
|
|
316428
|
+
var _excluded$2Y = ["ellipsis", "rel"];
|
|
316354
316429
|
|
|
316355
316430
|
var Link$2 = function Link(_ref, ref) {
|
|
316356
316431
|
var ellipsis = _ref.ellipsis,
|
|
316357
316432
|
rel = _ref.rel,
|
|
316358
|
-
restProps = _objectWithoutProperties$1(_ref, _excluded$
|
|
316433
|
+
restProps = _objectWithoutProperties$1(_ref, _excluded$2Y);
|
|
316359
316434
|
|
|
316360
316435
|
warning$6(_typeof$1(ellipsis) !== 'object', 'Typography.Link', '`ellipsis` only supports boolean value.');
|
|
316361
316436
|
var baseRef = React.useRef(null);
|
|
@@ -316389,11 +316464,11 @@
|
|
|
316389
316464
|
|
|
316390
316465
|
var Paragraph$7 = /*#__PURE__*/React.forwardRef(Paragraph$6);
|
|
316391
316466
|
|
|
316392
|
-
var _excluded$
|
|
316467
|
+
var _excluded$2Z = ["ellipsis"];
|
|
316393
316468
|
|
|
316394
316469
|
var Text$2 = function Text(_ref, ref) {
|
|
316395
316470
|
var ellipsis = _ref.ellipsis,
|
|
316396
|
-
restProps = _objectWithoutProperties$1(_ref, _excluded$
|
|
316471
|
+
restProps = _objectWithoutProperties$1(_ref, _excluded$2Z);
|
|
316397
316472
|
|
|
316398
316473
|
var mergedEllipsis = React.useMemo(function () {
|
|
316399
316474
|
if (ellipsis && _typeof$1(ellipsis) === 'object') {
|
|
@@ -316413,13 +316488,13 @@
|
|
|
316413
316488
|
|
|
316414
316489
|
var Text$3 = /*#__PURE__*/React.forwardRef(Text$2);
|
|
316415
316490
|
|
|
316416
|
-
var _excluded$
|
|
316491
|
+
var _excluded$2_ = ["level"];
|
|
316417
316492
|
var TITLE_ELE_LIST$1 = tupleNum$1(1, 2, 3, 4, 5);
|
|
316418
316493
|
|
|
316419
316494
|
var Title$3 = function Title(props, ref) {
|
|
316420
316495
|
var _props$level = props.level,
|
|
316421
316496
|
level = _props$level === void 0 ? 1 : _props$level,
|
|
316422
|
-
restProps = _objectWithoutProperties$1(props, _excluded$
|
|
316497
|
+
restProps = _objectWithoutProperties$1(props, _excluded$2_);
|
|
316423
316498
|
|
|
316424
316499
|
var component;
|
|
316425
316500
|
|
|
@@ -316524,13 +316599,13 @@
|
|
|
316524
316599
|
RefAutoComplete$1.Option = Option;
|
|
316525
316600
|
RefAutoComplete$1.AntdAutoComplete = RefAutoComplete;
|
|
316526
316601
|
|
|
316527
|
-
var _excluded$
|
|
316602
|
+
var _excluded$2$ = ["children", "treeData", "value", "defaultLabel"];
|
|
316528
316603
|
var CLMTreeSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
316529
316604
|
var children = props.children,
|
|
316530
316605
|
treeData = props.treeData,
|
|
316531
316606
|
value = props.value,
|
|
316532
316607
|
defaultLabel = props.defaultLabel,
|
|
316533
|
-
resetProps = _objectWithoutProperties$1(props, _excluded$
|
|
316608
|
+
resetProps = _objectWithoutProperties$1(props, _excluded$2$);
|
|
316534
316609
|
|
|
316535
316610
|
var deepChildren = React.useCallback(function (arr) {
|
|
316536
316611
|
var flag = false;
|
|
@@ -316655,7 +316730,7 @@
|
|
|
316655
316730
|
return ErrorBoundary;
|
|
316656
316731
|
}(React.Component);
|
|
316657
316732
|
|
|
316658
|
-
var _excluded$
|
|
316733
|
+
var _excluded$30 = ["description", "prefixCls", "message", "banner", "className", "style", "onMouseEnter", "onMouseLeave", "onClick", "afterClose", "showIcon", "closable", "closeText", "closeIcon", "action", "duration"];
|
|
316659
316734
|
var iconMapFilled$1 = {
|
|
316660
316735
|
success: CheckCircleFilled$2,
|
|
316661
316736
|
info: InfoCircleFilled$2,
|
|
@@ -316728,7 +316803,7 @@
|
|
|
316728
316803
|
closeIcon = _ref$closeIcon === void 0 ? /*#__PURE__*/React.createElement(CloseOutlined$2, null) : _ref$closeIcon,
|
|
316729
316804
|
action = _ref.action,
|
|
316730
316805
|
duration = _ref.duration,
|
|
316731
|
-
props = _objectWithoutProperties$1(_ref, _excluded$
|
|
316806
|
+
props = _objectWithoutProperties$1(_ref, _excluded$30);
|
|
316732
316807
|
|
|
316733
316808
|
var _React$useState = React.useState(false),
|
|
316734
316809
|
_React$useState2 = _slicedToArray$1(_React$useState, 2),
|
|
@@ -317158,8 +317233,8 @@
|
|
|
317158
317233
|
};
|
|
317159
317234
|
};
|
|
317160
317235
|
|
|
317161
|
-
var _excluded$
|
|
317162
|
-
var prefixCls$
|
|
317236
|
+
var _excluded$31 = ["className", "onUrge", "onDeleteComment"];
|
|
317237
|
+
var prefixCls$b = 'lm_approval';
|
|
317163
317238
|
var colors = ['#36BCF1', '#AE86DC', '#8BD248', '#F5A173'];
|
|
317164
317239
|
var cacheColorMap = new Map();
|
|
317165
317240
|
|
|
@@ -317197,8 +317272,8 @@
|
|
|
317197
317272
|
_props$onAgree = props.onAgree,
|
|
317198
317273
|
onAgree = _props$onAgree === void 0 ? function () {} : _props$onAgree;
|
|
317199
317274
|
var status = getStatus(steps);
|
|
317200
|
-
var currentStatusCls = classnames(prefixCls$
|
|
317201
|
-
var drawerCls = classnames(prefixCls$
|
|
317275
|
+
var currentStatusCls = classnames(prefixCls$b + '_title_status');
|
|
317276
|
+
var drawerCls = classnames(prefixCls$b + '_drawer');
|
|
317202
317277
|
var statusText = ApprovalType.toText(ApprovalType.APPROVAL, status);
|
|
317203
317278
|
|
|
317204
317279
|
var handleClose = function handleClose() {
|
|
@@ -317265,7 +317340,7 @@
|
|
|
317265
317340
|
_user = props._user,
|
|
317266
317341
|
onUrge = props.onUrge,
|
|
317267
317342
|
onDeleteComment = props.onDeleteComment;
|
|
317268
|
-
var itemCls = classnames(prefixCls$
|
|
317343
|
+
var itemCls = classnames(prefixCls$b + '_item');
|
|
317269
317344
|
var itemHeaderCls = classnames(itemCls + '_header');
|
|
317270
317345
|
var itemBodyCls = classnames(itemCls + '_body', ApprovalType.isPending(type, approvalStatus) ? 'small' : '');
|
|
317271
317346
|
|
|
@@ -317566,7 +317641,7 @@
|
|
|
317566
317641
|
onUrge = _props$onUrge === void 0 ? function () {} : _props$onUrge,
|
|
317567
317642
|
_props$onDeleteCommen2 = props.onDeleteComment,
|
|
317568
317643
|
onDeleteComment = _props$onDeleteCommen2 === void 0 ? function () {} : _props$onDeleteCommen2,
|
|
317569
|
-
others = _objectWithoutProperties$1(props, _excluded$
|
|
317644
|
+
others = _objectWithoutProperties$1(props, _excluded$31);
|
|
317570
317645
|
|
|
317571
317646
|
var _useState = React.useState(false),
|
|
317572
317647
|
_useState2 = _slicedToArray$1(_useState, 2),
|
|
@@ -317591,7 +317666,7 @@
|
|
|
317591
317666
|
};
|
|
317592
317667
|
|
|
317593
317668
|
return /*#__PURE__*/React__default['default'].createElement(LMDrawer$1, _objectSpread({
|
|
317594
|
-
className: classnames(className, prefixCls$
|
|
317669
|
+
className: classnames(className, prefixCls$b)
|
|
317595
317670
|
}, others), /*#__PURE__*/React__default['default'].createElement(Approval, _objectSpread(_objectSpread({}, others), {}, {
|
|
317596
317671
|
onUrge: _onUrge,
|
|
317597
317672
|
onDeleteComment: onDeleteComment,
|
|
@@ -319357,7 +319432,7 @@
|
|
|
319357
319432
|
return nodes;
|
|
319358
319433
|
}
|
|
319359
319434
|
|
|
319360
|
-
var _excluded$
|
|
319435
|
+
var _excluded$32 = ["defaultExpandAll", "defaultExpandParent", "defaultExpandedKeys"],
|
|
319361
319436
|
_excluded2$J = ["prefixCls", "className"];
|
|
319362
319437
|
var ConfigContext$6 = ConfigProvider$1.ConfigContext;
|
|
319363
319438
|
|
|
@@ -319382,7 +319457,7 @@
|
|
|
319382
319457
|
var defaultExpandAll = _ref2.defaultExpandAll,
|
|
319383
319458
|
defaultExpandParent = _ref2.defaultExpandParent,
|
|
319384
319459
|
defaultExpandedKeys = _ref2.defaultExpandedKeys,
|
|
319385
|
-
props = _objectWithoutProperties$1(_ref2, _excluded$
|
|
319460
|
+
props = _objectWithoutProperties$1(_ref2, _excluded$32);
|
|
319386
319461
|
|
|
319387
319462
|
// Shift click usage
|
|
319388
319463
|
var lastSelectedKey = React.useRef();
|
|
@@ -319880,16 +319955,16 @@
|
|
|
319880
319955
|
blockNode: false
|
|
319881
319956
|
};
|
|
319882
319957
|
|
|
319883
|
-
var _excluded$
|
|
319884
|
-
var prefixCls$
|
|
319958
|
+
var _excluded$33 = ["className"];
|
|
319959
|
+
var prefixCls$c = 'lm_tree';
|
|
319885
319960
|
var LmTree = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
319886
319961
|
var className = props.className,
|
|
319887
|
-
rest = _objectWithoutProperties$1(props, _excluded$
|
|
319962
|
+
rest = _objectWithoutProperties$1(props, _excluded$33);
|
|
319888
319963
|
|
|
319889
319964
|
return /*#__PURE__*/React__default['default'].createElement(Tree$2, _objectSpread(_objectSpread({
|
|
319890
319965
|
ref: ref
|
|
319891
319966
|
}, rest), {}, {
|
|
319892
|
-
className: classnames(prefixCls$
|
|
319967
|
+
className: classnames(prefixCls$c, className)
|
|
319893
319968
|
}));
|
|
319894
319969
|
});
|
|
319895
319970
|
LmTree.TreeNode = Tree$2.TreeNode;
|
|
@@ -320943,7 +321018,7 @@
|
|
|
320943
321018
|
}, unitNodes);
|
|
320944
321019
|
}
|
|
320945
321020
|
|
|
320946
|
-
var _excluded$
|
|
321021
|
+
var _excluded$34 = ["prefixCls", "count", "className", "motionClassName", "style", "title", "show", "component", "children"];
|
|
320947
321022
|
|
|
320948
321023
|
var ScrollNumber$1 = function ScrollNumber(_ref) {
|
|
320949
321024
|
var customizePrefixCls = _ref.prefixCls,
|
|
@@ -320956,7 +321031,7 @@
|
|
|
320956
321031
|
_ref$component = _ref.component,
|
|
320957
321032
|
component = _ref$component === void 0 ? 'sup' : _ref$component,
|
|
320958
321033
|
children = _ref.children,
|
|
320959
|
-
restProps = _objectWithoutProperties$1(_ref, _excluded$
|
|
321034
|
+
restProps = _objectWithoutProperties$1(_ref, _excluded$34);
|
|
320960
321035
|
|
|
320961
321036
|
var _React$useContext = React.useContext(ConfigContext$1),
|
|
320962
321037
|
getPrefixCls = _React$useContext.getPrefixCls;
|
|
@@ -321006,7 +321081,7 @@
|
|
|
321006
321081
|
return /*#__PURE__*/React.createElement(component, newProps, numberNodes);
|
|
321007
321082
|
};
|
|
321008
321083
|
|
|
321009
|
-
var _excluded$
|
|
321084
|
+
var _excluded$35 = ["prefixCls", "scrollNumberPrefixCls", "children", "status", "text", "color", "count", "overflowCount", "dot", "size", "title", "offset", "style", "className", "showZero"];
|
|
321010
321085
|
|
|
321011
321086
|
var Badge$1 = function Badge(_ref) {
|
|
321012
321087
|
var _classNames, _classNames2;
|
|
@@ -321031,7 +321106,7 @@
|
|
|
321031
321106
|
className = _ref.className,
|
|
321032
321107
|
_ref$showZero = _ref.showZero,
|
|
321033
321108
|
showZero = _ref$showZero === void 0 ? false : _ref$showZero,
|
|
321034
|
-
restProps = _objectWithoutProperties$1(_ref, _excluded$
|
|
321109
|
+
restProps = _objectWithoutProperties$1(_ref, _excluded$35);
|
|
321035
321110
|
|
|
321036
321111
|
var _React$useContext = React.useContext(ConfigContext$1),
|
|
321037
321112
|
getPrefixCls = _React$useContext.getPrefixCls,
|
|
@@ -321166,7 +321241,7 @@
|
|
|
321166
321241
|
|
|
321167
321242
|
Badge$1.Ribbon = Ribbon$1;
|
|
321168
321243
|
|
|
321169
|
-
var _excluded$
|
|
321244
|
+
var _excluded$36 = ["prefixCls", "type", "orientation", "orientationMargin", "className", "children", "dashed", "plain"];
|
|
321170
321245
|
|
|
321171
321246
|
var Divider$5 = function Divider(props) {
|
|
321172
321247
|
var _classNames;
|
|
@@ -321185,7 +321260,7 @@
|
|
|
321185
321260
|
children = props.children,
|
|
321186
321261
|
dashed = props.dashed,
|
|
321187
321262
|
plain = props.plain,
|
|
321188
|
-
restProps = _objectWithoutProperties$1(props, _excluded$
|
|
321263
|
+
restProps = _objectWithoutProperties$1(props, _excluded$36);
|
|
321189
321264
|
|
|
321190
321265
|
var prefixCls = getPrefixCls('divider', customizePrefixCls);
|
|
321191
321266
|
var orientationPrefix = orientation.length > 0 ? "-".concat(orientation) : orientation;
|
|
@@ -323701,14 +323776,14 @@
|
|
|
323701
323776
|
|
|
323702
323777
|
var Body$1 = /*#__PURE__*/React__default['default'].memo(Index$b);
|
|
323703
323778
|
|
|
323704
|
-
var _excluded$
|
|
323779
|
+
var _excluded$37 = ["value", "onChange", "leftIcon", "rightIcon"];
|
|
323705
323780
|
|
|
323706
323781
|
var ResetSlider = function ResetSlider(_ref) {
|
|
323707
323782
|
var value = _ref.value,
|
|
323708
323783
|
_onChange = _ref.onChange,
|
|
323709
323784
|
leftIcon = _ref.leftIcon,
|
|
323710
323785
|
rightIcon = _ref.rightIcon,
|
|
323711
|
-
props = _objectWithoutProperties$1(_ref, _excluded$
|
|
323786
|
+
props = _objectWithoutProperties$1(_ref, _excluded$37);
|
|
323712
323787
|
|
|
323713
323788
|
// 减
|
|
323714
323789
|
var decrement = function decrement() {
|
|
@@ -323851,14 +323926,14 @@
|
|
|
323851
323926
|
|
|
323852
323927
|
var Container$2 = /*#__PURE__*/React__default['default'].memo(LmBoxContainer);
|
|
323853
323928
|
|
|
323854
|
-
var Wrapper = function Wrapper(_ref) {
|
|
323929
|
+
var Wrapper$1 = function Wrapper(_ref) {
|
|
323855
323930
|
var instance = _ref.instance;
|
|
323856
323931
|
return /*#__PURE__*/React__default['default'].createElement(Container$2, {
|
|
323857
323932
|
instance: instance
|
|
323858
323933
|
});
|
|
323859
323934
|
};
|
|
323860
323935
|
|
|
323861
|
-
var Wrapper$
|
|
323936
|
+
var Wrapper$2 = /*#__PURE__*/React__default['default'].memo(Wrapper$1);
|
|
323862
323937
|
|
|
323863
323938
|
var LmBox = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
323864
323939
|
var initialState = React.useMemo(function () {
|
|
@@ -323894,7 +323969,7 @@
|
|
|
323894
323969
|
}
|
|
323895
323970
|
}, RefMethods);
|
|
323896
323971
|
});
|
|
323897
|
-
return /*#__PURE__*/React__default['default'].createElement(Wrapper$
|
|
323972
|
+
return /*#__PURE__*/React__default['default'].createElement(Wrapper$2, {
|
|
323898
323973
|
instance: instance
|
|
323899
323974
|
});
|
|
323900
323975
|
});
|