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-select value 绑定Boolean值 报错 #3146

Closed
Corgis opened this issue Apr 17, 2024 · 8 comments
Closed

t-select value 绑定Boolean值 报错 #3146

Corgis opened this issue Apr 17, 2024 · 8 comments
Labels
to be published fixed, not be published

Comments

@Corgis
Copy link

Corgis commented Apr 17, 2024

tdesign-vue 版本

1.9.2

重现链接

https://stackblitz.com/edit/29tbze?file=src%2Fdemo.vue

重现步骤

打开控制台,点击下拉选择,控制台报错如下
image

期望结果

根据文档描述 value可以绑定 Boolean值,希望不报错

实际结果

控制台报错

框架版本

2.6.14

浏览器版本

Chrome 123.0.6312.123

系统版本

Windows 10 家庭版

Node版本

v18.20.1

补充说明

No response

Copy link
Contributor

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

@XBIsland
Copy link
Contributor

XBIsland commented Apr 19, 2024

inputValue: {
type: [String, Number] as PropType<TdSelectProps['inputValue']>,
},

不支持 Boolean
没找到文档说支持的地方,能否提供下截图。

@Corgis
Copy link
Author

Corgis commented Apr 20, 2024

inputValue: {
type: [String, Number] as PropType<TdSelectProps['inputValue']>,
},

不支持 Boolean。 没找到文档说支持的地方,能否提供下截图。

image

@Corgis
Copy link
Author

Corgis commented Apr 20, 2024

image

@Corgis
Copy link
Author

Corgis commented Apr 23, 2024

@XBIsland 请问是什么情况?

@uyarn
Copy link
Collaborator

uyarn commented Apr 25, 2024

@XBIsland 之前的版本支持了 是有个地方没补充完类型导致option slot方法报类型错误导致

@uyarn uyarn added the to be published fixed, not be published label Apr 25, 2024
@uyarn
Copy link
Collaborator

uyarn commented Apr 25, 2024

@Corgis 下个版本会修复告警 目前应该可以使用但是控制台有报错

@uyarn
Copy link
Collaborator

uyarn commented Apr 26, 2024

fixed 1.9.3

@uyarn uyarn closed this as completed Apr 26, 2024
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

No branches or pull requests

3 participants