Skip to content

Table的data-source为网络请求时defaultExpandAllRows/defaultExpandedRowKeys属性失效 #2612

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
faithcoco opened this issue Jul 27, 2020 · 4 comments

Comments

@faithcoco
Copy link

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

Version

1.6.4

Environment

1.6.4

Reproduction link

https://antdv.com/components/table-cn/

Steps to reproduce


created() {
getclassificationGoodsList().then((res) => {
this.list = res.result
console.log('data-->', JSON.stringify(res.result))

})
},

What is expected?

列表默认展开

What is actually happening?

属性并没有运行

@labike
Copy link

labike commented Jul 27, 2020

#2587
参考官网远程加载数据

@zieru
Copy link

zieru commented Sep 23, 2020

i have this issue, the best way is using key and update the key after load

<template>
.....
<a-table
              :key="dataserahouts.key"
.....
/>
</template>

methods: {
forceRerender () {
        this.dataserahouts.key += 1
      },
}

@github-actions
Copy link

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days

@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 Dec 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants