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.

29 lines
559 B

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