You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
702 B
22 lines
702 B
import { VueConstructor } from 'vue'
|
|
import { VxeUI } from '../ui'
|
|
import VxeColgroupComponent from '../table/src/group'
|
|
|
|
export const VxeColgroup = Object.assign({}, VxeColgroupComponent, {
|
|
install (app: VueConstructor) {
|
|
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
|
|
|