-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
feat(module:transfer): add transfer component #578
Conversation
@@ -118,6 +119,7 @@ export { NzBackTopModule } from './back-top/nz-back-top.module'; | |||
export { NzAffixModule } from './affix/nz-affix.module'; | |||
export { NzAnchorModule } from './anchor/nz-anchor.module'; | |||
export { NzAvatarModule } from './avatar/nz-avatar.module'; | |||
export { NzTransferModule } from './transfer/nz-transfer.module'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
forget to export TransferComponent?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
@Component({ | ||
selector: 'nz-transfer-search', | ||
template: ` | ||
<input nz-input type="text" [(ngModel)]="value" (ngModelChange)="_handle()" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there is no need to add type="text" as default attribute
</tr> | ||
<tr> | ||
<td>nzItemUnit</td> | ||
<td>标题项目单位</td> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not clear enough
单数单位
maybe better?
</tr> | ||
<tr> | ||
<td>nzItemsUnit</td> | ||
<td>标题项目单位</td> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not clear enough
复数单位
maybe better?
} | ||
|
||
_handleSelect(item: TransferItem) { | ||
item.checked = !item.checked; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
handle with disabled state?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no, originally just rely nz-checkbox
, thx.
export transfer component. fix code review issues.
@cipchk it seems ok on mac computer. |
export transfer component. fix code review issues. related NG-ZORRO#132
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Issue Number: N/A
What is the new behavior?
Does this PR introduce a breaking change?
Other information