From 90dd8381b1b178fc47dbd79af645944d34761937 Mon Sep 17 00:00:00 2001 From: roymondchen Date: Tue, 12 Apr 2022 17:08:23 +0800 Subject: [PATCH] =?UTF-8?q?refactor(form):=20=E4=BF=AE=E6=94=B9size?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=E5=AE=9A=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/form/src/Form.vue | 2 +- packages/form/src/FormDialog.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/form/src/Form.vue b/packages/form/src/Form.vue index 0f1ed2dc1..4bc713a87 100644 --- a/packages/form/src/Form.vue +++ b/packages/form/src/Form.vue @@ -86,7 +86,7 @@ export default defineComponent({ }, size: { - type: String, + type: String as PropType<'small' | 'default' | 'large'>, }, inline: { diff --git a/packages/form/src/FormDialog.vue b/packages/form/src/FormDialog.vue index be0a84092..3e152adab 100644 --- a/packages/form/src/FormDialog.vue +++ b/packages/form/src/FormDialog.vue @@ -78,7 +78,7 @@ export default defineComponent({ labelWidth: [Number, String], - size: String as PropType<'mini' | 'small' | 'medium'>, + size: String as PropType<'small' | 'default' | 'large'>, confirmText: { type: String,