eslink-ui-plus
Version:
vue3 component library, css framework
49 lines (48 loc) • 1.52 kB
TypeScript
import { keyConfigType } from "./commonProps";
export declare const typeOf: (obj: any) => string;
export declare const isObject: (obj: any) => boolean;
export declare const isArray: (arr: any) => boolean;
export declare const isSet: (set: any) => boolean;
export declare const isString: (str: any) => boolean;
export declare const equalSet: (as: any, bs: any) => boolean;
export declare const merge: (source?: any, target?: any) => any;
export declare const toRestFullResult: (params: {
[key: string]: string;
}, url: string) => {
otherParams: {
[key: string]: string;
};
url: string;
};
export declare const toRestFullFormDataResult: (params: {
[key: string]: string;
}, url: string) => {
otherParams: FormData;
url: string;
};
export declare const initSource: (source?: unknown[], keyConfig?: {
labelKey: string;
valueKey: string;
disabledKey: string;
childrenKey: string;
}, parent?: {
path: string[];
leaf: boolean;
parent: any;
labelPath: string[];
key: string;
} | null, pathMap?: {
[key: string]: string;
}, valueMap?: {
[key: string]: any;
}) => {
source: unknown[];
pathMap: {
[key: string]: string;
};
valueMap: {
[key: string]: any;
};
};
export declare const getKeyConfig: (source: keyConfigType) => keyConfigType & Required<Pick<keyConfigType, "valueKey" | "labelKey">>;
export declare const getCssUnit: (value: string | number) => string;