fix: 更新elemnt-plus2.0.2后,size的值变了,去掉Form下size prop的默认值,增加Formdialog size prop

This commit is contained in:
roymondchen 2022-03-02 20:35:31 +08:00 committed by jia000
parent 344a032ac3
commit 3419f800ef
2 changed files with 3 additions and 1 deletions

View File

@ -89,7 +89,6 @@ export default defineComponent({
size: { size: {
type: String, type: String,
default: 'small',
}, },
inline: { inline: {

View File

@ -15,6 +15,7 @@
<m-form <m-form
v-model="stepActive" v-model="stepActive"
ref="form" ref="form"
:size="size"
:config="config" :config="config"
:init-values="values" :init-values="values"
:label-width="labelWidth" :label-width="labelWidth"
@ -77,6 +78,8 @@ export default defineComponent({
labelWidth: [Number, String], labelWidth: [Number, String],
size: String as PropType<'mini' | 'small' | 'medium'>,
confirmText: { confirmText: {
type: String, type: String,
default: '确定', default: '确定',