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

树组件右键弹出操作面板,nz-dropdown-menu被树组件的ng-template包裹,右键的时会先后弹出两个框 #4684

Closed
007GitHu opened this issue Jan 14, 2020 · 2 comments

Comments

@007GitHu
Copy link

Reproduction link

https://stackblitz.com/edit/angular-az8atm?file=src/app/app.component.ts

Steps to reproduce

<ng-template #nzTreeTemplate let-node>
<nz-dropdown-menu #menu="nzDropdownMenu">
<li nz-menu-item (click)="selectDropdown(node)">node值
<li nz-menu-item (click)="selectDropdown(node)">node值

What is expected?

树组件的支持右键弹出操作面板,nz-dropdown-menu被树组件的ng-template包裹起来,右键弹框正常

What is actually happening?

实际效果是会先后弹出两个框

Environment Info
ng-zorro-antd 8.5.2
Browser 谷歌

包裹起来的目的是想在右键弹出的操作面板里面获取node节点的值

@zorro-bot
Copy link

zorro-bot bot commented Jan 14, 2020

Translation of this issue:

Right panel eject operation tree component, nz-dropdown-menu will be when the box has two pop ng-template wrapped tree assembly, the right

Reproduction link

[Https://stackblitz.com/edit/angular-az8atm?file=src/app/app.component.ts](https://stackblitz.com/edit/angular-az8atm?file=src/app/app. component.ts)

Steps to reproduce

<Ng-template #nzTreeTemplate let-node>
    <Nz-dropdown-menu # menu = "nzDropdownMenu">
         <Nz-menu-item (click) = "selectDropdown (node)" li> node value </ li>
        <Nz-menu-item (click) = "selectDropdown (node)" li> node value </ li>
    </ Nz-dropdown-menu>
</ Ng-template>
   

What is expected?

Support the right tree assembly eject operation panel, nz-dropdown-menu tree assembly is wrapped ng-template, right-normal playing block

What is actually happening?

The actual effect will have two pop-up boxes

Environment Info
Ng-zorro-antd 8.5.2
Browser Google

The wrapped object is to obtain the value of the right node in the node inside the pop-up control panel

@vthinkxie
Copy link
Member

ref #3971

@vthinkxie vthinkxie added this to the 9.0.0 milestone Feb 4, 2020
Ricbet pushed a commit to Ricbet/ng-zorro-antd that referenced this issue Apr 9, 2020
@hsuanxyz hsuanxyz mentioned this issue Apr 15, 2020
hsuanxyz pushed a commit to hsuanxyz/ng-zorro-antd that referenced this issue Aug 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants