修复表单构建移除所有控件后切换路由回来空白问题
parent
a5adee3c5f
commit
0eaa090f4b
@ -1,29 +1,37 @@
|
|||||||
export default [
|
export const drawingDefaultValue = []
|
||||||
{
|
|
||||||
layout: 'colFormItem',
|
export function initDrawingDefaultValue() {
|
||||||
tagIcon: 'input',
|
if (drawingDefaultValue.length === 0) {
|
||||||
label: '手机号',
|
drawingDefaultValue.push({
|
||||||
vModel: 'mobile',
|
layout: 'colFormItem',
|
||||||
formId: 6,
|
tagIcon: 'input',
|
||||||
tag: 'el-input',
|
label: '手机号',
|
||||||
placeholder: '请输入手机号',
|
vModel: 'mobile',
|
||||||
defaultValue: '',
|
formId: 6,
|
||||||
span: 24,
|
tag: 'el-input',
|
||||||
style: { width: '100%' },
|
placeholder: '请输入手机号',
|
||||||
clearable: true,
|
defaultValue: '',
|
||||||
prepend: '',
|
span: 24,
|
||||||
append: '',
|
style: {width: '100%'},
|
||||||
'prefix-icon': 'el-icon-mobile',
|
clearable: true,
|
||||||
'suffix-icon': '',
|
prepend: '',
|
||||||
maxlength: 11,
|
append: '',
|
||||||
'show-word-limit': true,
|
'prefix-icon': 'el-icon-mobile',
|
||||||
readonly: false,
|
'suffix-icon': '',
|
||||||
disabled: false,
|
maxlength: 11,
|
||||||
required: true,
|
'show-word-limit': true,
|
||||||
changeTag: true,
|
readonly: false,
|
||||||
regList: [{
|
disabled: false,
|
||||||
pattern: '/^1(3|4|5|7|8|9)\\d{9}$/',
|
required: true,
|
||||||
message: '手机号格式错误'
|
changeTag: true,
|
||||||
}]
|
regList: [{
|
||||||
|
pattern: '/^1(3|4|5|7|8|9)\\d{9}$/',
|
||||||
|
message: '手机号格式错误'
|
||||||
|
}]
|
||||||
|
})
|
||||||
}
|
}
|
||||||
]
|
}
|
||||||
|
|
||||||
|
export function cleanDrawingDefaultValue() {
|
||||||
|
drawingDefaultValue.splice(0, drawingDefaultValue.length)
|
||||||
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue