index.ts 476 B

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