ztxkui 4.3.41 → 4.3.43
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.
|
@@ -360,7 +360,7 @@ function EnhanceSelect(_a) {
|
|
|
360
360
|
if (dataKeyValue) {
|
|
361
361
|
searchParams[searchDataKey] = dataKeyValue + '';
|
|
362
362
|
}
|
|
363
|
-
getData(request, __assign({ url: url,
|
|
363
|
+
return getData(request, __assign({ url: url,
|
|
364
364
|
method: method, params: __assign(__assign({ size: Array.isArray(dataKeyValue) && dataKeyValue.length > currentSize
|
|
365
365
|
? dataKeyValue.length
|
|
366
366
|
: currentSize, current: (otherObj === null || otherObj === void 0 ? void 0 : otherObj.currentPage) ? otherObj === null || otherObj === void 0 ? void 0 : otherObj.currentPage : 1 }, outParams), searchParams) }, ((otherObj === null || otherObj === void 0 ? void 0 : otherObj.options) || {})))
|
|
@@ -688,6 +688,7 @@ function EnhanceSelect(_a) {
|
|
|
688
688
|
}
|
|
689
689
|
else {
|
|
690
690
|
if (typeof restProps.value === 'string' ||
|
|
691
|
+
typeof restProps.value === 'number' ||
|
|
691
692
|
(Array.isArray(restProps.value) && restProps.value.length > 0)) {
|
|
692
693
|
// console.log('第二次请求数据,默认为需要根据主键去请求', restProps.value);
|
|
693
694
|
setFirstLoading(true);
|
|
@@ -1071,6 +1072,13 @@ function EnhanceSelect(_a) {
|
|
|
1071
1072
|
enhanceSelectCatchObj[url] = {};
|
|
1072
1073
|
}
|
|
1073
1074
|
},
|
|
1075
|
+
// 手动发出请求
|
|
1076
|
+
// searchValue: 搜索的值(远程搜索时,输入框里面输入的值)
|
|
1077
|
+
// idValue: 如果需要根据id过滤
|
|
1078
|
+
// otherObj: 大多时候都是分页相关参数
|
|
1079
|
+
getRemoteDataHandle: function (searchValue, idValue, otherObj) {
|
|
1080
|
+
return getRemoteDataHandle(searchValue, idValue, otherObj);
|
|
1081
|
+
},
|
|
1074
1082
|
}); });
|
|
1075
1083
|
var onMouseDownHandle = function (e) {
|
|
1076
1084
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|