assui 3.1.41 → 3.1.42
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.
|
@@ -77,7 +77,7 @@ var ConditionSelectInput = function ConditionSelectInput(props) {
|
|
|
77
77
|
/** 子选择器是否多选 */
|
|
78
78
|
var isSubSelectMultiple = (conditionSelectProps === null || conditionSelectProps === void 0 ? void 0 : conditionSelectProps.mode) === 'multiple';
|
|
79
79
|
useEffect(function () {
|
|
80
|
-
if (value && value.selectValue && optionsList.length) {
|
|
80
|
+
if (value && !isNil(value.selectValue) && optionsList.length) {
|
|
81
81
|
var _a = __read(optionsList.filter(function (item) {
|
|
82
82
|
return item.value === value.selectValue;
|
|
83
83
|
}), 1),
|
|
@@ -95,7 +95,7 @@ var ConditionSelectInput = function ConditionSelectInput(props) {
|
|
|
95
95
|
};
|
|
96
96
|
if (isSubSelectMultiple) {
|
|
97
97
|
finalSelectInputValue = __assign(__assign({}, finalSelectInputValue), {
|
|
98
|
-
finalSelectValue: selectValue ? findAllSubSelectItems(optionsList, selectValue) : undefined
|
|
98
|
+
finalSelectValue: !isNil(selectValue) ? findAllSubSelectItems(optionsList, selectValue) : undefined
|
|
99
99
|
});
|
|
100
100
|
}
|
|
101
101
|
setSelectInputValue(finalSelectInputValue);
|
|
@@ -79,7 +79,7 @@ var LabelConditionSelect = function LabelConditionSelect(props) {
|
|
|
79
79
|
/** 子选择器是否多选 */
|
|
80
80
|
var isSubSelectMultiple = (conditionSelectProps === null || conditionSelectProps === void 0 ? void 0 : conditionSelectProps.mode) === 'multiple';
|
|
81
81
|
useEffect(function () {
|
|
82
|
-
if (value && value.selectValue && optionsList.length) {
|
|
82
|
+
if (value && !isNil(value.selectValue) && optionsList.length) {
|
|
83
83
|
var _a = __read(optionsList.filter(function (item) {
|
|
84
84
|
return item.value === value.selectValue;
|
|
85
85
|
}), 1),
|
|
@@ -97,7 +97,7 @@ var LabelConditionSelect = function LabelConditionSelect(props) {
|
|
|
97
97
|
};
|
|
98
98
|
if (isSubSelectMultiple) {
|
|
99
99
|
finalSelectInputValue = __assign(__assign({}, finalSelectInputValue), {
|
|
100
|
-
finalSelectValue: selectValue ? findAllSubSelectItems(optionsList, selectValue) : undefined
|
|
100
|
+
finalSelectValue: !isNil(selectValue) ? findAllSubSelectItems(optionsList, selectValue) : undefined
|
|
101
101
|
});
|
|
102
102
|
}
|
|
103
103
|
setSelectInputValue(finalSelectInputValue);
|
|
@@ -121,7 +121,7 @@ var ConditionSelectInput = function ConditionSelectInput(props) {
|
|
|
121
121
|
/** 子选择器是否多选 */
|
|
122
122
|
var isSubSelectMultiple = (conditionSelectProps === null || conditionSelectProps === void 0 ? void 0 : conditionSelectProps.mode) === 'multiple';
|
|
123
123
|
(0, react_1.useEffect)(function () {
|
|
124
|
-
if (value && value.selectValue && optionsList.length) {
|
|
124
|
+
if (value && !(0, isNil_1["default"])(value.selectValue) && optionsList.length) {
|
|
125
125
|
var _a = __read(optionsList.filter(function (item) {
|
|
126
126
|
return item.value === value.selectValue;
|
|
127
127
|
}), 1),
|
|
@@ -139,7 +139,7 @@ var ConditionSelectInput = function ConditionSelectInput(props) {
|
|
|
139
139
|
};
|
|
140
140
|
if (isSubSelectMultiple) {
|
|
141
141
|
finalSelectInputValue = __assign(__assign({}, finalSelectInputValue), {
|
|
142
|
-
finalSelectValue: selectValue ? findAllSubSelectItems(optionsList, selectValue) : undefined
|
|
142
|
+
finalSelectValue: !(0, isNil_1["default"])(selectValue) ? findAllSubSelectItems(optionsList, selectValue) : undefined
|
|
143
143
|
});
|
|
144
144
|
}
|
|
145
145
|
setSelectInputValue(finalSelectInputValue);
|
|
@@ -123,7 +123,7 @@ var LabelConditionSelect = function LabelConditionSelect(props) {
|
|
|
123
123
|
/** 子选择器是否多选 */
|
|
124
124
|
var isSubSelectMultiple = (conditionSelectProps === null || conditionSelectProps === void 0 ? void 0 : conditionSelectProps.mode) === 'multiple';
|
|
125
125
|
(0, react_1.useEffect)(function () {
|
|
126
|
-
if (value && value.selectValue && optionsList.length) {
|
|
126
|
+
if (value && !(0, isNil_1["default"])(value.selectValue) && optionsList.length) {
|
|
127
127
|
var _a = __read(optionsList.filter(function (item) {
|
|
128
128
|
return item.value === value.selectValue;
|
|
129
129
|
}), 1),
|
|
@@ -141,7 +141,7 @@ var LabelConditionSelect = function LabelConditionSelect(props) {
|
|
|
141
141
|
};
|
|
142
142
|
if (isSubSelectMultiple) {
|
|
143
143
|
finalSelectInputValue = __assign(__assign({}, finalSelectInputValue), {
|
|
144
|
-
finalSelectValue: selectValue ? findAllSubSelectItems(optionsList, selectValue) : undefined
|
|
144
|
+
finalSelectValue: !(0, isNil_1["default"])(selectValue) ? findAllSubSelectItems(optionsList, selectValue) : undefined
|
|
145
145
|
});
|
|
146
146
|
}
|
|
147
147
|
setSelectInputValue(finalSelectInputValue);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "assui",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.42",
|
|
4
4
|
"description": "react ui library",
|
|
5
5
|
"author": "jason <usochen@gmail.com>",
|
|
6
6
|
"main": "./lib/index.js",
|
|
@@ -80,5 +80,5 @@
|
|
|
80
80
|
"node": ">=10.0.0"
|
|
81
81
|
},
|
|
82
82
|
"license": "MIT",
|
|
83
|
-
"gitHead": "
|
|
83
|
+
"gitHead": "67f6c3130c1e9c1200119e2f26816fe91b757ef7"
|
|
84
84
|
}
|