样式工具类·续1
小部件
瀑布流
在线示例。
| row-masonry-{xs|sm|md|lg|xl}-{1-10} | 列,响应式样式 |
|---|---|
ng-zorro
nz-card
| ant-card__body-nopadding |
强制内容无间距 |
|
|
nz-modal
| modal-{sm|md|lg|xl} | 设置Modal的大小,wrapClassName: ‘modal-lg’ |
|---|---|
| modal-body-nopadding |
内容无内边距 |
|
|
| modal-header |
自定义Modal时非常有效,DEMO |
|
|
| modal-footer |
自定义Modal时非常有效,DEMO |
|
|
nz-table
| ant-table-rephide-header-footer |
小屏幕时才显示标题或底部 |
|
|
基础样例
小屏幕查看效果。
import { Component } from '@angular/core';@Component({ selector: 'theme-tools-table-rep', template: ` <nz-table #basicTable [nzData]="dataSet" nzTitle="This is title" class="ant-table-rep__hide-header-footer"> <thead> <tr> <th>Name</th> <th>Age</th> <th>Address</th> </tr> </thead> <tbody> <tr *ngFor="let data of basicTable.data"> <td> <span class="ant-table-rep__title">Name</span> {{data.name}} </td> <td> <span class="ant-table-rep__title">Age</span> {{data.age}} </td> <td> <span class="ant-table-rep__title">Address</span> {{data.address}} </td> </tr> </tbody> </nz-table> `,})export class ThemeTableRepComponent { dataSet = [ { key: '1', name: 'John Brown', age: 32, address: 'New York No. 1 Lake Park', }, { key: '2', name: 'Jim Green', age: 42, address: 'London No. 1 Lake Park', }, { key: '3', name: 'Joe Black', age: 32, address: 'Sidney No. 1 Lake Park', }, ];}
nz-tag