mirror of https://github.com/vuejs/vitepress
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.
35 lines
600 B
35 lines
600 B
8 months ago
|
/**
|
||
|
* vue-demi v0.14.7
|
||
|
* Copyright (c) 2020-present, Anthony Fu
|
||
|
* @license MIT
|
||
|
*/
|
||
|
|
||
|
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 }
|