ztxkui 2.8.9-3 → 2.8.9-4

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.
@@ -290,7 +290,9 @@ var Upload = function (props) {
290
290
  console.log(err);
291
291
  }
292
292
  };
293
- var fileAction = apiBaseUrl + "/api/zmdms-resource/oss/endpoint/put-file-attach";
293
+ var fileAction = action
294
+ ? action
295
+ : apiBaseUrl + "/api/zmdms-resource/oss/endpoint/put-file-attach";
294
296
  return (React.createElement(React.Fragment, null,
295
297
  showUploadBtn && (React.createElement("div", { className: "zt-upload" },
296
298
  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 },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ztxkui",
3
- "version": "2.8.9-3",
3
+ "version": "2.8.9-4",
4
4
  "private": false,
5
5
  "description": "React components library",
6
6
  "author": "zt-front-end",