jamis
Version:
一种支持通过JSON配置方式生成页面的组件库
13 lines (12 loc) • 512 B
TypeScript
import type { CSSProperties } from 'react';
import type { IColumn } from '../types';
/**
* 计算表格的头部和身体列的样式, 以及fixed列的样式
*/
export declare const useCellStyle: ({ column, columnIndex, columns, customStyle, resolveVariable }: {
column: IColumn | (() => JSX.Element | null);
columnIndex: number;
columns?: IColumn[];
customStyle?: CSSProperties;
resolveVariable?: <T>(expr: string) => T;
}) => [CSSProperties | undefined, string, number | string | null];