index.js 1.6 KB

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