@apexcura/ui-components 0.0.13-Beta45 → 0.0.13-Beta47
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 +2 -1
- package/dist/index.mjs +2 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -792,6 +792,7 @@ var UploadElement = (props) => {
|
|
|
792
792
|
const [previewType, setPreviewType] = (0, import_react23.useState)(null);
|
|
793
793
|
const [previewImage, setPreviewImage] = (0, import_react23.useState)(null);
|
|
794
794
|
const uploadChange = (fileList) => {
|
|
795
|
+
console.log(fileList);
|
|
795
796
|
if (!fileList || fileList.length === 0) return;
|
|
796
797
|
const selectedFile = fileList[0];
|
|
797
798
|
if (!selectedFile) return;
|
|
@@ -828,6 +829,7 @@ var UploadElement = (props) => {
|
|
|
828
829
|
};
|
|
829
830
|
const uploadChange2 = ({ file, fileList }) => {
|
|
830
831
|
const newFileList = fileList.filter((f) => f.name !== file.name);
|
|
832
|
+
console.log(newFileList);
|
|
831
833
|
props.onChange && props.onChange({
|
|
832
834
|
name: props.name,
|
|
833
835
|
value: newFileList
|
|
@@ -862,7 +864,6 @@ var UploadElement = (props) => {
|
|
|
862
864
|
listType: props.list_type,
|
|
863
865
|
maxCount: props.max_count,
|
|
864
866
|
multiple: props.multiple,
|
|
865
|
-
fileList: props.value,
|
|
866
867
|
onChange: uploadChange2,
|
|
867
868
|
onPreview: handlePreview,
|
|
868
869
|
showUploadList: true
|
package/dist/index.mjs
CHANGED
|
@@ -736,6 +736,7 @@ var UploadElement = (props) => {
|
|
|
736
736
|
const [previewType, setPreviewType] = useState7(null);
|
|
737
737
|
const [previewImage, setPreviewImage] = useState7(null);
|
|
738
738
|
const uploadChange = (fileList) => {
|
|
739
|
+
console.log(fileList);
|
|
739
740
|
if (!fileList || fileList.length === 0) return;
|
|
740
741
|
const selectedFile = fileList[0];
|
|
741
742
|
if (!selectedFile) return;
|
|
@@ -772,6 +773,7 @@ var UploadElement = (props) => {
|
|
|
772
773
|
};
|
|
773
774
|
const uploadChange2 = ({ file, fileList }) => {
|
|
774
775
|
const newFileList = fileList.filter((f) => f.name !== file.name);
|
|
776
|
+
console.log(newFileList);
|
|
775
777
|
props.onChange && props.onChange({
|
|
776
778
|
name: props.name,
|
|
777
779
|
value: newFileList
|
|
@@ -806,7 +808,6 @@ var UploadElement = (props) => {
|
|
|
806
808
|
listType: props.list_type,
|
|
807
809
|
maxCount: props.max_count,
|
|
808
810
|
multiple: props.multiple,
|
|
809
|
-
fileList: props.value,
|
|
810
811
|
onChange: uploadChange2,
|
|
811
812
|
onPreview: handlePreview,
|
|
812
813
|
showUploadList: true
|