table.js 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
  2. const require_runtime = require("../../../utils/vue/props/runtime.js");
  3. const require_props = require("../../virtual-list/src/props.js");
  4. const require_common = require("./common.js");
  5. const require_row = require("./row.js");
  6. const require_header = require("./header.js");
  7. const require_grid = require("./grid.js");
  8. //#region ../../packages/components/table-v2/src/table.ts
  9. const tableV2Props = require_runtime.buildProps({
  10. cache: require_grid.tableV2GridProps.cache,
  11. estimatedRowHeight: require_row.tableV2RowProps.estimatedRowHeight,
  12. rowKey: require_common.rowKey,
  13. headerClass: { type: require_runtime.definePropType([String, Function]) },
  14. headerProps: { type: require_runtime.definePropType([Object, Function]) },
  15. headerCellProps: { type: require_runtime.definePropType([Object, Function]) },
  16. headerHeight: require_header.tableV2HeaderProps.headerHeight,
  17. /**
  18. * Footer attributes
  19. */
  20. footerHeight: {
  21. type: Number,
  22. default: 0
  23. },
  24. /**
  25. * Row attributes
  26. */
  27. rowClass: { type: require_runtime.definePropType([String, Function]) },
  28. rowProps: { type: require_runtime.definePropType([Object, Function]) },
  29. rowHeight: {
  30. type: Number,
  31. default: 50
  32. },
  33. /**
  34. * Cell attributes
  35. */
  36. cellProps: { type: require_runtime.definePropType([Object, Function]) },
  37. /**
  38. * Data models
  39. */
  40. columns: require_common.columns,
  41. data: require_common.dataType,
  42. dataGetter: { type: require_runtime.definePropType(Function) },
  43. fixedData: require_common.fixedDataType,
  44. /**
  45. * Expanded keys
  46. */
  47. expandColumnKey: require_row.tableV2RowProps.expandColumnKey,
  48. expandedRowKeys: require_common.expandKeys,
  49. defaultExpandedRowKeys: require_common.expandKeys,
  50. /**
  51. * Attributes
  52. */
  53. class: require_common.classType,
  54. fixed: Boolean,
  55. style: { type: require_runtime.definePropType(Object) },
  56. width: require_common.requiredNumber,
  57. height: require_common.requiredNumber,
  58. maxHeight: Number,
  59. useIsScrolling: Boolean,
  60. indentSize: {
  61. type: Number,
  62. default: 12
  63. },
  64. iconSize: {
  65. type: Number,
  66. default: 12
  67. },
  68. hScrollbarSize: require_props.virtualizedGridProps.hScrollbarSize,
  69. vScrollbarSize: require_props.virtualizedGridProps.vScrollbarSize,
  70. scrollbarAlwaysOn: require_props.virtualizedScrollbarProps.alwaysOn,
  71. /**
  72. * Sorting
  73. */
  74. sortBy: {
  75. type: require_runtime.definePropType(Object),
  76. default: () => ({})
  77. },
  78. sortState: {
  79. type: require_runtime.definePropType(Object),
  80. default: void 0
  81. },
  82. /**
  83. * Handlers
  84. */
  85. onColumnSort: { type: require_runtime.definePropType(Function) },
  86. onExpandedRowsChange: { type: require_runtime.definePropType(Function) },
  87. onEndReached: { type: require_runtime.definePropType(Function) },
  88. onRowExpand: require_row.tableV2RowProps.onRowExpand,
  89. onScroll: require_grid.tableV2GridProps.onScroll,
  90. onRowsRendered: require_grid.tableV2GridProps.onRowsRendered,
  91. rowEventHandlers: require_row.tableV2RowProps.rowEventHandlers
  92. });
  93. //#endregion
  94. exports.tableV2Props = tableV2Props;
  95. //# sourceMappingURL=table.js.map