@aplus-frontend/ui
Version:
34 lines (33 loc) • 1.6 kB
TypeScript
import { DataIndex } from '@aplus-frontend/antdv/es/vc-table/interface';
import { ApGridColumnType, ColConfigType } from '../interface';
import { ValueTypeRenderConfig } from '../../config-provider';
export declare function getValueByDataIndex(row: any, dataIndex?: DataIndex): any;
export declare function dataIndexToField(dataIndex: DataIndex): string | undefined;
export declare function transformFixed(fixed: ApGridColumnType['fixed']): "left" | "right" | undefined;
/**
* 转换分组页
* @param columnConfig
* @returns
*/
export declare function transformToColGroup<RecordType>(columnConfig: ApGridColumnType<RecordType>, color: string, className: string): ColConfigType;
/**
* 自定义渲染表格内容(返回节点)
* @param param0
* @param columnConfig
* @param extraValueType
* @param internalEllipsis
* @returns
*/
export declare const contentCustom: ({ value, ...restProps }: any, columnConfig: any, extraValueType: any, internalEllipsis?: boolean) => import("vue/jsx-runtime").JSX.Element;
/**
* 转换渲染列
* @param columnConfig
* @returns
*/
export declare function transformToColumn<RecordType>(columnConfig: ApGridColumnType<RecordType>, color: string, className: string, extraValueType?: Record<string, ValueTypeRenderConfig>): ColConfigType;
/**
* 将ApColumn风格的列配置转换成适合VxeTable渲染的数据结构
* @param rawColumn
* @returns
*/
export declare function transformCol<RecordType>(rawColumn: ApGridColumnType<RecordType>, color: string, className: string, extraValueType?: Record<string, ValueTypeRenderConfig>): ColConfigType;