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 从 undefined 切换为有值时,表格分页功能不生效 #2867

Closed
LoopZhou opened this issue Oct 23, 2023 · 2 comments
Assignees
Labels
🐞 bug Something isn't working

Comments

@LoopZhou
Copy link
Collaborator

tdesign-vue 版本

1.6.5

重现链接

https://stackblitz.com/edit/qfxu4a-jhe2jr?file=src%2Fdemo.vue

重现步骤

如示例,实现table没有数据时不显示分页,有数据才显示分页组件。

文档显示类型是object,
image

尝试初始化pagination配置false和‘’功能起效,但是类型报错
尝试初始化pagination配置null或undefined,分页赋值后不起效, 报错Cannot convert undefined or null to object

期望结果

希望明确不显示分页时,pagination为空的赋值和类型

实际结果

目前配置false是可实现功能,但是类型报错

框架版本

vue2

浏览器版本

Chrome(117.0.5938.149)

系统版本

MacOS

Node版本

16.17.0

补充说明

No response

@github-actions
Copy link
Contributor

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

@github-actions
Copy link
Contributor

github-actions bot commented Oct 23, 2023

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

@chaishi chaishi added the invalid This doesn't seem right label Nov 30, 2023
@chaishi chaishi closed this as completed Nov 30, 2023
@chaishi chaishi changed the title [Table] 不显示分页,pagination值为空的赋值和类型问题 [Table] pagination 从 undefined 切换为有值时,表格分页功能不生效 Nov 30, 2023
@chaishi chaishi reopened this Nov 30, 2023
@chaishi chaishi added 🐞 bug Something isn't working and removed invalid This doesn't seem right labels Nov 30, 2023
@github-actions github-actions bot mentioned this issue Dec 7, 2023
16 tasks
@chaishi chaishi closed this as completed Dec 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants