refactor: element-plus升级到2.0.2版本后el-form的size属性mini值不存在的问题修复

This commit is contained in:
郝先瑞
2022-02-19 19:21:52 +08:00
parent e65a0fff25
commit 3d06bd2afb
8 changed files with 11 additions and 11 deletions

View File

@@ -3,7 +3,7 @@
<!-- 搜索表单 -->
<el-form
ref="queryFormRef"
size="mini"
size="small"
:model="queryParams"
:inline="true"
>
@@ -222,12 +222,12 @@ const state = reactive({
formData: {
id: undefined,
parentId: 0,
name: undefined,
name: '',
visible: 1,
icon: '',
sort: 1,
component: 'Layout',
path: undefined,
path: '',
redirect: ''
},
rules: {
@@ -342,7 +342,7 @@ async function handleUpdate(row: any) {
const id = row.id || state.ids
getMenuDetail(id).then(response => {
state.formData = response.data
const path = state.formData.path
const path = state.formData.path as string
state.isExternalPath = isExternal(path);
})
}