c219633ebf
Documentation update, and example idea and initial contribution by: Martin Bramwell <mhb.warehouseman@gmail.com> * Adds an example form and updates documentation to reflect curried function
27 lines
380 B
JavaScript
27 lines
380 B
JavaScript
import Vue from 'vue'
|
|
import Vuex from 'vuex'
|
|
import {formulateState, formulateGetters, formulateMutations} from 'vue-formulate'
|
|
|
|
Vue.use(Vuex)
|
|
|
|
const state = {
|
|
...formulateState()()
|
|
}
|
|
|
|
const getters = {
|
|
...formulateGetters()
|
|
}
|
|
|
|
const mutations = {
|
|
...formulateMutations()
|
|
}
|
|
|
|
const actions = {}
|
|
|
|
export default new Vuex.Store({
|
|
state,
|
|
getters,
|
|
mutations,
|
|
actions
|
|
})
|