index.ts 451 B

12345678910111213141516
  1. import { VueConstructor } from 'vue'
  2. import { VxeUI } from '@vxe-ui/core'
  3. import VxeemptyComponent from './src/empty'
  4. import { dynamicApp } from '../dynamics'
  5. export const Vxeempty = Object.assign({}, VxeemptyComponent, {
  6. install (app: VueConstructor) {
  7. app.component(VxeemptyComponent.name as string, VxeemptyComponent)
  8. }
  9. })
  10. dynamicApp.use(Vxeempty)
  11. VxeUI.component(VxeemptyComponent)
  12. export const empty = Vxeempty
  13. export default Vxeempty