UNPKG

tav-ui

Version:
11 lines (10 loc) 538 B
import type { ActionItem } from '../types/tableAction'; /** * @description 如果内容长度大于3,则修改为 xx.. 基于字体是12px的基础之下长度为32px。 * @param actions * @param labelMaxLength * @returns */ export declare function limitActionLabel(actions: ActionItem[], labelMaxLength?: number): ActionItem[]; export declare function isOverMaxWidth(actions: ActionItem[] | null): boolean; export declare function useColumnActionAutoWidth(actions: ActionItem[] | null, handleLimit?: boolean): number | undefined;