17 lines
422 B
TypeScript
17 lines
422 B
TypeScript
import { App } from 'vue'
|
|
import { VxeUI } from 'vxe-pc-ui'
|
|
import VxeGridComponent from './src/grid'
|
|
|
|
export const VxeGrid = Object.assign({}, VxeGridComponent, {
|
|
install (app: App) {
|
|
app.component(VxeGridComponent.name as string, VxeGridComponent)
|
|
}
|
|
})
|
|
|
|
if (VxeUI.dynamicApp) {
|
|
VxeUI.dynamicApp.component(VxeGridComponent.name as string, VxeGridComponent)
|
|
}
|
|
|
|
export const Grid = VxeGrid
|
|
export default VxeGrid
|