UNPKG

d-render

Version:

数据渲染库 - form、table、search-form

30 lines (29 loc) 1.42 kB
import { Ref } from 'vue'; import { IAnyObject, IRenderConfigDependOn } from '@d-render/shared'; interface IEffectFunc { value: (...args: Array<unknown>) => unknown | Promise<unknown>; } interface IEffect { [key: string]: string | IEffectFunc; } export type IObjectKey = IRenderConfigDependOn; export type IKey = IObjectKey | string; export declare const getValuesByKeys: (data?: IAnyObject, keys?: Array<IKey>) => {}; export declare const setValuesByKeys: (target?: IAnyObject, keys?: Array<IKey>, values?: IAnyObject) => void; export declare const cloneDeepConfig: (config: TFormConfig) => any; export declare const isHideLabel: (config: TFormConfig) => any; export declare const getLabelWidth: (config: TFormConfig) => string | undefined; export declare const getChangeIndex: (values: Array<unknown>, oldValues: Array<unknown>) => number[]; export declare const secureNewFn: (...params: Array<string>) => Function; export declare const judgeUseFn: (key: string, config: IRenderConfig, effect: IEffect) => any; export declare class UpdateModelQueue { getModel: () => IAnyObject | Ref<IAnyObject>; updateModel: (value: IAnyObject) => void; data: Map<string, unknown>; isCollect?: boolean; constructor(getModel: () => IAnyObject | Ref<IAnyObject>, updateModel: (value: IAnyObject) => void); init(): void; append(key: string, value: unknown): void; update(): void; } export {};