index.js 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  1. import _extends from "@babel/runtime/helpers/esm/extends";
  2. import Table, { tableProps } from './Table';
  3. import Column from './Column';
  4. import ColumnGroup from './ColumnGroup';
  5. import { EXPAND_COLUMN, Summary, SummaryCell, SummaryRow } from '../vc-table';
  6. import { SELECTION_ALL, SELECTION_INVERT, SELECTION_NONE, SELECTION_COLUMN } from './hooks/useSelection';
  7. const TableSummaryRow = SummaryRow;
  8. const TableSummaryCell = SummaryCell;
  9. const TableSummary = _extends(Summary, {
  10. Cell: TableSummaryCell,
  11. Row: TableSummaryRow,
  12. name: 'ATableSummary'
  13. });
  14. /* istanbul ignore next */
  15. export { tableProps, TableSummary, TableSummaryRow, TableSummaryCell, Column as TableColumn, ColumnGroup as TableColumnGroup };
  16. export default _extends(Table, {
  17. SELECTION_ALL,
  18. SELECTION_INVERT,
  19. SELECTION_NONE,
  20. SELECTION_COLUMN,
  21. EXPAND_COLUMN,
  22. Column,
  23. ColumnGroup,
  24. Summary: TableSummary,
  25. install: app => {
  26. app.component(TableSummary.name, TableSummary);
  27. app.component(TableSummaryCell.name, TableSummaryCell);
  28. app.component(TableSummaryRow.name, TableSummaryRow);
  29. app.component(Table.name, Table);
  30. app.component(Column.name, Column);
  31. app.component(ColumnGroup.name, ColumnGroup);
  32. return app;
  33. }
  34. });