1.0.5 • Published 5 years ago
vue-setdata v1.0.5
vue-setData
安装插件
// vue 2x
npm i vue-setdata --save
//vue 3x
npm i vue-setdata@next --save
Vue挂载
2x 安装
import Vue from 'vue'
import setData from 'vue-setdata
Vue.use(setData)
3x 安装
import { createApp } from 'vue'
import setData from 'vue-setdata'
createApp({})
.use(setData)
.mount('#app')
例子
//普通
this.$setData({
a: 1,
b: 2,
c: 3
})
//对象链式
this.$setData({
'a.b.c': 12,
})
//数组链式
this.$setData({
[`a.${i}.b`]: 12
})
1.0.5
5 years ago
3.0.0-beta.1
5 years ago
3.0.0-beta.3
5 years ago
3.0.0-beta.2
5 years ago
3.0.0-beta
5 years ago
1.0.4
5 years ago
1.0.3
5 years ago
1.0.2
5 years ago
1.0.1
5 years ago
1.0.0
5 years ago