fastlion-amis
Version:
一种MIS页面生成工具
53 lines (52 loc) • 2.35 kB
TypeScript
/**
*
* @param str 字符串
* @param caseSensitive 是否小大写敏感
* @returns 返回哈希值
*/
/// <reference types="shell" />
import { Condition } from "../components/table/SecondFilter/types";
export declare function getHashCode(str?: string, caseSensitive?: boolean): number;
/**
*
* @param array 数据
* @param key 主键
* @returns boolean,是否重复
*/
export declare const checkDuplicateKeys: (array: obj[], key: string) => boolean;
export declare const linkJump: (linkId: string, data: any, dataDisabeExpress?: string | undefined) => boolean;
export declare function ModleHandleClick(props: any, tbth?: any): void;
export declare function handlelimitSize(max?: number, min?: number, body?: any, showModal?: (val: string) => void): boolean;
export declare function dealBigMoney(n: number): string;
export declare function dealBigNumber(n: number): string;
/**
*
* @param value 数值
* @param showUppercase 转换类型
* @returns 转换后的值
*/
export declare function translateNumber(value: any, showUppercase: 0 | 1 | 2): any;
export declare function calcFn(formula: 'sum' | 'avg' | 'max' | 'min' | 'count' | string, fieldName: string, items: any[]): number;
export declare function deepCalcFn(formula: string, items: any[]): any;
export declare function sortFn(a: any, b: any, sortBy?: 'asc' | 'desc'): number;
export declare function filterFn(items: any[], columnName: string, condition: Condition, _value1?: string | number, _value2?: string | number, caseSensitive?: boolean): any[];
/**
* 查看类型转为表单控件的查看类型
* @param type 类型
* @returns type: string
*/
export declare function exchangeType(type: string): string;
export declare function findField(obj: any, targetField: string): any;
/**
* @param tableData 原始数据
* @param columnProperties 排序字段
* @returns 排序后数据 obj<any>[]
*/
export declare function multiColumnSort(tableData: obj<any>[], columnProperties: string[]): obj<any>[];
export declare const cartesianProduct: (...arrays: any[]) => any[];
export declare const openImageEnlarge: (data: Array<any>, baseURL: string, onImageEnlarge: any, env: any) => void;
export declare const getNameInString: (valueStr: string) => {
orginStr: string;
parseStr: string;
parseObj: any;
};