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

[dropdown] 下拉菜单子层级点击事件触发问题 #1662

Closed
louisace opened this issue Sep 9, 2022 · 3 comments
Closed

[dropdown] 下拉菜单子层级点击事件触发问题 #1662

louisace opened this issue Sep 9, 2022 · 3 comments
Assignees

Comments

@louisace
Copy link

louisace commented Sep 9, 2022

tdesign 版本

vue-next 0.20.3

重现链接

No response

重现步骤

<template>
  <t-space>
    <t-dropdown :options="options" :min-column-width="88">
      <t-button variant="text">下拉菜单</t-button>
    </t-dropdown>
  </t-space>
</template>
<script setup>
import { MessagePlugin } from 'tdesign-vue-next';

const options = [
  {
    content: '选项一',
    value: 1,
    onClick: () => MessagePlugin.success('选项一'),
  },
  {
    content: '选项二',
    value: 2,
    // onClick: () => MessagePlugin.success('选项二'),
    children: [
      {
        content: '选项五',
        value: 5,
        onClick: () => MessagePlugin.success('选项五'),
      },
    ],
  },
  {
    content: '选项三',
    value: 3,
    onClick: () => MessagePlugin.success('选项三'),
  },
];
</script>

点击选项五后,弹窗提示为选项一,点击子级菜单的第一个数据触发的是父级菜单的第一个数据。

期望结果

No response

实际结果

No response

框架版本

3.2.31

浏览器版本

Chrome(105.0.5195.102)

系统版本

MacOS(12.5.1)

Node版本

16.16.0

补充说明

No response

@xiaosansiji xiaosansiji transferred this issue from Tencent/tdesign Sep 14, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Sep 14, 2022

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

@github-actions
Copy link
Contributor

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

@PengYYYYY
Copy link
Collaborator

#1647

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

2 participants