ztxkui 2.1.5 → 2.1.9
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.
|
@@ -144,7 +144,9 @@ function EnhanceSelect(_a) {
|
|
|
144
144
|
getData(request, {
|
|
145
145
|
url: url,
|
|
146
146
|
method: method,
|
|
147
|
-
params: __assign(__assign({ size:
|
|
147
|
+
params: __assign(__assign({ size: Array.isArray(dataKeyValue) && dataKeyValue.length > 30
|
|
148
|
+
? dataKeyValue.length
|
|
149
|
+
: 30, page: 1 }, outParams), searchParams),
|
|
148
150
|
})
|
|
149
151
|
.then(function (resData) {
|
|
150
152
|
var _a, _b, _c;
|
|
@@ -274,7 +276,7 @@ function EnhanceSelect(_a) {
|
|
|
274
276
|
}
|
|
275
277
|
else {
|
|
276
278
|
if (typeof restProps.value === 'string' ||
|
|
277
|
-
Array.isArray(restProps.value)) {
|
|
279
|
+
(Array.isArray(restProps.value) && restProps.value.length > 0)) {
|
|
278
280
|
// console.log('第二次请求数据,默认为需要根据主键去请求', restProps.value);
|
|
279
281
|
setFirstLoading(true);
|
|
280
282
|
getRemoteDataHandle('', restProps.value);
|
|
@@ -342,6 +344,7 @@ function EnhanceSelect(_a) {
|
|
|
342
344
|
};
|
|
343
345
|
// onChange 方法
|
|
344
346
|
var onChangeHandle = function (value, option) {
|
|
347
|
+
setFirstLoading(true);
|
|
345
348
|
if (((Array.isArray(value) && value.length === 0) || !value) &&
|
|
346
349
|
remoteSearch &&
|
|
347
350
|
!firstClearData) {
|
|
@@ -173,7 +173,7 @@ var Upload = function (props) {
|
|
|
173
173
|
var fileAction = apiBaseUrl + "/api/zmdms-resource/oss/endpoint/put-file-attach";
|
|
174
174
|
return (React.createElement(React.Fragment, null,
|
|
175
175
|
showUploadBtn && (React.createElement("div", { className: "zt-upload" },
|
|
176
|
-
React.createElement(AntUpload, __assign({ className: classes, beforeUpload: beforeUpload ? beforeUpload : beforeFileUpload, onChange: onChange ? onChange : onFileChange, showUploadList: showUploadList ? showUploadList : false, fileList: fileList, multiple: multiple ? multiple : true, action: fileAction, headers: headers, data: data, method: method, onDownload: onFileDownload, onPreview: onFilePreview, onRemove: onFileRemove, openFileDialogOnClick: maxCount !== fileList.length || isDirect, maxCount: maxCount, listType: listType }, restProps), children ? (children) : !listType || listType === 'text' ? (React.createElement(Button, { type: "primary", disabled: maxCount === fileList.length },
|
|
176
|
+
React.createElement(AntUpload, __assign({ className: classes, beforeUpload: beforeUpload ? beforeUpload : beforeFileUpload, onChange: onChange ? onChange : onFileChange, showUploadList: showUploadList ? showUploadList : false, fileList: fileList, multiple: multiple ? multiple : true, action: fileAction, headers: headers, data: data, method: method, onDownload: onFileDownload, onPreview: onFilePreview, onRemove: onFileRemove, openFileDialogOnClick: maxCount !== fileList.length || isDirect, maxCount: maxCount, listType: listType }, restProps), children ? (children) : !listType || listType === 'text' ? (React.createElement(Button, { type: "primary", disabled: maxCount === fileList.length || restProps.disabled },
|
|
177
177
|
React.createElement(UploadOutlined, null),
|
|
178
178
|
fileBtnText || '添加附件',
|
|
179
179
|
maxCount === fileList.length &&
|