tav-ui
Version:
14 lines (13 loc) • 668 B
TypeScript
import type { TableProInstance, TableProProps } from '../types';
import type { ComputedRef, Ref } from 'vue';
import type { Emitter } from 'tav-ui/es/utils/mitt';
/**
* 手动计算表格内容区域高度
* 表格高度,height设置百分比会跳动,设置auto后需要手动把剩余空间的高度计算后赋值
* @returns
*/
export declare function useHeight(wrapperRef: any, operationRef: any): {
getHeight: ComputedRef<string>;
setHeight: () => void;
};
export declare function useFixHeight(tableRef: Ref<TableProInstance | null>, wrapperRef: any, setHeight: () => void, tableEmitter: Emitter, tablePropsRef: ComputedRef<TableProProps>): void;