样式工具类·续1

bg-center 背景图垂直居中
scrollbar 美化 div 滚动条
color-weak 色弱模式

小部件

瀑布流

在线示例。

名称 说明
row-masonry 行

| row-masonry-{xs|sm|md|lg|xl}-{1-10} | 列,响应式样式 | |---|---|

col-masonry 列

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-reptitle 标题
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

名称 说明
ant-tag__plus 增加按钮样式