Commit 76c0ffa0 authored by Damon's avatar Damon

完工表单判断

parent 5c54644a
......@@ -398,19 +398,20 @@
if (this.tabIndex < this.list.length - 1) {
this.tabIndex++
this.arr = []
this.scrollRightTop = 0
this.leftMenuStatus(0)
this.$nextTick(function() {
this.getMenuItemTop()
})
}
},
typeToComponentType(type) {
// 将fieldType类型统一转换为公共组件判定类型
let formType = ''
if (type) {
// 将fieldType类型统一转换为公共组件判定类型
type = type.toLocaleLowerCase()
switch (type) {
case 'text':
formType = 'input'
break
case 'password':
case 'textarea':
case 'number':
......@@ -454,6 +455,8 @@
formType = 'time'
break
}
}
return formType
},
// ------------------------- 以下方法为展示滚动切换 -------------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment