forked from fanruan/fineui
imp
5 years ago
10 changed files with 81 additions and 3 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,29 @@
|
||||
/** |
||||
* 创建唯一的名字 |
||||
* @param array 已有的名字集合 |
||||
* @param name 待生成的名字 |
||||
* @return 生成后的名字 |
||||
*/ |
||||
export declare type _createDistinctName = (array: any[], name: string) => string; |
||||
|
||||
/** |
||||
* 获取搜索结果 |
||||
* @param items 待搜索的数据 |
||||
* @param keyword 关键字 |
||||
* @param param 搜索哪个属性 |
||||
*/ |
||||
export declare type _getSearchResult = (items: any, keyword: any, param: string) => {find: any, match: any} |
||||
|
||||
/** |
||||
* 在方法A执行之前执行方法B |
||||
* @param sFunc 方法A |
||||
* @param func 方法B |
||||
*/ |
||||
export declare type _beforeFunc = (sFunc: Function, func: Function) => Function; |
||||
|
||||
/** |
||||
* 在方法A执行之后执行方法B |
||||
* @param sFunc 方法A |
||||
* @param func 方法B |
||||
*/ |
||||
export declare type _afterFunc = (sFunc: Function, func: Function) => Function; |
@ -0,0 +1,32 @@
|
||||
|
||||
/** |
||||
* 加法函数,用来得到精确的加法结果 |
||||
* @param {Number} num 被加数 |
||||
* @param {Number} arg 加数 |
||||
* @return {Number} 两个数字相加后的结果 |
||||
*/ |
||||
export declare type _add = (num: number, arg: number) => number; |
||||
|
||||
/** |
||||
* 减法函数,用来得到精确的减法结果 |
||||
* @param {Number} num 被减数 |
||||
* @param {Number} arg 减数 |
||||
* @return {Number} 两个数字相减后的结果 |
||||
*/ |
||||
export declare type _sub = (num: number, arg: number) => number; |
||||
|
||||
/** |
||||
* 乘法函数,用来得到精确的乘法结果 |
||||
* @param {Number} num 被乘数 |
||||
* @param {Number} arg 乘数 |
||||
* @return {Number} 两个数字相乘后的结果 |
||||
*/ |
||||
export declare type _mul = (num: number, arg: number) => number; |
||||
|
||||
/** |
||||
* 除法函数,用来得到精确的除法结果 |
||||
* @param {Number} num 被除数 |
||||
* @param {Number} arg 除数 |
||||
* @return {Number} 两个数字相除后的结果 |
||||
*/ |
||||
export declare type _div = (num: number, arg: number) => number; |
Loading…
Reference in new issue