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

我想知道在使用表格嵌套时,如何让子表格得到父表格的record或者index? #1427

Open
angXiGe opened this issue May 8, 2023 · 0 comments
Labels
question Further information is requested

Comments

@angXiGe
Copy link

angXiGe commented May 8, 2023

Question (问题描述)
我想知道在使用表格嵌套时,如何让子表格得到父表格的record或者index?

Describe the solution you'd like (你期待的是什么?)
我想要让子表格展示出父表格每一行对应的详细信息,但不想使用异步获取数据的方式。

Additional context(附加信息)
<a-table :columns="columns":data-source="dataList" class="mainTable" expandIconColumnIndex=3
<template #expandedRowRender>
<a-table :columns="innerColumns":data-source="dataList[0].innerDatas":pagination="false"



如上代码,我想在子表格里展示出dataList.innerDatas,但我现在只能使每一个子表都展示dataList[0]位置的innerDatas。
求指教。

@angXiGe angXiGe added the question Further information is requested label May 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant