tntd
Version:
tntd是基于 TNT Design 设计体系的 React UI 组件库,主要用于研发企业级中后台产品。
12 lines • 703 B
TypeScript
import type { ColumnProps as AntdColumnProps } from 'antd/lib/table';
import type { Dispatch, SetStateAction } from 'react';
export interface ColumnSetting {
key: string;
order: number;
enable: boolean;
}
export declare type ColumnProps<T> = AntdColumnProps<T> & {
placement?: 'top' | 'left' | 'right' | 'bottom' | 'topLeft' | 'topRight' | 'bottomLeft' | 'bottomRight' | 'leftTop' | 'leftBottom' | 'rightTop' | 'rightBottom';
};
export declare const useColumnSetting: <T>(columns: ColumnProps<T>[], storageKey?: string | undefined) => [ColumnProps<T>[], ColumnSetting[] | undefined, Dispatch<SetStateAction<ColumnSetting[] | undefined>>];
//# sourceMappingURL=use-column-setting.d.ts.map