UNPKG

table-render-test

Version:

中后台表格解决方案

36 lines (35 loc) 1.1 kB
import { ToolbarActionConfig } from "@/types"; export type Setting = ToolbarActionConfig['columnsSettingValue']; /** * 固定某一列 */ export declare const fixItem: (setting: Setting, fixKey: string) => Setting; /** * 取消固定不应该的固定的那些列 * * @param setting 排序或固定之后的 setting 数组 * @returns newSetting 新 setting 数组 */ export declare const cancelFixed: (setting: Setting) => Setting; /** * 获取当前项的位置状态 */ export declare const getStatus: (setting: import("@/types").ColumnsSettingValueType, key: string) => { index: number; /** 当前项是固定的 */ isFixed: boolean; /** 是第一个 */ isFirstOne: boolean; /** 是最后一个 */ isLastOne: boolean; /** 前一个是固定的 */ preFixed: boolean; /** 后一个是固定的 */ nextFixed: boolean; /** 前面存在未固定的 */ haveForwardUnFixed: boolean; /** 后面存在未固定的 */ haveBackwardUnFixed: boolean; /** 在前半部分 */ onFirstPart: boolean; };