ztxkui 2.3.0 → 2.3.1
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.
|
@@ -269,9 +269,9 @@ function EnhanceSelect(_a) {
|
|
|
269
269
|
// console.log('已经通过id访问了');
|
|
270
270
|
return;
|
|
271
271
|
}
|
|
272
|
+
// TODO:注释这里的内容
|
|
272
273
|
// 这种情况不需要启用远程搜索key值
|
|
273
274
|
if (!isRemoteSearchDataKey) {
|
|
274
|
-
getRemoteDataHandle('', '');
|
|
275
275
|
setFirstLoading(true);
|
|
276
276
|
return;
|
|
277
277
|
}
|
|
@@ -296,6 +296,24 @@ function EnhanceSelect(_a) {
|
|
|
296
296
|
isRemoteSearchDataKey,
|
|
297
297
|
setFirstLoading,
|
|
298
298
|
]);
|
|
299
|
+
useEffect(function () {
|
|
300
|
+
if (!url || !remoteSearch) {
|
|
301
|
+
return;
|
|
302
|
+
}
|
|
303
|
+
// console.log('TEST: 远程搜索');
|
|
304
|
+
// 这种情况不需要启用远程搜索key值
|
|
305
|
+
if (!isRemoteSearchDataKey) {
|
|
306
|
+
getRemoteDataHandle('', '');
|
|
307
|
+
setFirstLoading(true);
|
|
308
|
+
return;
|
|
309
|
+
}
|
|
310
|
+
}, [
|
|
311
|
+
url,
|
|
312
|
+
remoteSearch,
|
|
313
|
+
setFirstLoading,
|
|
314
|
+
getRemoteDataHandle,
|
|
315
|
+
isRemoteSearchDataKey,
|
|
316
|
+
]);
|
|
299
317
|
// 数据合并
|
|
300
318
|
function concatData(originalData, newData) {
|
|
301
319
|
if (!newData) {
|