UNPKG

hongluan-ui

Version:
1 lines 915 B
{"version":3,"file":"main-table.mjs","sources":["../../../../../../../packages/components/table-v2/src/renderers/main-table.tsx"],"sourcesContent":["import Table from '../table-grid'\n\nimport type { FunctionalComponent, Ref } from 'vue'\nimport type { TableV2GridProps } from '../grid'\nimport type { TableGridInstance } from '../table-grid'\n\nexport type MainTableRendererProps = TableV2GridProps & {\n mainTableRef: Ref<TableGridInstance | undefined>\n}\n\nconst MainTable: FunctionalComponent<MainTableRendererProps> = (\n props: MainTableRendererProps,\n { slots },\n) => {\n const { mainTableRef, ...rest } = props\n return (\n <Table ref={mainTableRef} {...rest}>\n {slots}\n </Table>\n )\n}\n\nexport default MainTable\n"],"names":["MainTable","slots","mainTableRef","rest"],"mappings":";;;;;;;;AAUA,MAAMA;AAEFC,EAAAA;AAAF;AAEA;AAAQC;AAAc;AAAhB,WAAN;AACA;AAAA,WACcA;AADd,KACgCC;AADhC;;;;"}