mirror of
https://gitee.com/xuliangzhan_admin/vxe-table.git
synced 2026-01-21 05:27:57 +08:00
优化分组列
This commit is contained in:
56
examples/api/table-colgroup.js
Normal file
56
examples/api/table-colgroup.js
Normal file
@@ -0,0 +1,56 @@
|
||||
import XEUtils from 'xe-utils'
|
||||
import columnAPI from './column'
|
||||
|
||||
const apis = [
|
||||
{
|
||||
name: 'Props',
|
||||
descKey: 'app.api.title.props',
|
||||
version: '',
|
||||
type: '',
|
||||
enum: '',
|
||||
defVal: '',
|
||||
list: XEUtils.clone(columnAPI.find(item => item.name === 'Props'), true).list.filter(item => [
|
||||
'field',
|
||||
'title',
|
||||
'width',
|
||||
'min-width',
|
||||
'resizable',
|
||||
'visible',
|
||||
'fixed',
|
||||
'align',
|
||||
'header-align',
|
||||
'show-overflow',
|
||||
'show-header-overflow',
|
||||
'header-class-name'
|
||||
].includes(item.name))
|
||||
},
|
||||
{
|
||||
name: 'Slots',
|
||||
descKey: 'app.api.title.slots',
|
||||
version: '',
|
||||
type: '',
|
||||
enum: '',
|
||||
defVal: '',
|
||||
list: []
|
||||
},
|
||||
{
|
||||
name: 'Events',
|
||||
descKey: 'app.api.title.events',
|
||||
version: '',
|
||||
type: '',
|
||||
enum: '',
|
||||
defVal: '',
|
||||
list: []
|
||||
},
|
||||
{
|
||||
name: 'Methods',
|
||||
descKey: 'app.api.title.methods',
|
||||
version: '',
|
||||
type: '',
|
||||
enum: '',
|
||||
defVal: '',
|
||||
list: []
|
||||
}
|
||||
]
|
||||
|
||||
export default apis
|
||||
Reference in New Issue
Block a user