index.jsx 16.8 KB
Newer Older
A
afc163 已提交
1 2
import React from 'react';
import Table from 'rc-table';
A
afc163 已提交
3
import Checkbox from '../checkbox';
R
RaoHai 已提交
4
import Radio from '../radio';
A
afc163 已提交
5
import FilterDropdown from './filterDropdown';
6
import Pagination from '../pagination';
A
afc163 已提交
7
import Icon from '../icon';
A
afc163 已提交
8
import objectAssign from 'object-assign';
K
KgTong 已提交
9
import Spin from '../spin';
A
afc163 已提交
10
import classNames from 'classnames';
A
afc163 已提交
11

Y
yiminghe 已提交
12 13
function noop() {
}
14

B
Benjy Cui 已提交
15 16 17 18 19 20
const defaultLocale = {
  filterTitle: '筛选',
  filterConfirm: '确定',
  filterReset: '重置'
};

A
afc163 已提交
21
let AntTable = React.createClass({
Y
yiminghe 已提交
22
  getInitialState() {
A
afc163 已提交
23
    return {
Y
yiminghe 已提交
24
      // 减少状态
A
afc163 已提交
25
      selectedRowKeys: [],
Y
yiminghe 已提交
26
      filters: {},
A
afc163 已提交
27
      selectionDirty: false,
Y
yiminghe 已提交
28 29 30
      sortColumn: '',
      sortOrder: '',
      sorter: null,
R
RaoHai 已提交
31
      radioIndex: null,
Y
yiminghe 已提交
32
      pagination: this.hasPagination() ? objectAssign({
A
afc163 已提交
33 34
        pageSize: 10,
        current: 1
Y
yiminghe 已提交
35
      }, this.props.pagination) : {}
A
afc163 已提交
36 37
    };
  },
Y
yiminghe 已提交
38

A
afc163 已提交
39 40
  getDefaultProps() {
    return {
A
afc163 已提交
41
      prefixCls: 'ant-table',
A
afc163 已提交
42
      useFixedHeader: false,
A
afc163 已提交
43
      rowSelection: null,
Y
yiminghe 已提交
44
      className: '',
A
afc163 已提交
45
      size: 'large',
A
afc163 已提交
46
      loading: false,
A
afc163 已提交
47
      bordered: false,
B
Benjy Cui 已提交
48 49
      onChange: noop,
      locale: {}
A
afc163 已提交
50 51
    };
  },
Y
yiminghe 已提交
52

A
afc163 已提交
53
  propTypes: {
A
afc163 已提交
54
    dataSource: React.PropTypes.array,
A
afc163 已提交
55 56
  },

R
RaoHai 已提交
57 58 59 60 61 62
  getDefaultSelection() {
    let selectedRowKeys = [];
    if (this.props.rowSelection && this.props.rowSelection.getCheckboxProps) {
      let data = this.getCurrentPageData();
      data.filter((item) => {
        if (this.props.rowSelection.getCheckboxProps) {
63
          return this.props.rowSelection.getCheckboxProps(item).defaultChecked;
R
RaoHai 已提交
64 65 66 67 68 69 70 71 72
        }
        return true;
      }).map((record, rowIndex) => {
        selectedRowKeys.push(this.getRecordKey(record, rowIndex));
      });
    }
    return selectedRowKeys;
  },

A
afc163 已提交
73
  componentWillReceiveProps(nextProps) {
Y
yiminghe 已提交
74
    if (('pagination' in nextProps) && nextProps.pagination !== false) {
75 76 77
      this.setState({
        pagination: objectAssign({}, this.state.pagination, nextProps.pagination)
      });
A
afc163 已提交
78
    }
79 80
    // 外界只有 dataSource 的变化会触发新请求
    if ('dataSource' in nextProps &&
A
afc163 已提交
81 82 83
        nextProps.dataSource !== this.props.dataSource) {
      let selectedRowKeys = this.state.selectedRowKeys;
      // 把不在当前页的选中项去掉
A
afc163 已提交
84 85 86 87 88 89 90
      let currentPageRowKeys =
        this.getCurrentPageData(nextProps.dataSource).map(
          (record, i) => this.getRecordKey(record, i)
        );
      selectedRowKeys = selectedRowKeys.filter((key) => {
        return currentPageRowKeys.indexOf(key) >= 0;
      });
91
      this.setState({
A
afc163 已提交
92
        selectionDirty: false,
A
afc163 已提交
93
        selectedRowKeys,
A
afc163 已提交
94 95
      });
    }
A
afc163 已提交
96
  },
A
afc163 已提交
97 98

  hasPagination(pagination) {
A
afc163 已提交
99
    return this.props.pagination !== false;
A
afc163 已提交
100
  },
A
afc163 已提交
101

A
afc163 已提交
102
  toggleSortOrder(order, column) {
103 104
    let sortColumn = this.state.sortColumn;
    let sortOrder = this.state.sortOrder;
J
jljsj 已提交
105
    let sorter;
A
afc163 已提交
106 107 108 109 110 111 112 113 114 115 116 117 118
    // 只同时允许一列进行排序,否则会导致排序顺序的逻辑问题
    let isSortColumn = this.isSortColumn(column);
    if (!isSortColumn) {  // 当前列未排序
      sortOrder = order;
      sortColumn = column;
    } else {                      // 当前列已排序
      if (sortOrder === order) {  // 切换为未排序状态
        sortOrder = '';
        sortColumn = null;
      } else {                    // 切换为排序状态
        sortOrder = order;
      }
    }
A
afc163 已提交
119
    if (typeof column.sorter === 'function') {
Y
yiminghe 已提交
120
      sorter = function () {
121
        let result = column.sorter.apply(this, arguments);
122
        if (sortOrder === 'ascend') {
123
          return result;
124
        } else if (sortOrder === 'descend') {
125 126 127
          return -result;
        }
      };
A
afc163 已提交
128
    }
A
afc163 已提交
129 130 131 132 133
    const newState = {
      sortOrder,
      sortColumn,
      sorter
    };
A
afc163 已提交
134
    this.setState(newState);
A
afc163 已提交
135
    this.props.onChange.apply(this, this.prepareParamsArguments(objectAssign({}, this.state, newState)));
A
afc163 已提交
136
  },
A
afc163 已提交
137

Y
yiminghe 已提交
138 139 140 141
  handleFilter(column, filters) {
    filters = objectAssign({}, this.state.filters, {
      [this.getColumnKey(column)]: filters
    });
142 143 144 145 146 147 148
    // Remove filters not in current columns
    const currentColumnKeys = this.props.columns.map(c => this.getColumnKey(c));
    Object.keys(filters).forEach((columnKey) => {
      if (currentColumnKeys.indexOf(columnKey) < 0) {
        delete filters[columnKey];
      }
    });
A
afc163 已提交
149
    const newState = {
Y
yiminghe 已提交
150
      selectedRowKeys: [],
A
afc163 已提交
151
      selectionDirty: false,
A
afc163 已提交
152 153
      filters
    };
A
afc163 已提交
154
    this.setState(newState);
A
afc163 已提交
155
    this.props.onChange.apply(this, this.prepareParamsArguments(objectAssign({}, this.state, newState)));
A
afc163 已提交
156
  },
A
afc163 已提交
157

Y
yiminghe 已提交
158
  handleSelect(record, rowIndex, e) {
A
afc163 已提交
159
    let checked = e.target.checked;
R
RaoHai 已提交
160
    let defaultSelection = [];
A
afc163 已提交
161
    if (!this.state.selectionDirty) {
R
RaoHai 已提交
162 163 164
      defaultSelection = this.getDefaultSelection();
    }
    let selectedRowKeys = this.state.selectedRowKeys.concat(defaultSelection);
Y
yiminghe 已提交
165
    let key = this.getRecordKey(record, rowIndex);
166
    if (checked) {
Y
yiminghe 已提交
167
      selectedRowKeys.push(this.getRecordKey(record, rowIndex));
168
    } else {
Y
yiminghe 已提交
169 170
      selectedRowKeys = selectedRowKeys.filter((i) => {
        return key !== i;
171 172 173
      });
    }
    this.setState({
R
RaoHai 已提交
174
      selectedRowKeys: selectedRowKeys,
A
afc163 已提交
175
      selectionDirty: true
R
RaoHai 已提交
176 177 178 179 180 181 182 183 184 185 186 187 188
    });
    if (this.props.rowSelection.onSelect) {
      let data = this.getCurrentPageData();
      let selectedRows = data.filter((row, i) => {
        return selectedRowKeys.indexOf(this.getRecordKey(row, i)) >= 0;
      });
      this.props.rowSelection.onSelect(record, checked, selectedRows);
    }
  },

  handleRadioSelect: function (record, rowIndex, e) {
    let checked = e.target.checked;
    let defaultSelection = [];
A
afc163 已提交
189
    if (!this.state.selectionDirty) {
R
RaoHai 已提交
190 191 192 193 194 195 196 197
      defaultSelection = this.getDefaultSelection();
    }
    let selectedRowKeys = this.state.selectedRowKeys.concat(defaultSelection);
    let key = this.getRecordKey(record, rowIndex);
    selectedRowKeys = [key];
    this.setState({
      selectedRowKeys: selectedRowKeys,
      radioIndex: record.key,
A
afc163 已提交
198
      selectionDirty: true
199 200
    });
    if (this.props.rowSelection.onSelect) {
Y
yiminghe 已提交
201 202 203
      let data = this.getCurrentPageData();
      let selectedRows = data.filter((row, i) => {
        return selectedRowKeys.indexOf(this.getRecordKey(row, i)) >= 0;
A
afc163 已提交
204
      });
Y
yiminghe 已提交
205
      this.props.rowSelection.onSelect(record, checked, selectedRows);
206 207
    }
  },
A
afc163 已提交
208

A
afc163 已提交
209 210
  handleSelectAllRow(e) {
    let checked = e.target.checked;
Y
yiminghe 已提交
211
    let data = this.getCurrentPageData();
R
RaoHai 已提交
212 213 214 215 216 217
    let selectedRowKeys = checked ? data.filter((item) => {
      if (this.props.rowSelection.getCheckboxProps) {
        return !this.props.rowSelection.getCheckboxProps(item).disabled;
      }
      return true;
    }).map((item, i) => {
Y
yiminghe 已提交
218 219
      return this.getRecordKey(item, i);
    }) : [];
A
afc163 已提交
220
    this.setState({
R
RaoHai 已提交
221
      selectedRowKeys: selectedRowKeys,
A
afc163 已提交
222
      selectionDirty: true
223 224
    });
    if (this.props.rowSelection.onSelectAll) {
Y
yiminghe 已提交
225 226
      let selectedRows = data.filter((row, i) => {
        return selectedRowKeys.indexOf(this.getRecordKey(row, i)) >= 0;
A
afc163 已提交
227 228
      });
      this.props.rowSelection.onSelectAll(checked, selectedRows);
A
afc163 已提交
229
    }
A
afc163 已提交
230
  },
A
afc163 已提交
231

232
  handlePageChange(current) {
Y
yiminghe 已提交
233
    let pagination = objectAssign({}, this.state.pagination);
234 235 236 237 238
    if (current) {
      pagination.current = current;
    } else {
      pagination.current = pagination.current || 1;
    }
A
afc163 已提交
239
    const newState = {
Y
yiminghe 已提交
240 241
      // 防止内存泄漏,只维持当页
      selectedRowKeys: [],
A
afc163 已提交
242
      selectionDirty: false,
A
afc163 已提交
243 244
      pagination
    };
A
afc163 已提交
245
    this.setState(newState);
A
afc163 已提交
246
    this.props.onChange.apply(this, this.prepareParamsArguments(objectAssign({}, this.state, newState)));
247
  },
A
afc163 已提交
248

R
RaoHai 已提交
249 250 251
  onRadioChange: function (ev) {
    this.setState({
      radioIndex: ev.target.value
Y
yiminghe 已提交
252
    });
253
  },
A
afc163 已提交
254

R
RaoHai 已提交
255 256 257 258 259 260
  renderSelectionRadio(value, record, index) {
    let rowIndex = this.getRecordKey(record, index); // 从 1 开始
    let props = {};
    if (this.props.rowSelection.getCheckboxProps) {
      props = this.props.rowSelection.getCheckboxProps.call(this, record);
    }
A
afc163 已提交
261 262 263 264 265 266 267
    let checked;
    if (this.state.selectionDirty) {
      checked = this.state.radioIndex === record.key;
    } else {
      checked = (this.state.radioIndex === record.key ||
                 this.getDefaultSelection().indexOf(rowIndex) >= 0);
    }
Y
yiminghe 已提交
268 269
    return <Radio disabled={props.disabled} onChange={this.handleRadioSelect.bind(this, record, rowIndex)}
                  value={record.key} checked={checked}/>;
R
RaoHai 已提交
270 271
  },

272
  renderSelectionCheckBox(value, record, index) {
Y
yiminghe 已提交
273
    let rowIndex = this.getRecordKey(record, index); // 从 1 开始
A
afc163 已提交
274 275 276 277 278 279 280
    let checked;
    if (this.state.selectionDirty) {
      checked = this.state.selectedRowKeys.indexOf(rowIndex) >= 0;
    } else {
      checked = (this.state.selectedRowKeys.indexOf(rowIndex) >= 0 ||
                 this.getDefaultSelection().indexOf(rowIndex) >= 0);
    }
R
RaoHai 已提交
281 282 283 284
    let props = {};
    if (this.props.rowSelection.getCheckboxProps) {
      props = this.props.rowSelection.getCheckboxProps.call(this, record);
    }
Y
yiminghe 已提交
285 286
    return <Checkbox checked={checked} disabled={props.disabled}
                     onChange={this.handleSelect.bind(this, record, rowIndex)}/>;
Y
yiminghe 已提交
287
  },
A
afc163 已提交
288 289

  getRecordKey(record, index) {
290 291 292
    if (this.props.rowKey) {
      return this.props.rowKey(record, index);
    }
Y
yiminghe 已提交
293
    return record.key || index;
294
  },
A
afc163 已提交
295

296
  renderRowSelection() {
Y
yiminghe 已提交
297
    let columns = this.props.columns.concat();
298
    if (this.props.rowSelection) {
Y
yiminghe 已提交
299 300 301 302 303
      let data = this.getCurrentPageData();
      let checked;
      if (!data.length) {
        checked = false;
      } else {
A
afc163 已提交
304
        data = data.filter((item) => {
R
RaoHai 已提交
305 306 307 308
          if (this.props.rowSelection.getCheckboxProps) {
            return !this.props.rowSelection.getCheckboxProps(item).disabled;
          }
          return true;
Y
yiminghe 已提交
309
        });
A
afc163 已提交
310 311 312 313 314 315
        checked = this.state.selectionDirty
          ? data.every((item, i) =>
              this.state.selectedRowKeys.indexOf(this.getRecordKey(item, i)) >= 0)
          : data.every((item, i) =>
              this.props.rowSelection.getCheckboxProps &&
              this.props.rowSelection.getCheckboxProps(item).defaultChecked);
Y
yiminghe 已提交
316
      }
R
RaoHai 已提交
317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332
      let selectionColumn;
      if (this.props.rowSelection.type === 'radio') {
        selectionColumn = {
          key: 'selection-column',
          render: this.renderSelectionRadio,
          className: 'ant-table-selection-column'
        };
      } else {
        let checkboxAll = <Checkbox checked={checked} onChange={this.handleSelectAllRow}/>;
        selectionColumn = {
          key: 'selection-column',
          title: checkboxAll,
          render: this.renderSelectionCheckBox,
          className: 'ant-table-selection-column'
        };
      }
333
      if (columns[0] &&
Y
yiminghe 已提交
334
        columns[0].key === 'selection-column') {
335 336 337 338 339 340 341
        columns[0] = selectionColumn;
      } else {
        columns.unshift(selectionColumn);
      }
    }
    return columns;
  },
Y
yiminghe 已提交
342

A
afc163 已提交
343 344 345 346 347 348 349 350 351 352 353
  getColumnKey(column, index) {
    return column.key || column.dataIndex || index;
  },

  isSortColumn(column) {
    if (!column || !this.state.sortColumn) {
      return false;
    }
    let colKey = this.getColumnKey(column);
    let isSortColumn = (this.getColumnKey(this.state.sortColumn) === colKey);
    return isSortColumn;
Y
yiminghe 已提交
354 355 356
  },

  renderColumnsDropdown(columns) {
B
Benjy Cui 已提交
357
    let locale = objectAssign({}, defaultLocale, this.props.locale);
Y
yiminghe 已提交
358
    return columns.map((column, i) => {
Y
yiminghe 已提交
359
      column = objectAssign({}, column);
A
afc163 已提交
360
      let key = this.getColumnKey(column, i);
A
afc163 已提交
361
      let filterDropdown, sortButton;
362
      if (column.filters && column.filters.length > 0) {
Y
yiminghe 已提交
363
        let colFilters = this.state.filters[key] || [];
A
afc163 已提交
364
        filterDropdown =
B
Benjy Cui 已提交
365
          <FilterDropdown locale={locale} column={column}
A
afc163 已提交
366
                          selectedKeys={colFilters}
Y
yiminghe 已提交
367
                          confirmFilter={this.handleFilter}/>;
A
afc163 已提交
368 369
      }
      if (column.sorter) {
A
afc163 已提交
370
        let isSortColumn = this.isSortColumn(column);
Y
yiminghe 已提交
371 372
        if (isSortColumn) {
          column.className = column.className || '';
A
afc163 已提交
373 374 375
          if (this.state.sortOrder) {
            column.className += ' ant-table-column-sort';
          }
Y
yiminghe 已提交
376
        }
B
Benjy Cui 已提交
377

A
afc163 已提交
378 379
        sortButton = <div className="ant-table-column-sorter">
          <span className={'ant-table-column-sorter-up ' +
380
                           ((isSortColumn && this.state.sortOrder === 'ascend') ? 'on' : 'off')}
A
afc163 已提交
381
                title="↑"
Y
yiminghe 已提交
382
                onClick={this.toggleSortOrder.bind(this, 'ascend', column)}>
Y
yiminghe 已提交
383
            <Icon type="caret-up"/>
A
afc163 已提交
384 385
          </span>
          <span className={'ant-table-column-sorter-down ' +
386
                           ((isSortColumn && this.state.sortOrder === 'descend') ? 'on' : 'off')}
A
afc163 已提交
387
                title="↓"
Y
yiminghe 已提交
388
                onClick={this.toggleSortOrder.bind(this, 'descend', column)}>
Y
yiminghe 已提交
389
            <Icon type="caret-down"/>
A
afc163 已提交
390 391 392
          </span>
        </div>;
      }
A
afc163 已提交
393 394 395 396 397
      column.title = <div>
        {column.title}
        {sortButton}
        {filterDropdown}
      </div>;
A
afc163 已提交
398
      return column;
A
afc163 已提交
399 400
    });
  },
A
afc163 已提交
401

402 403 404 405
  handleShowSizeChange(current, pageSize) {
    let pagination = objectAssign(this.state.pagination, {
      pageSize: pageSize
    });
A
afc163 已提交
406
    this.setState({ pagination });
407 408
  },

409 410
  renderPagination() {
    // 强制不需要分页
Y
yiminghe 已提交
411 412
    if (!this.hasPagination()) {
      return null;
A
afc163 已提交
413
    }
A
afc163 已提交
414 415 416 417
    let classString = classNames({
      'ant-table-pagination': true,
      'mini': this.props.size === 'middle' || this.props.size === 'small',
    });
A
afc163 已提交
418 419 420 421 422 423 424 425
    let total = this.state.pagination.total || this.getLocalData().length;
    return (total > 0) ?
      <Pagination className={classString}
                  onChange={this.handlePageChange}
                  total={total}
                  pageSize={10}
                  onShowSizeChange={this.handleShowSizeChange}
                  {...this.state.pagination} /> : null;
A
afc163 已提交
426
  },
A
afc163 已提交
427

Y
yiminghe 已提交
428
  prepareParamsArguments(state) {
429
    // 准备筛选、排序、分页的参数
430 431 432
    const pagination = state.pagination;
    const filters = state.filters;
    const sorter = {};
Y
yiminghe 已提交
433 434 435 436 437
    if (state.sortColumn &&
      state.sortOrder &&
      state.sortColumn.dataIndex) {
      sorter.field = state.sortColumn.dataIndex;
      sorter.order = state.sortOrder;
A
afc163 已提交
438 439
    }
    return [pagination, filters, sorter];
440
  },
Y
yiminghe 已提交
441

A
afc163 已提交
442
  findColumn(myKey) {
Y
yiminghe 已提交
443 444 445 446 447
    return this.props.columns.filter((c) => {
      return this.getColumnKey(c) === myKey;
    })[0];
  },

A
afc163 已提交
448
  getCurrentPageData(dataSource) {
A
afc163 已提交
449
    let data = this.getLocalData(dataSource);
Y
yiminghe 已提交
450 451 452 453 454 455
    let current, pageSize;
    let state = this.state;
    // 如果没有分页的话,默认全部展示
    if (!this.hasPagination()) {
      pageSize = Number.MAX_VALUE;
      current = 1;
456
    } else {
Y
yiminghe 已提交
457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474
      pageSize = state.pagination.pageSize;
      current = state.pagination.current;
    }
    // 分页
    // ---
    // 当数据量少于每页数量时,直接设置数据
    // 否则进行读取分页数据
    if (data.length > pageSize || pageSize === Number.MAX_VALUE) {
      data = data.filter((item, i) => {
        if (i >= (current - 1) * pageSize &&
          i < current * pageSize) {
          return item;
        }
      });
    }
    return data;
  },

A
afc163 已提交
475
  getLocalData(dataSource) {
Y
yiminghe 已提交
476
    let state = this.state;
A
afc163 已提交
477
    let data = dataSource || this.props.dataSource;
Y
yiminghe 已提交
478 479 480 481 482 483 484 485
    // 排序
    if (state.sortOrder && state.sorter) {
      data = data.sort(state.sorter);
    }
    // 筛选
    if (state.filters) {
      Object.keys(state.filters).forEach((columnKey) => {
        let col = this.findColumn(columnKey);
486 487 488
        if (!col) {
          return;
        }
Y
yiminghe 已提交
489
        let values = state.filters[columnKey] || [];
A
afc163 已提交
490 491 492
        if (values.length === 0) {
          return;
        }
A
afc163 已提交
493 494 495
        data = col.onFilter ? data.filter(record => {
          return values.some(v => col.onFilter(v, record));
        }) : data;
A
afc163 已提交
496
      });
A
afc163 已提交
497
    }
Y
yiminghe 已提交
498
    return data;
A
afc163 已提交
499
  },
Y
yiminghe 已提交
500 501 502 503

  render() {
    let data = this.getCurrentPageData();
    let columns = this.renderRowSelection();
Z
zhujun24 已提交
504
    let expandIconAsCell = this.props.expandedRowRender && this.props.expandIconAsCell !== false;
A
afc163 已提交
505 506 507 508 509 510 511

    let classString = classNames({
      [`ant-table-${this.props.size}`]: true,
      'ant-table-bordered': this.props.bordered,
      [this.props.className]: !!this.props.className,
    });

Y
yiminghe 已提交
512
    columns = this.renderColumnsDropdown(columns);
A
afc163 已提交
513
    columns = columns.map((column, i) => {
A
afc163 已提交
514
      column.key = column.key || column.dataIndex || i;
A
afc163 已提交
515 516
      return column;
    });
A
afc163 已提交
517
    let emptyText;
518
    let emptyClass = '';
A
afc163 已提交
519
    if (!data || data.length === 0) {
520
      emptyText = <div className="ant-table-placeholder">
Y
yiminghe 已提交
521
        <Icon type="frown"/>暂无数据
A
afc163 已提交
522
      </div>;
523
      emptyClass = ' ant-table-empty';
A
afc163 已提交
524
    }
A
afc163 已提交
525

A
afc163 已提交
526
    let table = <div>
527 528 529 530 531
      <Table {...this.props}
        data={data}
        columns={columns}
        className={classString}
        expandIconAsCell={expandIconAsCell} />
A
afc163 已提交
532 533
      {emptyText}
    </div>;
A
afc163 已提交
534
    if (this.props.loading) {
K
KgTong 已提交
535 536 537 538
      // if there is no pagination or no data, the height of spin should decrease by half of pagination
      let paginationPatchClass = (this.hasPagination() && data && data.length !== 0)
              ? 'ant-table-with-pagination'
              : 'ant-table-without-pagination';
A
afc163 已提交
539
      let spinClassName = `${paginationPatchClass} ant-table-spin-holder`;
540
      table = <Spin className={spinClassName}>{table}</Spin>;
A
afc163 已提交
541
    }
542 543 544 545 546 547
    return (
      <div className={'clearfix' + emptyClass}>
        {table}
        {this.renderPagination()}
      </div>
    );
A
afc163 已提交
548 549
  }
});
550

dqaria's avatar
dqaria 已提交
551
export default AntTable;