- "ng-zorro-antd": "^0.6.15",
+"ng-zorro-antd": "^1.8.1",
npm install
- [nzSize]="'large'" [nzType]="'default'"
+ nzSize="large" nzType="default"
nz-input标签更换为input标签,并增加nz-input属性
nzDisabled属性更换为disabled
nzPlaceHolder属性更换为placeholder
nzBlur事件更换为blur
- <nz-input [(ngModel)]="searchName" [nzPlaceHolder]="'请输入企业名称'" [nzDisabled]="operationType=='detail'" (nzBlur)="companyNameChecker()"></nz-input>
+ <input nz-input [(ngModel)]="searchName" [placeholder]="'请输入企业名称'" [disabled]="operationType=='detail'" (blur)="companyNameChecker()">
nzDataSource属性更换为nzData,
nzIsPagination属性更换为nzShowPagination
nzCustomNoResult属性更换为nzNoResult
- <nz-table #nzTable [nzDataSource]="priceList" [nzIsPagination]="false" [nzLoading]="_isSpinning" [nzCustomNoResult]="_isSpinning">
+ <nz-table #nzTable [nzData]="priceList" [nzShowPagination]="false" [nzLoading]="_isSpinning" [nzNoResult]="_isSpinning">
nzCheckbox属性更换为nzShowCheckbox
ngModel属性更换为nzChecked
ngModelChange属性更换为nzCheckedChange
- <th nz-th [nzCheckbox]="true">
- <label nz-checkbox [(ngModel)]="_checked" (ngModelChange)="checkoutAll($event)"></label>
- </th>
+ <th nz-th nzShowCheckbox [(nzChecked)]="_checked" (nzCheckedChange)="checkoutAll($event)"></th>
nzCheckbox属性更换为nzShowCheckbox
nzDisabledDate属性更换为nzDisabledTime
- <nz-datepicker [(ngModel)]="executionTime" [nzDisabledDate]="_disabledDate"...
+ <nz-date-picker [(ngModel)]="executionTime" [nzDisabledTime]="_nzDisabledTime"...
nzShowTotal属性由布尔值变成TemplateRef
<nz-pagination [nzPageIndex]="pageIndex" [nzPageSize]="pageSize" [nzShowTotal]="totalTemplate" [nzTotal]="tbodyTotal.length"
(nzPageIndexChange)="pageIndexChange($event)"></nz-pagination>
<ng-template #totalTemplate let-total>
共 {{total}} 条
</ng-template>
nz-table-divider属性更换为nz-divider标签,并增加nzType属性
- <span nz-table-divider></span>
+ <nz-divider nzType="vertical"></nz-divider>
class属性改为nzType,且去掉antion-,并增加nz-icon属性,增加nzTheme属性
- <i class="anticon anticon-menu-fold autoMenu">
+ <i nz-icon nzType="menu-fold" nzTheme="outline"></i>
所有属性前增加nz且驼峰写法
nMods.confirm({
- title: '电价已保存成功!',
+ nzTitle: '电价已保存成功!',
- content: '<b>您是否要继续执行该范围内其他等级电压?</b>',
+ nzContent: '<b>您是否要继续执行该范围内其他等级电压?</b>',
- okText: '继续',
+ nzOkText: '继续',
- onOk() {
+ nzOnOk() {
}
})