mirror of
https://github.com/fugary/simple-element-plus-template.git
synced 2025-11-12 14:27:49 +00:00
动态表单测试
This commit is contained in:
@@ -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%
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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}"
|
||||||
|
|||||||
Reference in New Issue
Block a user