1.1.0 • Published 4 years ago
vlf v1.1.0
vlf
vue-localforage and support typescript
Install
npm install --save localforage vlf
How to use vlf
import Vlf from 'vlf'
import localforage from 'localforage'
Vue.use(Vlf, localforage)
In your code
// 创建实例
this.$vlf.createInstance({
storeName: 'user'
})
// 迭代
this.$vlf.iterate((value, key, num) => {
console.log(key);
});
// 设置值
this.$vlf.setItem('test', 'hello').then(v => {
console.log(v);
});
// ...和官方调用一致
// The other methods of use are the same as the official website, just add a this.$vlf in front, the same behind!
1.1.0
4 years ago
1.0.9
4 years ago
1.0.8
4 years ago
1.0.8-beta2
4 years ago
1.0.8-beta1
4 years ago
1.0.8-beta
4 years ago
1.0.7
4 years ago
1.0.6
4 years ago
1.0.5
6 years ago
1.0.4
6 years ago
1.0.3
7 years ago
1.0.2
7 years ago
1.0.1
7 years ago
1.0.0
7 years ago