How to use @wepy/x - 1 common examples

To help you get started, we’ve selected a few @wepy/x examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github wepyjs / wepy-templates / templates / standard / template / src / store / index.js View on Github external
import Vuex from '@wepy/x';


export default new Vuex.Store({
  state: {
    counter: 0
  },
  mutations: {
    increment (state) {
      state.counter++;
    },
    decrement (state) {
      state.counter--;
    }
  },
  actions: {
    increment ({ commit }) {
      commit('increment');
    },
    decrement ({ commit }) {

@wepy/x

Vuex in WePY

MIT
Latest version published 4 years ago

Package Health Score

60 / 100
Full package analysis

Popular @wepy/x functions