@apexcura/ui-components 0.0.15-Beta34 → 0.0.15-Beta35
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.
- package/dist/index.js +7 -1
- package/dist/index.mjs +7 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1009,6 +1009,11 @@ var FileUpload = (props) => {
|
|
|
1009
1009
|
});
|
|
1010
1010
|
}
|
|
1011
1011
|
};
|
|
1012
|
+
const customRequest = ({ file, onSuccess }) => {
|
|
1013
|
+
setTimeout(() => {
|
|
1014
|
+
onSuccess("ok");
|
|
1015
|
+
}, 0);
|
|
1016
|
+
};
|
|
1012
1017
|
return /* @__PURE__ */ import_react25.default.createElement("div", null, /* @__PURE__ */ import_react25.default.createElement(
|
|
1013
1018
|
Dragger,
|
|
1014
1019
|
{
|
|
@@ -1019,7 +1024,8 @@ var FileUpload = (props) => {
|
|
|
1019
1024
|
multiple: props.multiple,
|
|
1020
1025
|
fileList: files,
|
|
1021
1026
|
onChange: handleChange,
|
|
1022
|
-
showUploadList: true
|
|
1027
|
+
showUploadList: true,
|
|
1028
|
+
customRequest
|
|
1023
1029
|
},
|
|
1024
1030
|
/* @__PURE__ */ import_react25.default.createElement("p", null, /* @__PURE__ */ import_react25.default.createElement(import_icons5.InboxOutlined, null)),
|
|
1025
1031
|
/* @__PURE__ */ import_react25.default.createElement("p", null, "Click or drag file to upload")
|
package/dist/index.mjs
CHANGED
|
@@ -940,6 +940,11 @@ var FileUpload = (props) => {
|
|
|
940
940
|
});
|
|
941
941
|
}
|
|
942
942
|
};
|
|
943
|
+
const customRequest = ({ file, onSuccess }) => {
|
|
944
|
+
setTimeout(() => {
|
|
945
|
+
onSuccess("ok");
|
|
946
|
+
}, 0);
|
|
947
|
+
};
|
|
943
948
|
return /* @__PURE__ */ React25.createElement("div", null, /* @__PURE__ */ React25.createElement(
|
|
944
949
|
Dragger,
|
|
945
950
|
{
|
|
@@ -950,7 +955,8 @@ var FileUpload = (props) => {
|
|
|
950
955
|
multiple: props.multiple,
|
|
951
956
|
fileList: files,
|
|
952
957
|
onChange: handleChange,
|
|
953
|
-
showUploadList: true
|
|
958
|
+
showUploadList: true,
|
|
959
|
+
customRequest
|
|
954
960
|
},
|
|
955
961
|
/* @__PURE__ */ React25.createElement("p", null, /* @__PURE__ */ React25.createElement(InboxOutlined, null)),
|
|
956
962
|
/* @__PURE__ */ React25.createElement("p", null, "Click or drag file to upload")
|