Noteworthy Programming Masterpiece

    @yzfe/vue-storage
    TypeScript icon, indicating that this package has built-in type declarations

    2.0.0-alpha.1 • Public • Published

    Vue Storage, Vue 本地存储插件

    用法

    import Vue from 'vue'
    import VueStorage from '@yzfe/vue-storage'
    
    Vue.use(VueStorage, {
        keyScope: 'myapp:'
    })
    
    // 组件会附加两个本地存储的属性,具体 API 请参考 @yzfe/storage
    export default {
        created() {
            console.log(this.$storage)
            console.log(this.$session)
        }
    }

    REF

    @yzfe/storage

    Keywords

    none

    Install

    npm i @yzfe/vue-storage

    DownloadsWeekly Downloads

    4

    Version

    2.0.0-alpha.1

    License

    MIT

    Unpacked Size

    23.1 kB

    Total Files

    5

    Last publish

    Collaborators

    • allenice
    • allenmo
    • vfasky