mirror of
https://gitee.com/xuliangzhan_admin/vxe-table.git
synced 2026-01-21 05:27:57 +08:00
21 lines
614 B
TypeScript
21 lines
614 B
TypeScript
import { App } from 'vue'
|
|
import { VxeUI } from '../ui'
|
|
import VxeColumnComponent from '../table/src/column'
|
|
|
|
export const VxeColumn = Object.assign({}, VxeColumnComponent, {
|
|
install (app: App) {
|
|
app.component(VxeColumnComponent.name as string, VxeColumnComponent)
|
|
// 兼容旧用法
|
|
app.component('VxeTableColumn', VxeColumnComponent)
|
|
}
|
|
})
|
|
|
|
if (VxeUI.dynamicApp) {
|
|
VxeUI.dynamicApp.component(VxeColumnComponent.name as string, VxeColumnComponent)
|
|
// 兼容旧用法
|
|
VxeUI.dynamicApp.component('VxeTableColumn', VxeColumnComponent)
|
|
}
|
|
|
|
export const Column = VxeColumn
|
|
export default VxeColumn
|