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] 自定义折叠选中项选择器 #3040

Closed
iimpzz opened this issue Jan 16, 2024 · 3 comments
Closed

[select] 自定义折叠选中项选择器 #3040

iimpzz opened this issue Jan 16, 2024 · 3 comments
Assignees
Labels
invalid This doesn't seem right

Comments

@iimpzz
Copy link

iimpzz commented Jan 16, 2024

tdesign-vue 版本

"tdesign-vue": "^1.6.3-naruto",

重现链接

No response

重现步骤

我想删除被折叠的选项发现方法里的Onclose打印成undefined

期望结果

可以正常关闭折叠项

实际结果

实际上报错无反应

框架版本

No response

浏览器版本

No response

系统版本

No response

Node版本

No response

补充说明

collapsedItems(h, {
value, count, collapsedSelectedItems, onClose,
}) {
console.log('collapsedItems: ', value, collapsedSelectedItems, count, onClose);
if (!count) return;
// hover展示全部已选项
return (


{collapsedSelectedItems.map((item, index) => (


<t-tag
closable={true}
onClick={() => {
onClose(index + 1);
}}
>
{item.label}


))}

0} style="color: #ED7B2F; margin-left: 8px">
+{count}


);
},

Copy link
Contributor

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

Copy link
Contributor

♥️ 有劳 @geff1991 @skytt @uyarn 尽快确认问题。
确认有效后将下一步计划和可能需要的时间回复给 @iimpzz

@uyarn
Copy link
Collaborator

uyarn commented Jan 16, 2024

版本问题 1.7.2新增的能力 你升级上来 1.7.2以上版本的naruto
image

@uyarn uyarn added the invalid This doesn't seem right label Jan 16, 2024
@uyarn uyarn closed this as completed Jan 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants