uiw 4.16.2 → 4.18.1
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/uiw.css +28 -2
- package/dist/uiw.js +165 -72
- package/dist/uiw.min.css +1 -1
- package/dist/uiw.min.js +1 -1
- package/package.json +60 -60
package/dist/uiw.css
CHANGED
|
@@ -2043,7 +2043,6 @@ sup.w-badge-count {
|
|
|
2043
2043
|
padding-left: 4px;
|
|
2044
2044
|
margin-right: 5px;
|
|
2045
2045
|
font-size: 14px;
|
|
2046
|
-
line-height: 14px;
|
|
2047
2046
|
}
|
|
2048
2047
|
|
|
2049
2048
|
.w-collapse {
|
|
@@ -3895,7 +3894,6 @@ a.w-list-item:hover:not(.w-disabled) {
|
|
|
3895
3894
|
box-shadow: 0 0 0 0 rgba(19, 124, 189, 0), 0 0 0 0 rgba(19, 124, 189, 0), inset 0 0 0 1px rgba(16, 22, 26, 0.15), inset 0 1px 1px rgba(16, 22, 26, 0.2);
|
|
3896
3895
|
box-sizing: border-box;
|
|
3897
3896
|
background: #fff;
|
|
3898
|
-
min-height: 30px;
|
|
3899
3897
|
margin: 0 !important;
|
|
3900
3898
|
padding: 3px 10px 3px 10px;
|
|
3901
3899
|
vertical-align: middle;
|
|
@@ -3925,6 +3923,20 @@ a.w-list-item:hover:not(.w-disabled) {
|
|
|
3925
3923
|
cursor: not-allowed;
|
|
3926
3924
|
resize: none;
|
|
3927
3925
|
}
|
|
3926
|
+
.w-search-select-inner-inner-small {
|
|
3927
|
+
height: 20px;
|
|
3928
|
+
}
|
|
3929
|
+
.w-search-select-inner-inner-large {
|
|
3930
|
+
height: 30px;
|
|
3931
|
+
}
|
|
3932
|
+
.w-search-select-inner .w-input-small .w-input-inner {
|
|
3933
|
+
height: 16px;
|
|
3934
|
+
font-size: 10px;
|
|
3935
|
+
padding: 0px;
|
|
3936
|
+
}
|
|
3937
|
+
.w-search-select-inner .w-input-large .w-input-inner {
|
|
3938
|
+
height: 28px;
|
|
3939
|
+
}
|
|
3928
3940
|
.w-search-select-multiple-colse {
|
|
3929
3941
|
left: 7px;
|
|
3930
3942
|
font-size: 15px;
|
|
@@ -5119,6 +5131,20 @@ a.w-list-item:hover:not(.w-disabled) {
|
|
|
5119
5131
|
display: flex;
|
|
5120
5132
|
align-content: center;
|
|
5121
5133
|
}
|
|
5134
|
+
.w-search-tree-inner-inner-small {
|
|
5135
|
+
height: 20px;
|
|
5136
|
+
}
|
|
5137
|
+
.w-search-tree-inner-inner-large {
|
|
5138
|
+
height: 30px;
|
|
5139
|
+
}
|
|
5140
|
+
.w-search-tree-inner .w-input-small .w-input-inner {
|
|
5141
|
+
height: 16px;
|
|
5142
|
+
font-size: 10px;
|
|
5143
|
+
padding: 0px;
|
|
5144
|
+
}
|
|
5145
|
+
.w-search-tree-inner .w-input-large .w-input-inner {
|
|
5146
|
+
height: 28px;
|
|
5147
|
+
}
|
|
5122
5148
|
|
|
5123
5149
|
.w-transfer {
|
|
5124
5150
|
display: flex;
|
package/dist/uiw.js
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
exports["uiw"] = factory(require("react"), require("react-dom"));
|
|
8
8
|
else
|
|
9
9
|
root["uiw"] = factory(root["React"], root["ReactDOM"]);
|
|
10
|
-
})(self,
|
|
10
|
+
})(self, (__WEBPACK_EXTERNAL_MODULE__787__, __WEBPACK_EXTERNAL_MODULE__156__) => {
|
|
11
11
|
return /******/ (() => { // webpackBootstrap
|
|
12
12
|
/******/ var __webpack_modules__ = ({
|
|
13
13
|
|
|
@@ -371,6 +371,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
371
371
|
"Progress": () => (/* reexport */ react_progress_esm),
|
|
372
372
|
"Radio": () => (/* reexport */ Radio),
|
|
373
373
|
"RadioAbstract": () => (/* reexport */ RadioAbstract),
|
|
374
|
+
"RadioButton": () => (/* reexport */ esm_RadioButton),
|
|
374
375
|
"RadioGroup": () => (/* reexport */ RadioGroup),
|
|
375
376
|
"Rate": () => (/* reexport */ Rate),
|
|
376
377
|
"Row": () => (/* reexport */ Row_Row),
|
|
@@ -2853,7 +2854,7 @@ var normalizeDelay = delay => delay && typeof delay === 'object' ? delay : {
|
|
|
2853
2854
|
}
|
|
2854
2855
|
|
|
2855
2856
|
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(() => {
|
|
2856
|
-
if (isClickOutside) {
|
|
2857
|
+
if (isClickOutside && isOpen) {
|
|
2857
2858
|
document && document.addEventListener('mousedown', handleClickOutside);
|
|
2858
2859
|
window.addEventListener('resize', handleResize);
|
|
2859
2860
|
}
|
|
@@ -2862,7 +2863,7 @@ var normalizeDelay = delay => delay && typeof delay === 'object' ? delay : {
|
|
|
2862
2863
|
document && isClickOutside && document.removeEventListener('mousedown', handleClickOutside);
|
|
2863
2864
|
window.removeEventListener('resize', handleResize);
|
|
2864
2865
|
};
|
|
2865
|
-
}, []);
|
|
2866
|
+
}, [isOpen]);
|
|
2866
2867
|
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(() => {
|
|
2867
2868
|
if (props.isOpen !== isOpen) {
|
|
2868
2869
|
setIsOpen(!!props.isOpen);
|
|
@@ -2883,9 +2884,11 @@ var normalizeDelay = delay => delay && typeof delay === 'object' ? delay : {
|
|
|
2883
2884
|
}, [isOpen]);
|
|
2884
2885
|
|
|
2885
2886
|
var handleResize = () => {
|
|
2886
|
-
|
|
2887
|
-
|
|
2888
|
-
|
|
2887
|
+
if (isOpen) {
|
|
2888
|
+
zIndex.current -= 1;
|
|
2889
|
+
setIsOpen(false);
|
|
2890
|
+
onVisibleChange && onVisibleChange(false);
|
|
2891
|
+
}
|
|
2889
2892
|
};
|
|
2890
2893
|
|
|
2891
2894
|
var handleClickOutside = e => {
|
|
@@ -4552,6 +4555,8 @@ function Cascader(props) {
|
|
|
4552
4555
|
value,
|
|
4553
4556
|
onChange,
|
|
4554
4557
|
onSearch,
|
|
4558
|
+
size,
|
|
4559
|
+
disabled,
|
|
4555
4560
|
allowClear,
|
|
4556
4561
|
placeholder,
|
|
4557
4562
|
prefixCls = 'w-cascader',
|
|
@@ -4560,7 +4565,8 @@ function Cascader(props) {
|
|
|
4560
4565
|
width: 200
|
|
4561
4566
|
},
|
|
4562
4567
|
option = [],
|
|
4563
|
-
others
|
|
4568
|
+
others,
|
|
4569
|
+
inputProps
|
|
4564
4570
|
} = props;
|
|
4565
4571
|
var cls = [prefixCls, className].filter(Boolean).join(' ').trim();
|
|
4566
4572
|
var [innerIsOpen, setInnerIsOpen] = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(false);
|
|
@@ -4667,7 +4673,7 @@ function Cascader(props) {
|
|
|
4667
4673
|
onSearch && handelSearch(value);
|
|
4668
4674
|
};
|
|
4669
4675
|
|
|
4670
|
-
var widths = (style == null ? void 0 : style.width) * 0.
|
|
4676
|
+
var widths = (style == null ? void 0 : style.width) * 0.7 || undefined;
|
|
4671
4677
|
|
|
4672
4678
|
var OptionIter = function OptionIter(option, level) {
|
|
4673
4679
|
if (level === void 0) {
|
|
@@ -4712,12 +4718,13 @@ function Cascader(props) {
|
|
|
4712
4718
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(Dropdown, _extends({
|
|
4713
4719
|
className: cls,
|
|
4714
4720
|
trigger: "click",
|
|
4715
|
-
style:
|
|
4721
|
+
style: {
|
|
4716
4722
|
marginTop: 5
|
|
4717
|
-
},
|
|
4723
|
+
},
|
|
4718
4724
|
overlayStyl: {
|
|
4719
4725
|
width: 100
|
|
4720
|
-
}
|
|
4726
|
+
},
|
|
4727
|
+
disabled: disabled
|
|
4721
4728
|
}, others, {
|
|
4722
4729
|
onVisibleChange: onVisibleChange,
|
|
4723
4730
|
isOpen: innerIsOpen,
|
|
@@ -4756,13 +4763,13 @@ function Cascader(props) {
|
|
|
4756
4763
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
4757
4764
|
onMouseLeave: () => renderSelectIcon('leave'),
|
|
4758
4765
|
onMouseOver: () => renderSelectIcon('enter'),
|
|
4759
|
-
children: /*#__PURE__*/(0,jsx_runtime.jsx)(react_input_esm, {
|
|
4766
|
+
children: /*#__PURE__*/(0,jsx_runtime.jsx)(react_input_esm, _extends({}, inputProps, {
|
|
4760
4767
|
value: searchOn ? searchText : inputValue,
|
|
4761
4768
|
onChange: inputChange,
|
|
4769
|
+
size: size,
|
|
4770
|
+
disabled: disabled,
|
|
4762
4771
|
placeholder: searchOn ? inputValue : placeholder,
|
|
4763
|
-
style:
|
|
4764
|
-
width: style == null ? void 0 : style.width
|
|
4765
|
-
},
|
|
4772
|
+
style: style,
|
|
4766
4773
|
onFocus: () => onSearch && setSearchOn(true),
|
|
4767
4774
|
onBlur: () => onSearch && setSearchOn(false),
|
|
4768
4775
|
readOnly: !onSearch,
|
|
@@ -4770,13 +4777,13 @@ function Cascader(props) {
|
|
|
4770
4777
|
style: {
|
|
4771
4778
|
width: 'auto'
|
|
4772
4779
|
},
|
|
4773
|
-
children: selectIconType === 'close' && /*#__PURE__*/(0,jsx_runtime.jsx)(Icon, {
|
|
4780
|
+
children: !disabled && selectIconType === 'close' && /*#__PURE__*/(0,jsx_runtime.jsx)(Icon, {
|
|
4774
4781
|
type: selectIconType,
|
|
4775
4782
|
onClick: onClear,
|
|
4776
4783
|
className: prefixCls + "-close"
|
|
4777
4784
|
})
|
|
4778
4785
|
})
|
|
4779
|
-
})
|
|
4786
|
+
}))
|
|
4780
4787
|
})
|
|
4781
4788
|
}));
|
|
4782
4789
|
}
|
|
@@ -4874,6 +4881,7 @@ var RadioGroup_excluded = ["prefixCls", "className", "name", "value", "onChange"
|
|
|
4874
4881
|
|
|
4875
4882
|
|
|
4876
4883
|
|
|
4884
|
+
|
|
4877
4885
|
/* harmony default export */ const RadioGroup = (/*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().forwardRef((props, ref) => {
|
|
4878
4886
|
var {
|
|
4879
4887
|
prefixCls = 'w-radio-group',
|
|
@@ -4888,18 +4896,88 @@ var RadioGroup_excluded = ["prefixCls", "className", "name", "value", "onChange"
|
|
|
4888
4896
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", _extends({}, other, {
|
|
4889
4897
|
ref: ref,
|
|
4890
4898
|
className: [prefixCls, className].filter(Boolean).join(' ').trim(),
|
|
4891
|
-
children:
|
|
4892
|
-
|
|
4893
|
-
|
|
4894
|
-
|
|
4895
|
-
|
|
4896
|
-
|
|
4897
|
-
|
|
4898
|
-
|
|
4899
|
+
children: /*#__PURE__*/(0,jsx_runtime.jsx)(react_button_group_esm, {
|
|
4900
|
+
children: external_root_React_commonjs2_react_commonjs_react_amd_react_default().Children.toArray(children).map(child => {
|
|
4901
|
+
if (!child) return;
|
|
4902
|
+
if (! /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().isValidElement(child)) return child;
|
|
4903
|
+
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().cloneElement(child, _extends({}, child.props || {}, {
|
|
4904
|
+
checked: child.props.value === value,
|
|
4905
|
+
name,
|
|
4906
|
+
onChange
|
|
4907
|
+
}));
|
|
4908
|
+
})
|
|
4899
4909
|
})
|
|
4900
4910
|
}));
|
|
4901
4911
|
}));
|
|
4902
4912
|
|
|
4913
|
+
;// CONCATENATED MODULE: ../react-radio/esm/RadioButton.js
|
|
4914
|
+
|
|
4915
|
+
|
|
4916
|
+
var RadioButton_excluded = ["prefixCls", "type", "disabled", "value", "className", "style", "children", "size", "checked", "onChange"];
|
|
4917
|
+
|
|
4918
|
+
|
|
4919
|
+
/**
|
|
4920
|
+
* Constructs a type by picking all properties from `HTMLInputProps` and then removing `size`.
|
|
4921
|
+
* Omit: https://www.typescriptlang.org/docs/handbook/utility-types.html#omittk
|
|
4922
|
+
*/
|
|
4923
|
+
|
|
4924
|
+
|
|
4925
|
+
var RadioButton = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().forwardRef((props, ref) => {
|
|
4926
|
+
var {
|
|
4927
|
+
prefixCls = 'w-radio',
|
|
4928
|
+
type = 'button',
|
|
4929
|
+
disabled = false,
|
|
4930
|
+
value = '',
|
|
4931
|
+
className,
|
|
4932
|
+
style,
|
|
4933
|
+
children,
|
|
4934
|
+
size = 'small',
|
|
4935
|
+
checked: prChecked = false,
|
|
4936
|
+
onChange
|
|
4937
|
+
} = props,
|
|
4938
|
+
other = _objectWithoutPropertiesLoose(props, RadioButton_excluded);
|
|
4939
|
+
|
|
4940
|
+
var [checked, setChecked] = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(prChecked);
|
|
4941
|
+
var [prevChecked, setPrevChecked] = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)();
|
|
4942
|
+
|
|
4943
|
+
if (prChecked !== prevChecked) {
|
|
4944
|
+
setPrevChecked(prChecked);
|
|
4945
|
+
}
|
|
4946
|
+
|
|
4947
|
+
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(() => {
|
|
4948
|
+
if (prChecked !== prevChecked) {
|
|
4949
|
+
setChecked(prChecked);
|
|
4950
|
+
}
|
|
4951
|
+
}, [prevChecked]);
|
|
4952
|
+
var cls = [prefixCls, className, disabled ? 'disabled' : null, size ? prefixCls + "-" + size : null].filter(Boolean).join(' ').trim();
|
|
4953
|
+
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(() => {
|
|
4954
|
+
if (checked !== props.checked) {
|
|
4955
|
+
setChecked(!!props.checked);
|
|
4956
|
+
}
|
|
4957
|
+
}, [props.checked]);
|
|
4958
|
+
console.log('props.checked', props.checked);
|
|
4959
|
+
|
|
4960
|
+
function handleChange(e) {
|
|
4961
|
+
e.persist();
|
|
4962
|
+
setChecked(!checked);
|
|
4963
|
+
onChange && onChange(value);
|
|
4964
|
+
}
|
|
4965
|
+
|
|
4966
|
+
var label = children || value;
|
|
4967
|
+
return /*#__PURE__*/(0,jsx_runtime.jsx)(esm, _extends({}, _extends({}, other, {
|
|
4968
|
+
className: cls,
|
|
4969
|
+
style,
|
|
4970
|
+
disabled,
|
|
4971
|
+
value
|
|
4972
|
+
}), {
|
|
4973
|
+
type: checked ? 'primary' : 'light',
|
|
4974
|
+
ref: ref,
|
|
4975
|
+
onClick: handleChange,
|
|
4976
|
+
children: label
|
|
4977
|
+
}));
|
|
4978
|
+
});
|
|
4979
|
+
/* harmony default export */ const esm_RadioButton = (RadioButton);
|
|
4980
|
+
|
|
4903
4981
|
;// CONCATENATED MODULE: ../react-radio/esm/index.js
|
|
4904
4982
|
|
|
4905
4983
|
|
|
@@ -4907,6 +4985,8 @@ var RadioGroup_excluded = ["prefixCls", "className", "name", "value", "onChange"
|
|
|
4907
4985
|
|
|
4908
4986
|
|
|
4909
4987
|
|
|
4988
|
+
|
|
4989
|
+
|
|
4910
4990
|
;// CONCATENATED MODULE: ../react-checkbox/esm/style/group.css
|
|
4911
4991
|
// extracted by mini-css-extract-plugin
|
|
4912
4992
|
/* harmony default export */ const style_group = ({});
|
|
@@ -8227,7 +8307,7 @@ var react_tag_esm_excluded = ["prefixCls", "className", "style", "title", "child
|
|
|
8227
8307
|
;// CONCATENATED MODULE: ../react-search-select/esm/index.js
|
|
8228
8308
|
|
|
8229
8309
|
|
|
8230
|
-
var react_search_select_esm_excluded = ["allowClear", "disabled", "
|
|
8310
|
+
var react_search_select_esm_excluded = ["allowClear", "disabled", "valueAmount", "size", "option", "maxTagCount", "loading", "labelInValue", "prefixCls", "className", "mode", "style", "isOpen", "value", "defaultValue", "showSearch", "tagProps", "placeholder", "onSearch", "onChange", "onSelect"];
|
|
8231
8311
|
|
|
8232
8312
|
|
|
8233
8313
|
|
|
@@ -8240,15 +8320,21 @@ var react_search_select_esm_excluded = ["allowClear", "disabled", "size", "maxTa
|
|
|
8240
8320
|
|
|
8241
8321
|
|
|
8242
8322
|
|
|
8323
|
+
var TagSize = {
|
|
8324
|
+
large: 25,
|
|
8325
|
+
default: 20,
|
|
8326
|
+
small: 17
|
|
8327
|
+
};
|
|
8243
8328
|
function SearchSelect(props) {
|
|
8244
8329
|
var _style$width;
|
|
8245
8330
|
|
|
8246
8331
|
var {
|
|
8247
8332
|
allowClear = false,
|
|
8248
8333
|
disabled = false,
|
|
8334
|
+
valueAmount,
|
|
8249
8335
|
size = 'default',
|
|
8250
|
-
maxTagCount,
|
|
8251
8336
|
option = [],
|
|
8337
|
+
maxTagCount,
|
|
8252
8338
|
loading = false,
|
|
8253
8339
|
labelInValue = false,
|
|
8254
8340
|
prefixCls = 'w-search-select',
|
|
@@ -8326,7 +8412,7 @@ function SearchSelect(props) {
|
|
|
8326
8412
|
}
|
|
8327
8413
|
|
|
8328
8414
|
if (!isMultiple && opts.length > 0) setSelectedLabel(opts[0].label || '');
|
|
8329
|
-
setSelectedValue(opts);
|
|
8415
|
+
setSelectedValue(opts.slice(0, valueAmount));
|
|
8330
8416
|
}
|
|
8331
8417
|
|
|
8332
8418
|
function removeSelectItem(index) {
|
|
@@ -8350,7 +8436,7 @@ function SearchSelect(props) {
|
|
|
8350
8436
|
}
|
|
8351
8437
|
|
|
8352
8438
|
function handleItemsClick(index, item) {
|
|
8353
|
-
var values = index !== -1 ? removeSelectItem(index) : [...selectedValue, item];
|
|
8439
|
+
var values = index !== -1 ? removeSelectItem(index) : [...selectedValue.slice(0, valueAmount ? valueAmount - 1 : undefined), item];
|
|
8354
8440
|
var resultValue = values.map(item => item.value);
|
|
8355
8441
|
handleChange(resultValue, values);
|
|
8356
8442
|
}
|
|
@@ -8469,7 +8555,7 @@ function SearchSelect(props) {
|
|
|
8469
8555
|
maxWidth: 'none'
|
|
8470
8556
|
}, style),
|
|
8471
8557
|
children: isMultiple ? /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
8472
|
-
className: prefixCls + "-inner",
|
|
8558
|
+
className: [prefixCls + "-inner", prefixCls + "-" + size].filter(Boolean).join(' ').trim(),
|
|
8473
8559
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
8474
8560
|
style: {
|
|
8475
8561
|
display: 'flex',
|
|
@@ -8479,12 +8565,11 @@ function SearchSelect(props) {
|
|
|
8479
8565
|
children: [isMultiple && selectedValue.slice(0, maxTagCount).map((item, index) => {
|
|
8480
8566
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(react_tag_esm, _extends({
|
|
8481
8567
|
style: _extends({
|
|
8482
|
-
height:
|
|
8568
|
+
height: TagSize[size],
|
|
8483
8569
|
margin: 1,
|
|
8484
8570
|
display: 'flex',
|
|
8485
8571
|
alignItems: 'center'
|
|
8486
8572
|
}, tagProps.style),
|
|
8487
|
-
className: prefixCls + "-tag",
|
|
8488
8573
|
color: "#393E48"
|
|
8489
8574
|
}, tagProps, {
|
|
8490
8575
|
closable: true,
|
|
@@ -9712,9 +9797,9 @@ function TableTr(props) {
|
|
|
9712
9797
|
|
|
9713
9798
|
if (keyName.fixed) {
|
|
9714
9799
|
if (keyName.fixed === 'right') {
|
|
9715
|
-
objs.className =
|
|
9800
|
+
objs.className = prefixCls + "-fixed-right";
|
|
9716
9801
|
} else {
|
|
9717
|
-
objs.className =
|
|
9802
|
+
objs.className = prefixCls + "-fixed-true";
|
|
9718
9803
|
}
|
|
9719
9804
|
}
|
|
9720
9805
|
|
|
@@ -9725,7 +9810,7 @@ function TableTr(props) {
|
|
|
9725
9810
|
children: objs.children
|
|
9726
9811
|
}),
|
|
9727
9812
|
key: colNum,
|
|
9728
|
-
className: prefixCls +
|
|
9813
|
+
className: [prefixCls + '-tr-children-' + (keyName.align || 'left'), keyName.className, objs.className].filter(it => it).join(' ').trim(),
|
|
9729
9814
|
onClick: evn => onCell(trData, {
|
|
9730
9815
|
rowNum,
|
|
9731
9816
|
colNum,
|
|
@@ -9800,54 +9885,55 @@ function Table(props) {
|
|
|
9800
9885
|
}
|
|
9801
9886
|
};
|
|
9802
9887
|
|
|
9803
|
-
var deepClumnsLocation = (params, fistIndex
|
|
9888
|
+
var deepClumnsLocation = (params, fistIndex) => {
|
|
9804
9889
|
var initialValue = 0,
|
|
9805
|
-
|
|
9890
|
+
headerIndex = 0,
|
|
9806
9891
|
deepParams = [];
|
|
9807
|
-
params.forEach(() => {
|
|
9808
|
-
var
|
|
9809
|
-
var i = "" + fistIndex + abs;
|
|
9892
|
+
params.forEach((_, index) => {
|
|
9893
|
+
var i = "" + fistIndex + headerIndex;
|
|
9810
9894
|
|
|
9811
|
-
if (
|
|
9812
|
-
|
|
9813
|
-
|
|
9814
|
-
lastIndex -= 1;
|
|
9815
|
-
}
|
|
9816
|
-
|
|
9817
|
-
if (typeof params[abs] === 'number') {
|
|
9818
|
-
initialValue = params[abs] + initialValue;
|
|
9819
|
-
deepParams.push(params[abs]);
|
|
9895
|
+
if (typeof params[index] === 'number') {
|
|
9896
|
+
initialValue = params[index] + initialValue;
|
|
9897
|
+
deepParams.push(params[index]);
|
|
9820
9898
|
return;
|
|
9821
9899
|
}
|
|
9822
9900
|
|
|
9823
9901
|
if (finalLocationWidth.current[i]) {
|
|
9824
|
-
finalLocationWidth.current[i]
|
|
9902
|
+
finalLocationWidth.current[i].left = initialValue;
|
|
9825
9903
|
initialValue = finalLocationWidth.current[i].width + initialValue;
|
|
9904
|
+
|
|
9905
|
+
if (Array.isArray(params[index].children)) {
|
|
9906
|
+
deepParams.push(...params[index].children);
|
|
9907
|
+
} else {
|
|
9908
|
+
deepParams.push(finalLocationWidth.current[i].width);
|
|
9909
|
+
}
|
|
9826
9910
|
}
|
|
9827
9911
|
|
|
9828
|
-
|
|
9829
|
-
|
|
9830
|
-
|
|
9912
|
+
headerIndex += 1;
|
|
9913
|
+
});
|
|
9914
|
+
initialValue = 0, headerIndex = header[fistIndex].length - 1;
|
|
9915
|
+
|
|
9916
|
+
for (var _index = params.length - 1; _index >= 0; _index--) {
|
|
9917
|
+
var i = "" + fistIndex + headerIndex;
|
|
9918
|
+
|
|
9919
|
+
if (typeof params[_index] === 'number') {
|
|
9920
|
+
initialValue = params[_index] + initialValue;
|
|
9921
|
+
continue;
|
|
9831
9922
|
}
|
|
9832
9923
|
|
|
9833
9924
|
if (finalLocationWidth.current[i]) {
|
|
9834
|
-
|
|
9835
|
-
|
|
9836
|
-
var parent = header.find(it => it.find(it => it.key === params[abs].key)) || [];
|
|
9837
|
-
var sub = parent.findIndex(it => it.key === params[abs].key);
|
|
9838
|
-
|
|
9839
|
-
if (finalLocationWidth.current["" + i[0] + sub]) {
|
|
9840
|
-
// 合并单元格
|
|
9841
|
-
deepParams.push(finalLocationWidth.current["" + i[0] + sub].width);
|
|
9842
|
-
}
|
|
9925
|
+
finalLocationWidth.current[i].right = initialValue;
|
|
9926
|
+
initialValue = finalLocationWidth.current[i].width + initialValue;
|
|
9843
9927
|
}
|
|
9844
|
-
|
|
9845
|
-
|
|
9928
|
+
|
|
9929
|
+
headerIndex -= 1;
|
|
9930
|
+
}
|
|
9931
|
+
|
|
9932
|
+
if (deepParams.filter(it => typeof it !== 'number').length) deepClumnsLocation(deepParams, fistIndex + 1);
|
|
9846
9933
|
};
|
|
9847
9934
|
|
|
9848
9935
|
var computed = () => {
|
|
9849
|
-
deepClumnsLocation(columns, 0
|
|
9850
|
-
deepClumnsLocation(columns, 0, 'right', false);
|
|
9936
|
+
deepClumnsLocation(columns, 0);
|
|
9851
9937
|
return finalLocationWidth.current;
|
|
9852
9938
|
};
|
|
9853
9939
|
|
|
@@ -10768,6 +10854,11 @@ function TreeChecked(_ref) {
|
|
|
10768
10854
|
|
|
10769
10855
|
|
|
10770
10856
|
|
|
10857
|
+
var SearchTagInput_TagSize = {
|
|
10858
|
+
large: 25,
|
|
10859
|
+
default: 20,
|
|
10860
|
+
small: 17
|
|
10861
|
+
};
|
|
10771
10862
|
|
|
10772
10863
|
function SearchTagInput(props) {
|
|
10773
10864
|
var {
|
|
@@ -10780,6 +10871,7 @@ function SearchTagInput(props) {
|
|
|
10780
10871
|
className,
|
|
10781
10872
|
style,
|
|
10782
10873
|
placeholder,
|
|
10874
|
+
tagProps = {},
|
|
10783
10875
|
content,
|
|
10784
10876
|
options,
|
|
10785
10877
|
values,
|
|
@@ -10900,11 +10992,11 @@ function SearchTagInput(props) {
|
|
|
10900
10992
|
return (_inputRef$current2 = inputRef.current) == null ? void 0 : _inputRef$current2.focus();
|
|
10901
10993
|
},
|
|
10902
10994
|
style: _extends({
|
|
10903
|
-
minWidth: 200,
|
|
10995
|
+
minWidth: (style == null ? void 0 : style.width) || 200,
|
|
10904
10996
|
maxWidth: 'none'
|
|
10905
10997
|
}, style),
|
|
10906
10998
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
10907
|
-
className: prefixCls + "-inner",
|
|
10999
|
+
className: [prefixCls + "-inner", prefixCls + "-" + size].filter(Boolean).join(' ').trim(),
|
|
10908
11000
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
10909
11001
|
style: {
|
|
10910
11002
|
display: 'flex',
|
|
@@ -10912,23 +11004,24 @@ function SearchTagInput(props) {
|
|
|
10912
11004
|
width: '100%'
|
|
10913
11005
|
},
|
|
10914
11006
|
children: [selectedOption.map((item, index) => {
|
|
10915
|
-
return /*#__PURE__*/(0,jsx_runtime.jsx)(react_tag_esm, {
|
|
11007
|
+
return /*#__PURE__*/(0,jsx_runtime.jsx)(react_tag_esm, _extends({
|
|
10916
11008
|
style: {
|
|
10917
|
-
height:
|
|
11009
|
+
height: SearchTagInput_TagSize[size],
|
|
10918
11010
|
margin: 1,
|
|
10919
11011
|
display: 'flex',
|
|
10920
11012
|
alignItems: 'center'
|
|
10921
11013
|
},
|
|
10922
11014
|
className: prefixCls + "-tag",
|
|
10923
11015
|
closable: true,
|
|
11016
|
+
color: "#393E48"
|
|
11017
|
+
}, tagProps, {
|
|
10924
11018
|
disabled: disabled,
|
|
10925
|
-
color: "#393E48",
|
|
10926
11019
|
onClose: e => {
|
|
10927
11020
|
e.stopPropagation();
|
|
10928
11021
|
removeSelectItem(index);
|
|
10929
11022
|
},
|
|
10930
11023
|
children: item.label
|
|
10931
|
-
}, index);
|
|
11024
|
+
}), index);
|
|
10932
11025
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(react_input_esm, {
|
|
10933
11026
|
ref: inputRef,
|
|
10934
11027
|
style: {},
|