vxe-table
Version:
A PC-end table component based on Vxe UI, supporting copy-paste, data pivot table, and high-performance virtual list table solution.
23 lines (18 loc) • 702 B
text/typescript
import { App } from 'vue'
import { VxeUI } from '../ui'
import VxeColgroupComponent from '../table/src/group'
export const VxeColgroup = Object.assign({}, VxeColgroupComponent, {
install (app: App) {
app.component(VxeColgroupComponent.name as string, VxeColgroupComponent)
// 兼容旧用法
app.component('VxeTableColgroup', VxeColgroupComponent)
}
})
if (VxeUI.dynamicApp) {
VxeUI.dynamicApp.component(VxeColgroupComponent.name as string, VxeColgroupComponent)
// 兼容旧用法
VxeUI.dynamicApp.component('VxeTableColgroup', VxeColgroupComponent)
}
VxeUI.component(VxeColgroupComponent)
export const Colgroup = VxeColgroup
export default VxeColgroup