ng-layout-form
Version:
layout form
46 lines (45 loc) • 1.67 kB
TypeScript
import { LayConfWrap } from 'ng-lib-tsx';
import { Comp_Props } from '../config/interface';
export { LayConfWrap };
export declare type OptType = 'modifiedRow' | 'newRow' | 'deletedRow';
/**
* 根据配置数据获取对应配置的组件
* @param {object} item 组件配置项
* @returns {object} 组件
*/
export declare function getComp(item: any): {
instance: any;
props: any;
} | {
instance: any;
};
/**
* 获取组件对应的配置
* @returns {object} 组件的配置props
* @param item
* @param config
* @param commonPropsType
*/
export declare function getCompPorps(item: any, config: Comp_Props, commonPropsType?: string): any;
/**
* 格式化数据
* @param name
* @param type
* @param opt
* @param key
* @param initVals
*/
export declare function fomatValues(name: string, type: 'form' | 'table', opt: OptType, key: string, initVals?: any): (values?: any) => (() => {}) | any;
export declare function formFomatValues(key: string, initVals?: Array<any>): ((values?: any) => (() => {}) | any) | {
form: {
[x: string]: any;
key: string;
};
};
export declare function listToObj(c: Array<any>): any;
export declare function getProperty(o: any, keys: string | number | Array<string | number>): any;
export declare function parseFunction(str: any): any;
export declare function getObjValue(obj: any, pathKeys: any): any;
export declare function setObjValue(obj: any, pathKeys: any, value: any): void;
export declare function getSubscribeFn(outRef: any): (fn: Function, type: any, name?: string | string[]) => any;
export declare function isHelpField(type: any): any;