0.1.2 • Published 4 years ago

vue-data-state v0.1.2

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

vue-data-state Lightweight state management

Description

Similar to vuex's lightweight data, state, cache integrated management method.

  • Global state,use it like Vuex.
  • Local state,It is valid within the parent component and its child components, and does not affect the sibling component and superior component.
  • Initialization, the global state can be initialized assignment.

It only contains the state, but does not contain the operation methods 、mutations and action. You can use Vue3 Composition API to operate the state.

Source code

https://gitee.com/naturefw/vue-data-state

Installation

  1. npm i vue-data-state

Instructions

like Vuex.

  1. VuexDataState.createStore Create instance, define global state, local state and initialization function.
  2. main.js to app
  3. template use $state
  4. code use VueDS.useStore()
0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago