ztxkui 3.7.13 → 3.7.14
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.
|
@@ -100,28 +100,28 @@ function textContent(children) {
|
|
|
100
100
|
* 如果数据不能在接口层面满足以上形式,那么组件提供transformData属性,转换接口数据格式
|
|
101
101
|
*/
|
|
102
102
|
function EnhanceSelect(_a) {
|
|
103
|
-
var list = _a.list, defaultList = _a.defaultList, params = _a.params, url = _a.url, _b = _a.method, method = _b === void 0 ? 'GET' : _b, _c = _a.timeout, timeout = _c === void 0 ? 60000 : _c, _d = _a.dataKey, dataKey = _d === void 0 ? 'id' : _d, componentKey = _a.componentKey, _e = _a.titleKey, titleKey = _e === void 0 ? 'name' : _e, showAll = _a.showAll,
|
|
103
|
+
var list = _a.list, defaultList = _a.defaultList, params = _a.params, url = _a.url, _b = _a.method, method = _b === void 0 ? 'GET' : _b, _c = _a.timeout, timeout = _c === void 0 ? 60000 : _c, _d = _a.dataKey, dataKey = _d === void 0 ? 'id' : _d, componentKey = _a.componentKey, _e = _a.titleKey, titleKey = _e === void 0 ? 'name' : _e, showAll = _a.showAll, _f = _a.isCatch, isCatch = _f === void 0 ? true : _f, onCompleted = _a.onCompleted, onChange = _a.onChange, onSearch = _a.onSearch, request = _a.request, remoteSearch = _a.remoteSearch, remoteSearchKey = _a.remoteSearchKey, remoteSearchDataKey = _a.remoteSearchDataKey, _g = _a.isRemoteSearchDataKey, isRemoteSearchDataKey = _g === void 0 ? true : _g, transformData = _a.transformData, joinKey = _a.joinKey, _h = _a.joinStr, joinStr = _h === void 0 ? '-' : _h, lineFeedKey = _a.lineFeedKey, _j = _a.lineFeedStr, lineFeedStr = _j === void 0 ? '-' : _j, mustHasParams = _a.mustHasParams, disabledValues = _a.disabledValues, searchDeleteKeys = _a.searchDeleteKeys, isHandAddItem = _a.isHandAddItem, isPage = _a.isPage, _k = _a.currentSize, currentSize = _k === void 0 ? 30 : _k, isCopy = _a.isCopy, onBlur = _a.onBlur, onFocus = _a.onFocus, restProps = __rest(_a, ["list", "defaultList", "params", "url", "method", "timeout", "dataKey", "componentKey", "titleKey", "showAll", "isCatch", "onCompleted", "onChange", "onSearch", "request", "remoteSearch", "remoteSearchKey", "remoteSearchDataKey", "isRemoteSearchDataKey", "transformData", "joinKey", "joinStr", "lineFeedKey", "lineFeedStr", "mustHasParams", "disabledValues", "searchDeleteKeys", "isHandAddItem", "isPage", "currentSize", "isCopy", "onBlur", "onFocus"]);
|
|
104
104
|
var currentClick = useRef(true);
|
|
105
105
|
// 下拉数据源
|
|
106
|
-
var
|
|
106
|
+
var _l = useFetchState([]), selectList = _l[0], setSelectList = _l[1];
|
|
107
107
|
// 手动添加的数据源
|
|
108
|
-
var
|
|
108
|
+
var _m = useState([]), handleAddItems = _m[0], setHandleAddItems = _m[1];
|
|
109
109
|
// 多选时,自己需要合并的数据
|
|
110
|
-
var
|
|
111
|
-
var
|
|
110
|
+
var _o = useFetchState([]), multipleList = _o[0], setMultipleList = _o[1];
|
|
111
|
+
var _p = useFetchState(false), loading = _p[0], setLoading = _p[1];
|
|
112
112
|
var fetchId = useRef(0); // 请求Id,每次请求都会加1
|
|
113
113
|
// 是否使用过远程搜索主键key
|
|
114
|
-
var
|
|
114
|
+
var _q = useFetchState(false), firstLoading = _q[0], setFirstLoading = _q[1];
|
|
115
115
|
// 第一次清空时,才做远程查询
|
|
116
|
-
var
|
|
116
|
+
var _r = useFetchState(false), firstClearData = _r[0], setFirstClearData = _r[1];
|
|
117
117
|
// 获得焦点选中
|
|
118
|
-
var
|
|
118
|
+
var _s = useState(false), isOpen = _s[0], setIsOpen = _s[1];
|
|
119
119
|
// 当前搜索文本
|
|
120
|
-
var
|
|
120
|
+
var _t = useState(), searchValue = _t[0], setSearchValue = _t[1];
|
|
121
121
|
// 当前页
|
|
122
|
-
var
|
|
122
|
+
var _u = useState(1), currentPage = _u[0], setCurrentPage = _u[1];
|
|
123
123
|
// 总条数
|
|
124
|
-
var
|
|
124
|
+
var _v = useState(0), count = _v[0], setCount = _v[1];
|
|
125
125
|
// 手动清空数据
|
|
126
126
|
var handleClearDataRef = useRef(false);
|
|
127
127
|
// 处理value
|