Skip to content

Table 当Http请求数据时, defaultExpandAllRows=true 展开子列表无效果 #2587

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

Closed
1 task
mx4g opened this issue Jul 21, 2020 · 6 comments
Closed
1 task
Labels

Comments

@mx4g
Copy link

mx4g commented Jul 21, 2020

  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

1.6.3

Environment

@vue/cli 4.0.5

Reproduction link

http://47.105.96.22/pension/#/user/login

Steps to reproduce

做了一个可以展开的Table,但 Http请求数据时, defaultExpandAllRows=true 展开子列表无效果,静态数据就有效果,这个Bug怎么解决。

What is expected?

希望能解决这个问题,这个功能太需要了

What is actually happening?

Table 当Http请求数据时, defaultExpandAllRows=true 展开子列表无效果

@mx4g
Copy link
Author

mx4g commented Jul 21, 2020

@tangjinzhou

@mx4g
Copy link
Author

mx4g commented Jul 21, 2020

image

@labike
Copy link

labike commented Jul 21, 2020

加个判断 v-if="!loading"

data () {
    loading: false
}

在请求数据之前将loading=“true"

@mx4g
Copy link
Author

mx4g commented Jul 23, 2020

expandedRowKeys

设置了expandedRowKeys
,只可以展开,不能收缩回去
image

-- 解决方法:添加expand事件,自己进行判断

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 24, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants