@apexcura/ui-components 0.0.13-Beta50 → 0.0.13-Beta52
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 +1 -2
- package/dist/index.mjs +1 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -792,7 +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(
|
|
795
|
+
console.log(fileList?.length);
|
|
796
796
|
if (!fileList || fileList.length === 0) return;
|
|
797
797
|
const selectedFile = fileList[0];
|
|
798
798
|
console.log("selectedFile", selectedFile);
|
|
@@ -871,7 +871,6 @@ var UploadElement = (props) => {
|
|
|
871
871
|
listType: props.list_type,
|
|
872
872
|
maxCount: props.max_count,
|
|
873
873
|
multiple: true,
|
|
874
|
-
fileList: props.value,
|
|
875
874
|
onChange: uploadChange2,
|
|
876
875
|
onPreview: handlePreview,
|
|
877
876
|
showUploadList: true
|
package/dist/index.mjs
CHANGED
|
@@ -736,7 +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(
|
|
739
|
+
console.log(fileList?.length);
|
|
740
740
|
if (!fileList || fileList.length === 0) return;
|
|
741
741
|
const selectedFile = fileList[0];
|
|
742
742
|
console.log("selectedFile", selectedFile);
|
|
@@ -815,7 +815,6 @@ var UploadElement = (props) => {
|
|
|
815
815
|
listType: props.list_type,
|
|
816
816
|
maxCount: props.max_count,
|
|
817
817
|
multiple: true,
|
|
818
|
-
fileList: props.value,
|
|
819
818
|
onChange: uploadChange2,
|
|
820
819
|
onPreview: handlePreview,
|
|
821
820
|
showUploadList: true
|