23 lines
		
	
	
		
			702 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			702 B
		
	
	
	
		
			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
 |