UNPKG

@arco-vue-pro-components/pro-components

Version:
16 lines (15 loc) 877 B
import type { VNodeChild } from 'vue'; import type { ColumnEmptyText, ProColumnsValueType, ProColumnsValueObjectType } from '../interface'; /** * value type by function */ export declare type ProColumnsValueTypeFunction<T> = (item: T) => ProColumnsValueType | ProColumnsValueObjectType; export declare function showUnitColumn(value: any, unit: string): string; /** * 根据不同的类型来转化数值 * @param text * @param valueType */ declare const defaultRenderText: <T, U>(text: string | number | VNodeChild[], valueType: ProColumnsValueType | ProColumnsValueTypeFunction<T>, rowIndex: number, item?: T | undefined, columnEmptyText?: ColumnEmptyText | undefined, itemColumn?: any, columnKey?: string | undefined) => VNodeChild; export declare function getProgressStatus(text: number): 'success' | 'danger' | 'normal' | 'warning'; export default defaultRenderText;