ztxkui 2.0.2 → 2.0.3
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.
|
@@ -271,7 +271,9 @@ function EnhanceSelect(_a) {
|
|
|
271
271
|
newData.forEach(function (item) {
|
|
272
272
|
// 如果源数组中找到了该条数据,那么不添加
|
|
273
273
|
// 否则添加
|
|
274
|
-
if (!resultData.find(function (resultItem) {
|
|
274
|
+
if (!resultData.find(function (resultItem) {
|
|
275
|
+
return resultItem && item && resultItem[dataKey] === item[dataKey];
|
|
276
|
+
})) {
|
|
275
277
|
resultData.push(item);
|
|
276
278
|
}
|
|
277
279
|
});
|
|
@@ -322,7 +324,10 @@ function EnhanceSelect(_a) {
|
|
|
322
324
|
currentData = value.map(function (valueItem) {
|
|
323
325
|
return currentList.find(function (item) { return item[key_1] === valueItem; });
|
|
324
326
|
});
|
|
325
|
-
|
|
327
|
+
currentData = currentData === null || currentData === void 0 ? void 0 : currentData.filter(function (item) { return item; });
|
|
328
|
+
if (remoteSearch) {
|
|
329
|
+
setMultipleList(currentData);
|
|
330
|
+
}
|
|
326
331
|
}
|
|
327
332
|
else {
|
|
328
333
|
currentData = currentList.find(function (item) { return item[key_1] === value; });
|