Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Tabs增加懒加载功能(lazy-load for tabs) #1374

Closed
FlyingRadish opened this issue Oct 15, 2021 · 5 comments · Fixed by #1423
Closed

Tabs增加懒加载功能(lazy-load for tabs) #1374

FlyingRadish opened this issue Oct 15, 2021 · 5 comments · Fixed by #1423
Labels
feature request New feature or request priority: low

Comments

@FlyingRadish
Copy link

This function solves the problem (这个功能解决的问题)

Tabs增加懒加载功能,点击tab时才加载对应的pane。目前提供的display-directive并不能满足需求(使用if时每次切换tab都会重新加载,使用show时则会一次性加载所有pane不利于首次打开时的请求数优化)

Expected API (期望的 API)

display-directive="lazyload"

@github-actions github-actions bot added the feature request New feature or request label Oct 15, 2021
@07akioni
Copy link
Collaborator

其他组件库的相关链接可以放一下

@nooooooom
Copy link
Contributor

nooooooom commented Oct 15, 2021

可以自己用v-if做一个🤪,比如这个

@FlyingRadish
Copy link
Author

可以自己用v-if做一个🤪,比如这个

v-if每次切换都会重新加载呀

@FlyingRadish
Copy link
Author

FlyingRadish commented Oct 22, 2021

其他组件库的相关链接可以放一下

例如ant design 的 tabs,默认就是lazyload
https://2x.antdv.com/components/tabs-cn

@nooooooom
Copy link
Contributor

可以自己用v-if做一个🤪,比如这个

v-if每次切换都会重新加载呀

你试试例子里的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request priority: low
Projects
None yet
3 participants