grid.mjs 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. import { columns, dataType, fixedDataType, requiredNumber, classType, styleType } from './common.mjs';
  2. import { tableV2HeaderProps } from './header.mjs';
  3. import { tableV2RowProps } from './row.mjs';
  4. import { virtualizedListProps, virtualizedGridProps } from '../../virtual-list/src/props.mjs';
  5. import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
  6. const tableV2GridProps = buildProps({
  7. columns,
  8. data: dataType,
  9. fixedData: fixedDataType,
  10. estimatedRowHeight: tableV2RowProps.estimatedRowHeight,
  11. width: requiredNumber,
  12. height: requiredNumber,
  13. headerWidth: requiredNumber,
  14. headerHeight: tableV2HeaderProps.headerHeight,
  15. bodyWidth: requiredNumber,
  16. rowHeight: requiredNumber,
  17. cache: virtualizedListProps.cache,
  18. useIsScrolling: Boolean,
  19. scrollbarAlwaysOn: virtualizedGridProps.scrollbarAlwaysOn,
  20. scrollbarStartGap: virtualizedGridProps.scrollbarStartGap,
  21. scrollbarEndGap: virtualizedGridProps.scrollbarEndGap,
  22. class: classType,
  23. style: styleType,
  24. containerStyle: styleType,
  25. getRowHeight: {
  26. type: definePropType(Function),
  27. required: true
  28. },
  29. rowKey: tableV2RowProps.rowKey,
  30. onRowsRendered: {
  31. type: definePropType(Function)
  32. },
  33. onScroll: {
  34. type: definePropType(Function)
  35. }
  36. });
  37. export { tableV2GridProps };
  38. //# sourceMappingURL=grid.mjs.map