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] 分组情况下collapsedSelectedItems为空 #2540

Open
RomenMark opened this issue Jun 27, 2023 · 2 comments
Open

[select] 分组情况下collapsedSelectedItems为空 #2540

RomenMark opened this issue Jun 27, 2023 · 2 comments
Assignees
Labels
🐞 bug Something isn't working

Comments

@RomenMark
Copy link

tdesign-vue 版本

1.4.4

重现链接

No response

重现步骤


options: [
{
group: '分组一',
children: [
{ label: '选项一', value: 1 },
{ label: '选项二', value: 2 },
],
},
{
group: '分组二',
children: [
{ label: '选项三', value: 4 },
{ label: '选项四', value: 5 },
{ label: '选项五', value: 6 },
],
},
{
group: '分组三',
divider: true,
children: [
{ label: '选项六', value: 7 },
{ label: '选项七', value: 8 },
{ label: '选项八', value: 9 },
],
}]
collapsedItems(h, { value, count, collapsedSelectedItems }) {
console.log('collapsedItems: ', value, collapsedSelectedItems, count);
if (!count) return;
// hover展示全部已选项
return (


{collapsedSelectedItems.map((item) => (

{item.label}


))}

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


);
},

期望结果

collapsedSelectedItems 正常获取

实际结果

collapsedSelectedItems 为undefined

框架版本

vue(2.6.12)

浏览器版本

Chrome(112.0.5615.138)

系统版本

win10

Node版本

14.17.0

补充说明

No response

@github-actions
Copy link
Contributor

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

@github-actions
Copy link
Contributor

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

@uyarn uyarn added the 🐞 bug Something isn't working label Jun 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants