Form 动态表单,增加基础表单

This commit is contained in:
YunaiV
2021-12-30 22:06:07 +08:00
parent d2420212a6
commit 4c56a07c4e
2 changed files with 51 additions and 27 deletions

View File

@ -1,29 +1,29 @@
export default [
{
layout: 'colFormItem',
tagIcon: 'input',
label: '手机号',
vModel: 'mobile',
formId: 6,
tag: 'el-input',
placeholder: '请输入手机号',
defaultValue: '',
span: 24,
style: { width: '100%' },
clearable: true,
prepend: '',
append: '',
'prefix-icon': 'el-icon-mobile',
'suffix-icon': '',
maxlength: 11,
'show-word-limit': true,
readonly: false,
disabled: false,
required: true,
changeTag: true,
regList: [{
pattern: '/^1(3|4|5|7|8|9)\\d{9}$/',
message: '手机号格式错误'
}]
// layout: 'colFormItem',
// tagIcon: 'input',
// label: '手机号',
// vModel: 'mobile',
// formId: 6,
// tag: 'el-input',
// placeholder: '请输入手机号',
// defaultValue: '',
// span: 24,
// style: { width: '100%' },
// clearable: true,
// prepend: '',
// append: '',
// 'prefix-icon': 'el-icon-mobile',
// 'suffix-icon': '',
// maxlength: 11,
// 'show-word-limit': true,
// readonly: false,
// disabled: false,
// required: true,
// changeTag: true,
// regList: [{
// pattern: '/^1(3|4|5|7|8|9)\\d{9}$/',
// message: '手机号格式错误'
// }]
}
]