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

嵌套TAB的nzTabBarExtraContent问题 #452

Closed
goohqy opened this issue Oct 18, 2017 · 3 comments
Closed

嵌套TAB的nzTabBarExtraContent问题 #452

goohqy opened this issue Oct 18, 2017 · 3 comments
Labels

Comments

@goohqy
Copy link

goohqy commented Oct 18, 2017

嵌套TAB,子TAB的nzTabBarExtraContent内容会重复显示在父TAB中
image

@tigercosmos
Copy link
Contributor

@goohqy could you paste your component code here?

@hsuanxyz
Copy link
Member

hsuanxyz commented Oct 21, 2017

@tigercosmos

    <nz-tabset>
      <nz-tab>
        <ng-template #nzTabHeading>
          Tab1
        </ng-template>
        <nz-tabset>
          <nz-tab>
            <ng-template #nzTabHeading>
              SubTab1
            </ng-template>
            <span>SubContent1</span>
          </nz-tab>
          <nz-tab>
            <ng-template #nzTabHeading>
              SubTab2
            </ng-template>
            <span>SubContent2</span>
          </nz-tab>
          <ng-template id="1" #nzTabBarExtraContent>
            <i class="ant-tabs-new-tab anticon anticon-plus"></i>
          </ng-template>
        </nz-tabset>
      </nz-tab>
      <nz-tab>
        <ng-template #nzTabHeading>
          Tab2
        </ng-template>
        <span>Content2</span>
      </nz-tab>
    </nz-tabset>

@ContentChild('nzTabBarExtraContent') nzTabBarExtraContent: TemplateRef<any>;

@lock
Copy link

lock bot commented Feb 18, 2019

This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.

@lock lock bot locked as resolved and limited conversation to collaborators Feb 18, 2019
hsuanxyz added a commit to hsuanxyz/ng-zorro-antd that referenced this issue Aug 5, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants