You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
524 B

1 month ago
  1. import * as Vue from 'vue'
  2. var isVue2 = false
  3. var isVue3 = true
  4. var Vue2 = undefined
  5. function install() {}
  6. export function set(target, key, val) {
  7. if (Array.isArray(target)) {
  8. target.length = Math.max(target.length, key)
  9. target.splice(key, 1, val)
  10. return val
  11. }
  12. target[key] = val
  13. return val
  14. }
  15. export function del(target, key) {
  16. if (Array.isArray(target)) {
  17. target.splice(key, 1)
  18. return
  19. }
  20. delete target[key]
  21. }
  22. export * from 'vue'
  23. export {
  24. Vue,
  25. Vue2,
  26. isVue2,
  27. isVue3,
  28. install,
  29. }