/** * 表格主题配置 */ export interface TableThemeConfig { /** * 是否带有边框 default(默认), full(完整边框), outer(外边框), inner(内边框), none(无边框) */ border: boolean | string; /** * 是否带有斑马纹 */ stripe: boolean; /** * 当鼠标点击行时,是否要高亮当前行 */ isCurrent: boolean; /** * 当鼠标移到行时,是否要高亮当前行 */ isHover: boolean; /** * 表格列主题配置 */ column: Partial; } /** * 表格列主题配置 */ export interface TableColumnThemeConfig { /** *

最小宽度

* */ minWidth: boolean | number | string | Partial | TableColumnMinWidthComputeFunction; /** * 操作列 */ operation: { /** * 宽度 (default: 165) */ width?: number | string; /** * 最小宽度 (default: 120) */ minWidth?: number | string; }; } export interface TableColumnMinWidthComputeConfig { min: number; max: number; chineseWidth: number; otherWidth: number; sortableFixWidth: number; nonSortableFixWidth: number; } export type TableColumnMinWidthComputeConfigContext = TableColumnMinWidthComputeConfig & { sortable: boolean; }; export type TableColumnMinWidthComputeFunction = ( label: string, config: TableColumnMinWidthComputeConfigContext ) => number;