Store & propertyNames
See original GitHub issueHellow !
I’m trying to use your nice component on a project, unfortunatly I just encountered several problems 😦
So, the component beeing unable to update using computed props on :data, I noticed u added the new store option which I’m trying to use.
- Firstly I noticed that changing the propertyNames.children and propertyNames.id weren’t working anymore (but text still works).
- Secondly I’m still unable to use Store’s module
My tree options
treeOptions: { store: { store: this.$store, getter: "treeStore", mutations: ["updateTree"] }, checkbox: true, propertyNames: { text: "myname", children: "mychildren" }, filter: { plainList: true } }
My Store:
import forest from "./forest" const store = new Vuex.Store({ modules: { forest }, });
My Store module “forest”
export default { namespaced: true, treeStore: [], getters, mutations: { updateTree(state, newData) { state.treeStore = newData; } }, actions };
Could you give me a hand in order to solve those problems please? Thank you kindly :p.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:13 (7 by maintainers)
Изменил поведение библиотеки с Vuex. Еще докумнтацию не обновил, пока нет возможности это сделать. Но в примерах надеюсь все очень понятно сделано. Надеюсь поможет 😃 Пишите, если что-то не будет получаться или появятся какие-либо вопросы. пс. Обновленная версия доступна на
npm
Thank you for your answer 😃. And about the propertyname parameters, is it a bug ? I’m using the store option in order to keep the LiquorTree updated with my vuex, but now I can’t access my nodes and objects’s id because the PropertyNames options children and id aren’t working anymore 😮 So by now I have to rename each of my datas’ nodes before storing into my store xD