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

@@ -18,7 +18,7 @@
ref="dataForm"
:model="modelValue"
:rules="rules"
size="mini"
size="small"
:inline="true"
>
<el-table

View File

@@ -5,7 +5,7 @@
ref="queryForm"
:model="queryParams"
:inline="true"
size="mini"
size="small"
>
<el-form-item>
<el-button type="success" :icon="Plus" @click="handleAdd">新增</el-button>

View File

@@ -2,7 +2,7 @@
<div class="app-container">
<el-form
size="mini"
size="small"
:model="queryParams"
ref="queryFormRef"
:inline="true"

View File

@@ -2,7 +2,7 @@
<div class="app-container">
<!-- 搜索表单 -->
<el-form
size="mini"
size="small"
:model="state.queryParams"
ref="queryForm"
:inline="true"

View File

@@ -5,7 +5,7 @@
:model="state.queryParams"
ref="queryForm"
:inline="true"
size="mini"
size="small"
>
<el-form-item>
<el-button type="success" :icon="Plus" @click="handleAdd">新增</el-button>

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);
})
}

View File

@@ -3,7 +3,7 @@
<!-- 搜索表单 -->
<el-form
ref="queryFormRef"
size="mini"
size="small"
:model="queryParams"
:inline="true"
>

View File

@@ -5,7 +5,7 @@
ref="queryForm"
:model="queryParams"
:inline="true"
size="mini"
size="small"
>
<el-form-item>
<el-button type="success" :icon="Plus" @click="handleAdd">新增</el-button>