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

[t-progress] 进度条的status动态写法时缺少默认值default #3470

Open
Jiaqi-qi opened this issue Jan 16, 2025 · 1 comment
Open

Comments

@Jiaqi-qi
Copy link

tdesign-vue 版本

1.8.1

重现链接

No response

重现步骤

<t-progress
my-15px
theme="circle"
:percentage="percent"
:size="160"
strokeWidth="18"
:color="percent >= 100 ? '#2ba471' : '#165DFF'"
:status="${percent >= 100 ? 'success' : ''}"
trackColor="#fff"

当进度条的状态status为''时,控制台会警告[Vue warn]: Invalid prop: custom validator check failed for prop "status".

期望结果

进度条的属性status增加默认值default或''

实际结果

当status设置为空时,控制台警告[Vue warn]: Invalid prop: custom validator check failed for prop "status".

框架版本

No response

浏览器版本

No response

系统版本

No response

Node版本

18.17.1

补充说明

No response

Copy link
Contributor

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

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

No branches or pull requests

1 participant