mirror of
https://gitee.com/xuliangzhan_admin/vxe-table.git
synced 2026-01-21 05:27:57 +08:00
44 lines
742 B
JavaScript
44 lines
742 B
JavaScript
import XEUtils from 'xe-utils'
|
|
import tableAPI from './table'
|
|
|
|
const apis = [
|
|
{
|
|
name: 'Props',
|
|
descKey: 'app.api.title.props',
|
|
type: '',
|
|
enum: '',
|
|
defVal: '',
|
|
list: []
|
|
},
|
|
{
|
|
name: 'Slots',
|
|
descKey: 'app.api.title.slots',
|
|
type: '',
|
|
enum: '',
|
|
defVal: '',
|
|
list: []
|
|
},
|
|
{
|
|
name: 'Events',
|
|
descKey: 'app.api.title.events',
|
|
type: '',
|
|
enum: '',
|
|
defVal: '',
|
|
list: []
|
|
},
|
|
{
|
|
name: 'Methods',
|
|
descKey: 'app.api.title.methods',
|
|
type: '',
|
|
enum: '',
|
|
defVal: '',
|
|
list: []
|
|
}
|
|
]
|
|
|
|
export default XEUtils.clone(tableAPI, true).map(item => {
|
|
let rest = apis.find(obj => obj.name === item.name)
|
|
rest.list = item.list.concat(rest.list)
|
|
return rest
|
|
})
|