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

[Select] 不支持 boolean 作为参数 #4922

Open
Hiram-Wong opened this issue Jan 12, 2025 · 1 comment
Open

[Select] 不支持 boolean 作为参数 #4922

Hiram-Wong opened this issue Jan 12, 2025 · 1 comment
Labels
🐞 bug Something isn't working easy 上架到腾讯内部issueshoot平台的任务 - 容易难度 issueShoot 上架到腾讯内部issueshoot平台的任务

Comments

@Hiram-Wong
Copy link

Hiram-Wong commented Jan 12, 2025

tdesign-vue-next 版本

1.10.6

重现链接

No response

重现步骤

<t-select v-model="form.test" clearable>
    <t-option label="启用" :value="true" />
    <t-option label="禁用" :value="false" />
</t-select>

期望结果

No response

实际结果

控制台报错

Invalid prop: type check failed for prop "value". Expected String | Number, got Boolean with value true. 
  at <TOption label="启用" value=true slots=null  ... > 
  at <TSelectPanel ref=Ref< null > size="medium" multiple=false  ... > 
  at <BaseTransition onEnter=fn onAfterLeave=fn<destroyPopper> appear=true  ... > 
  at <Transition name="t-popup--animation" appear=true onEnter=fn<updatePopper>  ... > 
  at <TPopupContent onResize=fn<emitResize> onVnodeMounted=fn<onVnodeMounted> > 
  at <TPopupContainer ref=fn<ref2> forwardRef=fn<forwardRef> onContentMounted=fn<onContentMounted>  ... > 
  at <TPopup ref="popupRef" trigger="click" placement="bottom-left"  ... > 
  at <TSelectInput autoWidth=false readonly=false borderless=false  ... > 
  at <TSelect modelValue=undefined onUpdate:modelValue=fn clearable="" > 
  at <TFormItem label="数据状态" name="status" > 
  at <TForm key=0 ref="queryRef" data= 

框架版本

3.5.13

浏览器版本

Chrome(131.0.6778.265)

系统版本

MacOS(15.2)

Node版本

20

补充说明

No response

IssueShoot

  • 预估时长: 1
  • 期望完成时间: 2025-01-19 00:00:00 +0000 UTC
  • 开发难度: 低
  • 参与人数: 1
  • 需求对接人: ivringpeng
  • 验收标准: 实现期望改造效果,提 PR 并通过验收无误
  • 备注: 最终激励以实际提交 pull request 并合并为准
Copy link
Contributor

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

@uyarn uyarn added 🐞 bug Something isn't working issueShoot 上架到腾讯内部issueshoot平台的任务 easy 上架到腾讯内部issueshoot平台的任务 - 容易难度 labels Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working easy 上架到腾讯内部issueshoot平台的任务 - 容易难度 issueShoot 上架到腾讯内部issueshoot平台的任务
Projects
None yet
Development

No branches or pull requests

2 participants