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] 表格传入分页数据中如果pagination.total为0视图上切换每页条数时控制台报错 #2932

Closed
xinller opened this issue Nov 27, 2023 · 3 comments · Fixed by #2937
Assignees
Labels
to be published fixed, not be published

Comments

@xinller
Copy link

xinller commented Nov 27, 2023

tdesign-vue 版本

1.8.0

重现链接

No response

重现步骤

<t-table
:data="data"
:columns="columns"
rowKey="id"
:pagination="pagination"

数据大概这样
const data=[]
const pagination = {
current:1,
pageSize:10,
total:0,
showJumper: true
}

页面中切换每页条数时控制台会报错:custom validator check failed for prop "current". (由于total为0时切换条数导致的)
单独使用pagination组件给他传入total=0不会报错,

期望结果

No response

实际结果

Invalid prop: custom validator check failed for prop "current".

found in tpagination

框架版本

No response

浏览器版本

No response

系统版本

No response

Node版本

No response

补充说明

No response

Copy link
Contributor

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

Copy link
Contributor

♥️ 有劳 @chaishi @nined9 @yanxugong @chuyueZhang 尽快确认问题。
确认有效后将下一步计划和可能需要的时间回复给 @xinller

@xinller
Copy link
Author

xinller commented Nov 27, 2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
to be published fixed, not be published
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants