Open RealAtix opened 3 years ago
I met that situation either, Did you got any solutions for it?
@Tony-xubiao
I haven't found a better way than doing something like this... It doesn't work for every input type.
this.$refs[this.tableRef].$refs.searchForm.$refs.form.$children[0].$children[1].$refs.reference.handleInput({ target: { value: searchParams.day }})
Is it possible to set the values of the search form items?
I implemented a caching mechanism; if the user goes back to the table from another route, he will see the same search result. My issue is that I haven't found any way to set the form values (of input, select, daterange) from cache by code.
I tried scanning this.$refs.myTable.$refs.searchForm for a way but couldn't find the right place and make it work.