fantasy-ngzorro 1.3.32 → 1.3.34

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -20,7 +20,8 @@ export declare enum FilterListType {
20
20
  Date = 2,
21
21
  DateRange = 3,
22
22
  MultipleSelect = 4,
23
- Cascader = 5
23
+ Cascader = 5,
24
+ Month = 6
24
25
  }
25
26
  export declare class HdFilterService {
26
27
  constructor();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fantasy-ngzorro",
3
- "version": "1.3.32",
3
+ "version": "1.3.34",
4
4
  "description": "🚀新版本发布,全新表单组件hd-table,支持列宽、自定义列、列顺序、pageSize等缓存!",
5
5
  "peerDependencies": {
6
6
  "moment": "^2.24.0",
package/utils.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { FormItem } from "./hd-form/hd-form.service";
1
+ import { FormItem } from './hd-form/hd-form.service';
2
2
  export declare const Utils: {
3
3
  /**
4
4
  * 填充select控件选项
@@ -6,23 +6,47 @@ export declare const Utils: {
6
6
  * @param name 需要填充options的属性名称
7
7
  * @param options 选项列表
8
8
  */
9
- fillSelectOption: (formList: any[], name: string, options: any[]) => any[];
9
+ fillSelectOption(formList: any[], name: string, options: any[]): any[];
10
10
  /**
11
11
  * 填充FormItem数组:针对入参list的每一个FormItem,判断obj中是否有对应的name字段,如果有,则填充value。
12
12
  * @param list 入参数组 Array<FormItem>
13
13
  * @param obj 需要填充到list的属性
14
14
  */
15
- fillArrayFormItem: (list: FormItem[], obj: Object) => any[];
15
+ fillArrayFormItem(list: FormItem[], obj: Object): any[];
16
16
  /**
17
17
  * 数组转换成选择器的选项数组
18
18
  * @param list 入参数组 字符串数组或对象数组
19
19
  * @param option 转换选项
20
20
  * 注:list为字符串数组,option不需要传,按照标准的label、value转换
21
21
  */
22
- arrayToSelectOptionList: (list: any[], option?: {
22
+ arrayToSelectOptionList(list: any[], option?: {
23
23
  value: string;
24
24
  label: string;
25
25
  valueTip?: string;
26
26
  labelTip?: string;
27
- }) => any[];
27
+ }): any[];
28
+ /**
29
+ * 求和
30
+ * @param nums 数组
31
+ * @param precision 精度
32
+ */
33
+ add(nums: number[], precision?: number): any;
34
+ /**
35
+ * 减法
36
+ * @param nums 数组
37
+ * @param precision 精度
38
+ */
39
+ subtract(nums: number[], precision?: number): any;
40
+ /**
41
+ * 乘法
42
+ * @param nums 数组
43
+ * @param precision 精度
44
+ */
45
+ multiply(nums: number[], precision?: number): any;
46
+ /**
47
+ * 除法
48
+ * @param nums 数组
49
+ * @param precision 精度
50
+ */
51
+ divide(nums: number[], precision?: number): any;
28
52
  };