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

[table] 自定义模板中的row绑定问题(仅在生产环境出现,开发环境无法复现) #1197

Open
RomenMark opened this issue Dec 28, 2023 · 1 comment
Labels
sfc changed to tsx sfc changed to tsx Stale

Comments

@RomenMark
Copy link

RomenMark commented Dec 28, 2023

tdesign-mobile-vue 版本

1.0.9

重现链接

No response

重现步骤

<t-table row-key="id" bordered :data="userList" :columns="columns"
<template #action="{ row }"
<div @click="editEvent(row)">编辑
<t-button variant="text" @click="editEvent(row)">编辑
<t-button variant="text" @click="orderEvent(row)">下单
</template
</t-table
1.定义这么一个表格 其中自定义template action列。
2.假设表格原本长度为20 ,经过某些查询后,表格长度变化了。假设原本的第五条数据,位置到了第二条。
3.此时div中的row为正确值,
4.t-button中的row值为原本位置数据的记录值
5。只有生产环境!!!!!!!!!!有问题!!!!!!!!!!!开发环境无法复现

期望结果

No response

实际结果

No response

框架版本

vue3

浏览器版本

No response

系统版本

No response

Node版本

18.19.0

补充说明

No response

Copy link
Contributor

👋 @RomenMark,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

@anlyyao anlyyao added the sfc changed to tsx sfc changed to tsx label Apr 18, 2024
@anlyyao anlyyao added the Stale label Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sfc changed to tsx sfc changed to tsx Stale
Projects
None yet
Development

No branches or pull requests

2 participants