ztxkui 4.2.18-92 → 4.2.18-93
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/Demo.js
CHANGED
|
@@ -137,7 +137,9 @@ function Demo() {
|
|
|
137
137
|
React.createElement(EnhanceSelect, { style: selectStyle, placeholder: i18next.t('一次性加载数据'), url: "http://base-test.zmdms.com.cn:30079/api/zmdms-system/company/list", request: request, dataKey: "id", titleKey: "name", isClickRequest: true, isPaste: true, isCatch: true, mode: "multiple", value: value3, onChange: function (value, option, fullData) {
|
|
138
138
|
console.log(value);
|
|
139
139
|
setValue3(value);
|
|
140
|
-
}
|
|
140
|
+
},
|
|
141
|
+
// open={false}
|
|
142
|
+
isPasteAddItem: true }),
|
|
141
143
|
React.createElement("button", { onClick: function () {
|
|
142
144
|
setValue3(['10005004', '10005009']);
|
|
143
145
|
} }, "\u8BBE\u7F6E\u503C"),
|
|
@@ -927,7 +927,7 @@ function EnhanceSelect(_a) {
|
|
|
927
927
|
}
|
|
928
928
|
else {
|
|
929
929
|
// 否则 最后一个不是全部,那就去掉全部
|
|
930
|
-
__value = currentData_1.map(function (item) { return item[key_1]; });
|
|
930
|
+
__value = currentData_1 === null || currentData_1 === void 0 ? void 0 : currentData_1.filter(function (item) { return item[key_1] !== ''; }).map(function (item) { return item[key_1]; });
|
|
931
931
|
}
|
|
932
932
|
}
|
|
933
933
|
else if (!Array.isArray(__value) && __value != null && currentData_1) {
|