@zgfe/business-lib 1.2.71-hxd.12 → 1.2.71-hxd.13
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.
|
@@ -83,10 +83,6 @@ var AttrListPanel = function AttrListPanel(props) {
|
|
|
83
83
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
84
84
|
eventAttrsList = _useState12[0],
|
|
85
85
|
setEventAttrsList = _useState12[1];
|
|
86
|
-
var _useState13 = useState([]),
|
|
87
|
-
_useState14 = _slicedToArray(_useState13, 2),
|
|
88
|
-
showList = _useState14[0],
|
|
89
|
-
setShowList = _useState14[1];
|
|
90
86
|
useEffect(function () {
|
|
91
87
|
var data = {
|
|
92
88
|
container: "container-".concat(id),
|
|
@@ -437,10 +433,7 @@ var AttrListPanel = function AttrListPanel(props) {
|
|
|
437
433
|
setCurrentAttr(option);
|
|
438
434
|
if (props.onChange) props.onChange(option);
|
|
439
435
|
}
|
|
440
|
-
|
|
441
|
-
setShowList(onShowList());
|
|
442
|
-
}, [eventAttrsList]);
|
|
443
|
-
var onShowList = function onShowList() {
|
|
436
|
+
var showList = function () {
|
|
444
437
|
var list = [];
|
|
445
438
|
optionList.map(function (group) {
|
|
446
439
|
var _group$children;
|
|
@@ -477,7 +470,7 @@ var AttrListPanel = function AttrListPanel(props) {
|
|
|
477
470
|
}
|
|
478
471
|
});
|
|
479
472
|
return list;
|
|
480
|
-
};
|
|
473
|
+
}();
|
|
481
474
|
if (!showList.length && !searchValue) return /*#__PURE__*/React.createElement("div", {
|
|
482
475
|
className: "".concat(classPrefix, "-drowdown nodata")
|
|
483
476
|
}, "\u6682\u65E0\u6570\u636E");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zgfe/business-lib",
|
|
3
|
-
"version": "1.2.71-hxd.
|
|
3
|
+
"version": "1.2.71-hxd.13",
|
|
4
4
|
"module": "es/index.js",
|
|
5
5
|
"typings": "es/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"react": "^16.12.0 || ^17.0.0",
|
|
56
56
|
"yorkie": "^2.0.0"
|
|
57
57
|
},
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "7c4e4f801b33cf75b8a0c241bf75fcd821fdc031",
|
|
59
59
|
"gitHooks": {
|
|
60
60
|
"pre-commit": "lint-staged"
|
|
61
61
|
}
|