vuux
Version:
Vue3 Nuxt3 Nuxt4 组件库
31 lines (30 loc) • 871 B
TypeScript
import { Ref } from 'vue';
import { Emit, Props } from '../types';
/**
* hook
*
* @param props 组件属性
* @param tableBoxRef 实例
* @param tableEl 实例
* @param emit 组件事件
*/
export declare const useTable: (props: Props, tableBoxRef: Ref<HTMLDivElement | null>, tableEl: Ref<HTMLTableElement | null>, emit: Emit) => {
state: {
columns: {
prop: string;
title?: string | undefined;
width?: number | undefined;
class?: string | undefined;
fixed?: string | undefined;
}[];
tableData: any[];
isFormat: boolean;
selectData: any[];
isFixedHead: boolean;
model: boolean;
columnCount: number;
};
tableData: Ref<any[], any[]>;
isFixedHead: Ref<boolean, boolean>;
classNames: import('vue').ComputedRef<string[]>;
};