优化重构

This commit is contained in:
xuliangzhan
2020-02-25 23:56:12 +08:00
parent d7b3e64388
commit b9aecfbc51
37 changed files with 144 additions and 67 deletions

View File

@@ -33,7 +33,7 @@ function mockColumns (size) {
colItem.type = 'checkbox'
colItem.title = '多选'
}
if (index < 4) {
if (index < 0 && index < 4) {
colItem.fixed = 'left'
colItem.sortable = true
} else if (index === 5) {
@@ -41,6 +41,12 @@ function mockColumns (size) {
{ label: '= 100', value: 100 },
{ label: '= 2000', value: 2000 }
]
} else if (index === 6) {
colItem.sortable = true
colItem.filters = [
{ label: '= 500', value: 300 },
{ label: '= 3000', value: 3000 }
]
}
colCacheList.push(colItem)
}

View File

@@ -144,6 +144,10 @@
form: {
// colon: false
},
// 下拉框的全局参数
select: {
// transfer: false
},
// 工具栏的全局参数
toolbar: {
// refresh: false,

View File

@@ -14,6 +14,8 @@
<vxe-table
border
resizable
show-overflow
show-header-overflow
ref="xTree"
:tree-config="{children: 'children'}"
:checkbox-config="{labelField: 'id'}"
@@ -56,6 +58,8 @@ export default {
<vxe-table
border
resizable
show-overflow
show-header-overflow
ref="xTree"
:tree-config="{children: 'children'}"
:checkbox-config="{labelField: 'id'}"