@apexcura/ui-components 0.0.13-Beta54 → 0.0.13-Beta56
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 +0 -6
- package/dist/index.mjs +0 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -825,11 +825,6 @@ var UploadElement = (props) => {
|
|
|
825
825
|
reader.readAsDataURL(selectedFile);
|
|
826
826
|
newFileList.push(newFile);
|
|
827
827
|
}
|
|
828
|
-
const updatedFileList = props.value ? [...props.value, ...newFileList] : newFileList;
|
|
829
|
-
props.onChange && props.onChange({
|
|
830
|
-
name: props.name,
|
|
831
|
-
value: updatedFileList
|
|
832
|
-
});
|
|
833
828
|
};
|
|
834
829
|
const uploadChange2 = ({ file, fileList }) => {
|
|
835
830
|
const newFileList = fileList.filter((f) => f.name !== file.name);
|
|
@@ -873,7 +868,6 @@ var UploadElement = (props) => {
|
|
|
873
868
|
listType: props.list_type,
|
|
874
869
|
maxCount: props.max_count,
|
|
875
870
|
multiple: true,
|
|
876
|
-
fileList: props.value,
|
|
877
871
|
onChange: uploadChange2,
|
|
878
872
|
onPreview: handlePreview,
|
|
879
873
|
showUploadList: true
|
package/dist/index.mjs
CHANGED
|
@@ -769,11 +769,6 @@ var UploadElement = (props) => {
|
|
|
769
769
|
reader.readAsDataURL(selectedFile);
|
|
770
770
|
newFileList.push(newFile);
|
|
771
771
|
}
|
|
772
|
-
const updatedFileList = props.value ? [...props.value, ...newFileList] : newFileList;
|
|
773
|
-
props.onChange && props.onChange({
|
|
774
|
-
name: props.name,
|
|
775
|
-
value: updatedFileList
|
|
776
|
-
});
|
|
777
772
|
};
|
|
778
773
|
const uploadChange2 = ({ file, fileList }) => {
|
|
779
774
|
const newFileList = fileList.filter((f) => f.name !== file.name);
|
|
@@ -817,7 +812,6 @@ var UploadElement = (props) => {
|
|
|
817
812
|
listType: props.list_type,
|
|
818
813
|
maxCount: props.max_count,
|
|
819
814
|
multiple: true,
|
|
820
|
-
fileList: props.value,
|
|
821
815
|
onChange: uploadChange2,
|
|
822
816
|
onPreview: handlePreview,
|
|
823
817
|
showUploadList: true
|