Commit 76c0ffa0 authored by Damon's avatar Damon

完工表单判断

parent 5c54644a
...@@ -398,19 +398,20 @@ ...@@ -398,19 +398,20 @@
if (this.tabIndex < this.list.length - 1) { if (this.tabIndex < this.list.length - 1) {
this.tabIndex++ this.tabIndex++
this.arr = [] this.arr = []
this.scrollRightTop = 0
this.leftMenuStatus(0)
this.$nextTick(function() { this.$nextTick(function() {
this.getMenuItemTop() this.getMenuItemTop()
}) })
} }
}, },
typeToComponentType(type) { typeToComponentType(type) {
// 将fieldType类型统一转换为公共组件判定类型
let formType = '' let formType = ''
if (type) {
// 将fieldType类型统一转换为公共组件判定类型
type = type.toLocaleLowerCase() type = type.toLocaleLowerCase()
switch (type) { switch (type) {
case 'text': case 'text':
formType = 'input'
break
case 'password': case 'password':
case 'textarea': case 'textarea':
case 'number': case 'number':
...@@ -454,6 +455,8 @@ ...@@ -454,6 +455,8 @@
formType = 'time' formType = 'time'
break break
} }
}
return formType 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