@apexcura/ui-components 0.0.13-Beta62 → 0.0.13-Beta63
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 +3 -2
- package/dist/index.mjs +3 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -795,6 +795,7 @@ var UploadElement = (props) => {
|
|
|
795
795
|
if (!fileList || fileList.length === 0) return;
|
|
796
796
|
const existingFiles = Array.isArray(props.value) ? props.value : [];
|
|
797
797
|
const newFileList = [...existingFiles];
|
|
798
|
+
console.log("newFileList-------------", newFileList);
|
|
798
799
|
for (let i = 0; i < fileList.length; i++) {
|
|
799
800
|
const selectedFile = fileList[i];
|
|
800
801
|
const isCorrectFile = ["image/png", "image/jpg", "image/jpeg"].includes(
|
|
@@ -832,8 +833,8 @@ var UploadElement = (props) => {
|
|
|
832
833
|
});
|
|
833
834
|
};
|
|
834
835
|
const uploadChange2 = ({ file, fileList }) => {
|
|
835
|
-
const
|
|
836
|
-
|
|
836
|
+
const existingFiles = Array.isArray(props.value) ? props.value : [];
|
|
837
|
+
const newFileList = [...existingFiles, ...fileList];
|
|
837
838
|
props.onChange && props.onChange({
|
|
838
839
|
name: props.name,
|
|
839
840
|
value: newFileList
|
package/dist/index.mjs
CHANGED
|
@@ -739,6 +739,7 @@ var UploadElement = (props) => {
|
|
|
739
739
|
if (!fileList || fileList.length === 0) return;
|
|
740
740
|
const existingFiles = Array.isArray(props.value) ? props.value : [];
|
|
741
741
|
const newFileList = [...existingFiles];
|
|
742
|
+
console.log("newFileList-------------", newFileList);
|
|
742
743
|
for (let i = 0; i < fileList.length; i++) {
|
|
743
744
|
const selectedFile = fileList[i];
|
|
744
745
|
const isCorrectFile = ["image/png", "image/jpg", "image/jpeg"].includes(
|
|
@@ -776,8 +777,8 @@ var UploadElement = (props) => {
|
|
|
776
777
|
});
|
|
777
778
|
};
|
|
778
779
|
const uploadChange2 = ({ file, fileList }) => {
|
|
779
|
-
const
|
|
780
|
-
|
|
780
|
+
const existingFiles = Array.isArray(props.value) ? props.value : [];
|
|
781
|
+
const newFileList = [...existingFiles, ...fileList];
|
|
781
782
|
props.onChange && props.onChange({
|
|
782
783
|
name: props.name,
|
|
783
784
|
value: newFileList
|