0
0

index.cjs 697 B

1234567891011121314151617181920212223242526272829
  1. var Vue = require('vue')
  2. var VueCompositionAPI = require('@vue/composition-api')
  3. function install(_vue) {
  4. var vueLib = _vue || Vue
  5. if (vueLib && 'default' in vueLib) {
  6. vueLib = vueLib.default
  7. }
  8. if (vueLib && !vueLib['__composition_api_installed__']) {
  9. if (VueCompositionAPI && 'default' in VueCompositionAPI)
  10. vueLib.use(VueCompositionAPI.default)
  11. else if (VueCompositionAPI)
  12. vueLib.use(VueCompositionAPI)
  13. }
  14. }
  15. install(Vue)
  16. Object.keys(VueCompositionAPI).forEach(function(key) {
  17. exports[key] = VueCompositionAPI[key]
  18. })
  19. exports.Vue = Vue
  20. exports.Vue2 = Vue
  21. exports.isVue2 = true
  22. exports.isVue3 = false
  23. exports.install = install
  24. exports.version = Vue.version