From 51ee1191931c7e6652a475ebe069c0137c8a1f75 Mon Sep 17 00:00:00 2001 From: Eiinu Date: Sat, 9 Dec 2023 18:36:05 +0800 Subject: [PATCH] chore(uploader): upd type of props.fileList (#2725) --- src/packages/__VUE/uploader/index.taro.vue | 2 +- src/packages/__VUE/uploader/index.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/packages/__VUE/uploader/index.taro.vue b/src/packages/__VUE/uploader/index.taro.vue index c437c2ef04..1b3d60278d 100644 --- a/src/packages/__VUE/uploader/index.taro.vue +++ b/src/packages/__VUE/uploader/index.taro.vue @@ -117,7 +117,7 @@ export default create({ timeout: { type: [Number, String], default: 1000 * 30 }, // defaultFileList: { type: Array, default: () => new Array() }, - fileList: { type: Array, default: () => [] }, + fileList: { type: Array as PropType, default: () => [] }, isPreview: { type: Boolean, default: true }, // picture、list listType: { type: String, default: 'picture' }, diff --git a/src/packages/__VUE/uploader/index.vue b/src/packages/__VUE/uploader/index.vue index 3f1ef5645a..aeb475be10 100644 --- a/src/packages/__VUE/uploader/index.vue +++ b/src/packages/__VUE/uploader/index.vue @@ -97,7 +97,7 @@ export default create({ url: { type: String, default: '' }, // defaultFileList: { type: Array, default: () => new Array() }, timeout: { type: [Number, String], default: 1000 * 30 }, - fileList: { type: Array, default: () => [] }, + fileList: { type: Array as PropType, default: () => [] }, isPreview: { type: Boolean, default: true }, // picture、list listType: { type: String, default: 'picture' },