动态表单测试

This commit is contained in:
Gary Fu
2024-01-13 15:42:37 +08:00
parent b2618f2086
commit 3887d39449
2 changed files with 7 additions and 2 deletions

View File

@@ -101,6 +101,10 @@ html, body, #app, .index-container {
--el-input-width: 220px; --el-input-width: 220px;
} }
.common-subform.el-form--inline .el-input{
--el-input-width: 220px;
}
.form-edit-width-70 { .form-edit-width-70 {
width:70% width:70%
} }

View File

@@ -212,9 +212,10 @@ const submitForm = (form) => {
添加联系人 添加联系人
</el-button> </el-button>
</el-form-item> </el-form-item>
<template <div
v-for="(contact, index) in userDto.contacts" v-for="(contact, index) in userDto.contacts"
:key="index" :key="index"
class="common-subform el-form--inline"
> >
<common-form-control <common-form-control
v-for="(option, optIdx) in contactsOptions" v-for="(option, optIdx) in contactsOptions"
@@ -232,7 +233,7 @@ const submitForm = (form) => {
Delete Delete
</el-button> </el-button>
</el-form-item> </el-form-item>
</template> </div>
</template> </template>
<template <template
#buttons="{form}" #buttons="{form}"