优化分组列

This commit is contained in:
xuliangzhan
2020-09-27 19:32:51 +08:00
parent 26ca8ead52
commit 89838b7fba
68 changed files with 744 additions and 721 deletions

View 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