0.0.1-fixed • Published 4 years ago

vuex-declaration v0.0.1-fixed

Weekly downloads
4
License
ISC
Repository
-
Last release
4 years ago

Vuex Declaration

Declare state like props, make state inject to vuex dynamically when component created.

Usage

npm i vuex-declaration
import vuecDeclaration from 'vuex-declaration'
import Vue from 'vue'
Vue.use( vuexDeclaration );
Vue.component( 'self-component', {
    data () { ... },
    props : [ ... ],
    created () { ... },

    state : [ 'state-a', 'state-b' ],
} )
export default {
    state : {
        'state-a' : {
            module : 'module-a',
        }
    }
}
0.0.1-fixed

4 years ago

0.1.2

4 years ago

0.1.1

5 years ago

0.1.0

5 years ago

0.0.1

5 years ago