uiw 4.13.4 → 4.13.5
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.js +26 -20
- package/dist/uiw.min.js +1 -1
- package/package.json +57 -57
package/dist/uiw.js
CHANGED
|
@@ -7782,21 +7782,20 @@ var react_tag_esm_excluded = ["prefixCls", "className", "style", "title", "child
|
|
|
7782
7782
|
return null;
|
|
7783
7783
|
}
|
|
7784
7784
|
|
|
7785
|
-
var closeBtn = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(() => closable ? /*#__PURE__*/(0,jsx_runtime.jsx)("svg", {
|
|
7786
|
-
onClick: onClose,
|
|
7787
|
-
className: prefixCls + "-close",
|
|
7788
|
-
width: "15",
|
|
7789
|
-
height: "15",
|
|
7790
|
-
viewBox: "0 0 16 16",
|
|
7791
|
-
children: /*#__PURE__*/(0,jsx_runtime.jsx)("path", {
|
|
7792
|
-
d: "M9.41 8l2.29-2.29c.19-.18.3-.43.3-.71a1.003 1.003 0 0 0-1.71-.71L8 6.59l-2.29-2.3a1.003 1.003 0 0 0-1.42 1.42L6.59 8 4.3 10.29c-.19.18-.3.43-.3.71a1.003 1.003 0 0 0 1.71.71L8 9.41l2.29 2.29c.18.19.43.3.71.3a1.003 1.003 0 0 0 .71-1.71L9.41 8z"
|
|
7793
|
-
})
|
|
7794
|
-
}) : null, [closable]);
|
|
7795
7785
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("span", _extends({
|
|
7796
7786
|
className: cls,
|
|
7797
7787
|
style: styl
|
|
7798
7788
|
}, other, {
|
|
7799
|
-
children: [title || children,
|
|
7789
|
+
children: [title || children, closable ? /*#__PURE__*/(0,jsx_runtime.jsx)("svg", {
|
|
7790
|
+
onClick: onClose,
|
|
7791
|
+
className: prefixCls + "-close",
|
|
7792
|
+
width: "15",
|
|
7793
|
+
height: "15",
|
|
7794
|
+
viewBox: "0 0 16 16",
|
|
7795
|
+
children: /*#__PURE__*/(0,jsx_runtime.jsx)("path", {
|
|
7796
|
+
d: "M9.41 8l2.29-2.29c.19-.18.3-.43.3-.71a1.003 1.003 0 0 0-1.71-.71L8 6.59l-2.29-2.3a1.003 1.003 0 0 0-1.42 1.42L6.59 8 4.3 10.29c-.19.18-.3.43-.3.71a1.003 1.003 0 0 0 1.71.71L8 9.41l2.29 2.29c.18.19.43.3.71.3a1.003 1.003 0 0 0 .71-1.71L9.41 8z"
|
|
7797
|
+
})
|
|
7798
|
+
}) : null]
|
|
7800
7799
|
}));
|
|
7801
7800
|
});
|
|
7802
7801
|
|
|
@@ -8359,7 +8358,11 @@ function Step(props) {
|
|
|
8359
8358
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
8360
8359
|
className: prefixCls + "-item-tail",
|
|
8361
8360
|
style: stepItemDotStyle,
|
|
8362
|
-
children: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
8361
|
+
children: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
8362
|
+
style: {
|
|
8363
|
+
paddingRight: '100%'
|
|
8364
|
+
}
|
|
8365
|
+
})
|
|
8363
8366
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
8364
8367
|
className: prefixCls + "-item-head",
|
|
8365
8368
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
@@ -9594,7 +9597,7 @@ function Tree(props) {
|
|
|
9594
9597
|
// useEffect(() => setCurSelectedKeys(selectedKeys), [selectedKeys]);
|
|
9595
9598
|
|
|
9596
9599
|
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(() => {
|
|
9597
|
-
var arrOpenKeys = curOpenKeys;
|
|
9600
|
+
var arrOpenKeys = [...curOpenKeys];
|
|
9598
9601
|
|
|
9599
9602
|
if (defaultExpandAll) {
|
|
9600
9603
|
arrOpenKeys = getChildKeys(data);
|
|
@@ -9840,7 +9843,7 @@ function SearchTagInput(props) {
|
|
|
9840
9843
|
});
|
|
9841
9844
|
|
|
9842
9845
|
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().cloneElement(content, newProps);
|
|
9843
|
-
}, [selectedOption, options, emptyOption]);
|
|
9846
|
+
}, [JSON.parse(JSON.stringify(selectedOption)), options, emptyOption]);
|
|
9844
9847
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(Dropdown, _extends({
|
|
9845
9848
|
className: cls,
|
|
9846
9849
|
trigger: "focus"
|
|
@@ -10049,7 +10052,7 @@ function SearchTree(props) {
|
|
|
10049
10052
|
var [selectedOptions, selectedOptionSet] = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(options);
|
|
10050
10053
|
var [isEmpty, isEmptySet] = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(emptyOption);
|
|
10051
10054
|
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(() => {
|
|
10052
|
-
selectedValuesSet(value);
|
|
10055
|
+
selectedValuesSet(Array.isArray(value) ? value : []);
|
|
10053
10056
|
}, [JSON.stringify(value)]);
|
|
10054
10057
|
|
|
10055
10058
|
var selectedChange = (resultValue, cur, isChecked) => {
|
|
@@ -10070,18 +10073,21 @@ function SearchTree(props) {
|
|
|
10070
10073
|
};
|
|
10071
10074
|
|
|
10072
10075
|
var selectedSearch = searchValue => {
|
|
10073
|
-
var hiddenNodeForSeach = childrens
|
|
10076
|
+
var hiddenNodeForSeach = function hiddenNodeForSeach(childrens, parentIsHide) {
|
|
10077
|
+
if (parentIsHide === void 0) {
|
|
10078
|
+
parentIsHide = true;
|
|
10079
|
+
}
|
|
10080
|
+
|
|
10074
10081
|
childrens.forEach(child => {
|
|
10075
10082
|
var _child$children2;
|
|
10076
10083
|
|
|
10077
|
-
var isHide = !child.label.includes(searchValue);
|
|
10084
|
+
var isHide = !child.label.includes(searchValue.trim()) && parentIsHide;
|
|
10078
10085
|
|
|
10079
10086
|
if (!!((_child$children2 = child.children) != null && _child$children2.length)) {
|
|
10080
|
-
hiddenNodeForSeach(child.children);
|
|
10087
|
+
hiddenNodeForSeach(child.children, isHide);
|
|
10081
10088
|
var find = child.children.find(item => !item.hideNode);
|
|
10082
10089
|
child.hideNode = isHide && !find;
|
|
10083
10090
|
} else {
|
|
10084
|
-
// const isHide = !(child.label as string).includes(searchValue)
|
|
10085
10091
|
child.hideNode = isHide;
|
|
10086
10092
|
}
|
|
10087
10093
|
});
|
|
@@ -10096,7 +10102,7 @@ function SearchTree(props) {
|
|
|
10096
10102
|
|
|
10097
10103
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(esm_SearchTagInput, _extends({}, other, {
|
|
10098
10104
|
emptyOption: isEmpty,
|
|
10099
|
-
onSearch: debounce(selectedSearch,
|
|
10105
|
+
onSearch: debounce(selectedSearch, 600),
|
|
10100
10106
|
onChange: selectedChange,
|
|
10101
10107
|
values: selectedValues,
|
|
10102
10108
|
options: selectedOptions,
|