| | |
| | | </BasicTable> |
| | | </div> |
| | | </template> |
| | | <script lang="ts"> |
| | | import { defineComponent } from 'vue'; |
| | | import { BasicTable, useTable } from '/@/components/Table'; |
| | | <script lang="ts" setup> |
| | | import { BasicTable, useTable } from '@/components/Table'; |
| | | import { getCustomHeaderColumns } from './tableData'; |
| | | import { FormOutlined } from '@ant-design/icons-vue'; |
| | | import { demoListApi } from '/@/api/demo/table'; |
| | | import { BasicHelp } from '/@/components/Basic'; |
| | | import HeaderCell from '/@/components/Table/src/components/HeaderCell.vue'; |
| | | import { demoListApi } from '@/api/demo/table'; |
| | | import { BasicHelp } from '@/components/Basic'; |
| | | import HeaderCell from '@/components/Table/src/components/HeaderCell.vue'; |
| | | |
| | | export default defineComponent({ |
| | | components: { BasicTable, FormOutlined, BasicHelp, HeaderCell }, |
| | | setup() { |
| | | const [registerTable] = useTable({ |
| | | title: '定高/头部自定义', |
| | | api: demoListApi, |
| | | columns: getCustomHeaderColumns(), |
| | | canResize: false, |
| | | scroll: { y: 100 }, |
| | | }); |
| | | |
| | | return { |
| | | registerTable, |
| | | }; |
| | | }, |
| | | const [registerTable] = useTable({ |
| | | title: '定高/头部自定义', |
| | | api: demoListApi, |
| | | columns: getCustomHeaderColumns(), |
| | | canResize: false, |
| | | scroll: { y: 100 }, |
| | | }); |
| | | </script> |