# Installation
# Install package
yarn add @flowlist/vue-listview
// or
npm i @flowlist/vue-listview
# Import component
// entry.js
import Vue from 'vue'
import { ListView } from '@flowlist/vue-listview'
Vue.component(ListView.name, ListView)
# Import vuex
// store.js
import Vue from 'vue'
import Vuex from 'vuex'
import { ListStore } from '@flowlist/vue-listview'
import * as api from '~/api'
Vue.use(Vuex)
export default new Vuex.Store({
strict: false, // required
modules: {
list: ListStore({ api })
}
})
strict = false
is requiredlist
isnamespace
# if you use nuxt
store --> index.js
export const strict = false
store --> list.js
import { ListStore } from '@flowlist/vue-listview'
import * as api from '~/api'
const list = ListStore({ api })
export const state = list.state
export const mutations = list.mutations
export const actions = list.actions
export const getters = list.getters