From 4a8f907c7f9b29903b7ff373b0a40084e37e18f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=98=BF=E8=BE=89?= Date: Tue, 19 Nov 2024 15:00:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E4=BB=B6=E9=80=89=E6=8B=A9=E5=99=A8?= =?UTF-8?q?=E7=9A=84video=E7=B1=BB=E5=9E=8B=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/components/fileSelector/index.vue | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/web/src/components/fileSelector/index.vue b/web/src/components/fileSelector/index.vue index d035ff8..9131f4c 100644 --- a/web/src/components/fileSelector/index.vue +++ b/web/src/components/fileSelector/index.vue @@ -7,8 +7,8 @@ :label="item.name" />
- + :style="{ width: props.inputSize + 'px', height: props.inputSize + 'px' }"> + @@ -26,9 +26,10 @@
- -
+ +
@@ -41,8 +42,9 @@
- + :style="{ width: props.inputSize * 2 + 'px', height: props.inputSize + 'px' }"> +
@@ -140,8 +142,8 @@ const props = defineProps({ // 表单item类型,不为selector是需要设置valueKey,否则可能获取不到媒体数据 inputType: { type: Object as PropType<'selector' | 'image' | 'video' | 'audio'>, default: 'selector' }, - // inputType为image时生效 - inputImageSize: { type: Number, default: 100 }, + // inputType不为selector时生效 + inputSize: { type: Number, default: 100 }, // v-model绑定的值是file数据的哪个key,默认是id valueKey: { type: String, default: 'id' },