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

[Radio] 按钮单选框的显示有问题 #2873

Closed
luoyu-233 opened this issue May 22, 2023 · 6 comments
Closed

[Radio] 按钮单选框的显示有问题 #2873

luoyu-233 opened this issue May 22, 2023 · 6 comments
Assignees

Comments

@luoyu-233
Copy link

tdesign-vue-next 版本

最新版本

重现链接

No response

重现步骤

image
给按钮单选框
label字段不生效

期望结果

以前的版本会生效,最近的版本好像都失效了

实际结果

希望label字段可以生效

框架版本

No response

浏览器版本

No response

系统版本

No response

Node版本

No response

补充说明

No response

@github-actions
Copy link
Contributor

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

@github-actions
Copy link
Contributor

♥️ 有劳 @LeeJim @k1nz 尽快确认问题。
确认有效后将下一步计划和可能需要的时间回复给 @luoyu-233

@13725102796
Copy link

这个问题在线上确实存在,本地运行是正常的。(为此我还切换到1.3.4版本去看了一下)
疑似传入label时,使用了Slot方法去render元素

# src/hooks/tnode.ts.   line: 66 - 68
 if (propsNode === true) {
      return handleSlots(instance, name, params) || defaultNode;
 }

https://github.com/Tencent/tdesign-vue-next/blob/1.3.4/src/hooks/tnode.ts

@luoyu-233
Copy link
Author

这个问题在线上确实存在,本地运行是正常的。(为此我还切换到1.3.4版本去看了一下) 疑似传入label时,使用了Slot方法去render元素

# src/hooks/tnode.ts.   line: 66 - 68
 if (propsNode === true) {
      return handleSlots(instance, name, params) || defaultNode;
 }

https://github.com/Tencent/tdesign-vue-next/blob/1.3.4/src/hooks/tnode.ts

我本地和线上都有问题,觉得这个label还是挺重要的,项目中用到的地方也挺多的

@13725102796
Copy link

它那一块用来渲染节点的方法都走的是这个,估计也不好动。

@luoyu-233
Copy link
Author

它那一块用来渲染节点的方法都走的是这个,估计也不好动。

看他api上面写着能用,没想到更新版本之后不能用了,可能是要再优化代码吧

@github-actions github-actions bot mentioned this issue Jun 7, 2023
16 tasks
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

4 participants