|
|
@ -179,6 +179,7 @@ |
|
|
|
import {basicProps} from "/@/components/Table/src/props"; |
|
|
|
import {basicProps} from "/@/components/Table/src/props"; |
|
|
|
import {usePagination} from "/@/components/Table/src/hooks/usePagination"; |
|
|
|
import {usePagination} from "/@/components/Table/src/hooks/usePagination"; |
|
|
|
import {useTableStyle} from "/@/components/Table/src/hooks/useTableStyle"; |
|
|
|
import {useTableStyle} from "/@/components/Table/src/hooks/useTableStyle"; |
|
|
|
|
|
|
|
import {useTableScroll} from "/@/components/Table/src/hooks/useTableScroll"; |
|
|
|
|
|
|
|
|
|
|
|
/** 类型规范统一声明定义区域 */ |
|
|
|
/** 类型规范统一声明定义区域 */ |
|
|
|
interface TableState { |
|
|
|
interface TableState { |
|
|
@ -285,6 +286,14 @@ |
|
|
|
} = usePagination(basicTableProps); |
|
|
|
} = usePagination(basicTableProps); |
|
|
|
// 使用vben-table行斑马线 |
|
|
|
// 使用vben-table行斑马线 |
|
|
|
const { getRowClassName } = useTableStyle(basicTableProps, prefixCls); |
|
|
|
const { getRowClassName } = useTableStyle(basicTableProps, prefixCls); |
|
|
|
|
|
|
|
// 使用vben-table自动计算表格高度 |
|
|
|
|
|
|
|
/*const { getScrollRef, redoHeight } = useTableScroll( |
|
|
|
|
|
|
|
basicTableProps, |
|
|
|
|
|
|
|
tableElRef, |
|
|
|
|
|
|
|
getColumnsRef, |
|
|
|
|
|
|
|
getRowSelectionRef, |
|
|
|
|
|
|
|
getDataSourceRef |
|
|
|
|
|
|
|
);*/ |
|
|
|
|
|
|
|
|
|
|
|
/** 生命周期钩子回调处理区域 */ |
|
|
|
/** 生命周期钩子回调处理区域 */ |
|
|
|
onMounted(() => { |
|
|
|
onMounted(() => { |
|
|
|