Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

如何实现组件的数据 keep-alive? #11131

Open
oikewll opened this issue Oct 29, 2024 · 0 comments
Open

如何实现组件的数据 keep-alive? #11131

oikewll opened this issue Oct 29, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@oikewll
Copy link

oikewll commented Oct 29, 2024

是否关联于某个问题吗:

用的是 vue3/element-plus,已经实现了 tab 的切换,类似浏览器 chrome 的顶部 tab,切换不同的组件页面,keep-alive 只能实现单个页面的路由缓存,里面的双向输入数据,无法被缓存,暂时不知道怎么设置

预期的解决方案:

有没有办法配置把单个页面表单的双向绑定数据 v-model 给到当前页面自己维护?

其他可接受方案:

譬如提供给开发者自己在 store 里面缓存页面表单的数据,这样点击 tab 切换的时候 keep-alive 表单数据就可以不用重复输入

任何附加信息:

image
@oikewll oikewll added the enhancement New feature or request label Oct 29, 2024
@oikewll oikewll changed the title 如何时间组件的数据 keep-alive? 如何实现组件的数据 keep-alive? Oct 29, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant