@aplus-frontend/ui
Version:
27 lines (26 loc) • 1.1 kB
TypeScript
import { DescriptionsItemSchema, FormatOptions, TransformOptionType } from './interface';
import { VNode, VNodeChild, StyleValue } from 'vue';
import { AttachmentExtraProps } from './formatter';
export declare function transformValue(data: FormatOptions, opt: TransformOptionType): VNodeChild | VNode;
/**
* 根据type判断是否为空
* @param schema 描述
*/
export declare function isEmptyWithType(value: unknown, schema: DescriptionsItemSchema): boolean;
/**
* 混入附件类型额外属性
* @param target 原配置
* @param options.fromGlobal 来自全局配置的下载文件方法
* @param options.fromConfig 来自全局配置里的ApDescriptions的下载文件方法
* @returns 混入后的配置
*/
export declare function mixinsAttachmentExtraProps(target: AttachmentExtraProps | undefined, options: {
fromGlobal?: (...args: any[]) => any;
fromConfig?: (...args: any[]) => any;
}): AttachmentExtraProps | {
downloadFile: (...args: any[]) => any;
urlPath?: string | string[];
namePath?: string | string[];
style?: StyleValue;
className?: string;
};