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

when nz-transfer in nz-form, it's title display style error #1732

Closed
dusdong opened this issue Jun 27, 2018 · 3 comments
Closed

when nz-transfer in nz-form, it's title display style error #1732

dusdong opened this issue Jun 27, 2018 · 3 comments
Assignees
Labels

Comments

@dusdong
Copy link

dusdong commented Jun 27, 2018

Version

1.1.0

Environment

ng-zorro 1.1.0

Reproduction link

https://stackblitz.com/edit/ng-zorro-transfer-in-form

Steps to reproduce

请选择项目 ## What is expected? 标题可以正常显示 ## What is actually happening? 标题被左对齐了 ## Other?

image

@hsuanxyz
Copy link
Member

@dusdong 临时方案:

::ng-deep .ant-form-item .ant-transfer-list-header label {
  position: static;
}

@cipchk react 那边结构和咱们不一样。

zorro

<div class="ant-transfer-list-header">
  <label nz-checkbox="" class="ant-checkbox-wrapper">
    <span class="ant-checkbox">
      <input class="ant-checkbox-input" type="checkbox">
      <span class="ant-checkbox-inner"></span>
    </span>
    <span>
      <span class="ant-transfer-list-header-selected">
        <span>18 项</span>
        <!--bindings={ "ng-reflect-ng-if": "Source" }-->
        <span class="ant-transfer-list-header-title">Source</span></span>
    </span>
  </label>
</div>

react

<div class="ant-transfer-list-header">
  <label class="ant-checkbox-wrapper">
    <span class="ant-checkbox">
      <input type="checkbox" class="ant-checkbox-input" value="">
      <span class="ant-checkbox-inner"></span>
    </span>
  </label>
  <span class="ant-transfer-list-header-selected">
    <span>14 项</span>
    <span class="ant-transfer-list-header-title">Source</span></span>
</div>

@dusdong
Copy link
Author

dusdong commented Jun 27, 2018

临时方案好使,谢谢!

@lock
Copy link

lock bot commented Jun 28, 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 Jun 28, 2019
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