mirror of
https://gitee.com/xuliangzhan_admin/vxe-table.git
synced 2026-01-21 05:27:57 +08:00
优化重构
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
@@ -144,6 +144,10 @@
|
||||
form: {
|
||||
// colon: false
|
||||
},
|
||||
// 下拉框的全局参数
|
||||
select: {
|
||||
// transfer: false
|
||||
},
|
||||
// 工具栏的全局参数
|
||||
toolbar: {
|
||||
// refresh: false,
|
||||
|
||||
@@ -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'}"
|
||||
|
||||
Reference in New Issue
Block a user