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