zhytech-ui 1.1.19 → 1.1.21

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.
package/README.md CHANGED
@@ -71,6 +71,18 @@ setTheme("dark");
71
71
 
72
72
  > #### 版本更新清单:
73
73
 
74
+ **V 1.1.21**
75
+ ```html
76
+ 1.调整zhy-dynamic-filter组件的items参数支持unit(单位)属性
77
+ 2.导出新增zhy-dynamic-filter组件参数类型
78
+ ```
79
+
80
+ **V 1.1.20**
81
+ ```html
82
+ 1.修复zhy-dynamic-designer中tabs默认值为0
83
+ 2.修复zhy-dynamic-designer中多个图片上传或文件上传时,上传时显示异常
84
+ ```
85
+
74
86
  **V 1.1.19**
75
87
  ```html
76
88
  1.修复zhy-dynamic-designer清空时,不可复制的组件没有回到左侧组件列表内
@@ -200,7 +212,7 @@ setTheme("dark");
200
212
  2.zhy-form-designer组件新增change事件,用于监听组件异动
201
213
  3.zhy-form-renderer组件新增allowCreateDictionary属性,设置是否允许新增字典项目,默认true
202
214
  4.zhy-form-renderer组件新增hiddenTitle属性,设置是否显示表单标题,默认true
203
- 5.zhy-form-renderer组件参数souceTypeMap的size大于1时,字典候选项列表中显示字典来源
215
+ 5.zhy-form-renderer组件参数sourceTypeMap的size大于1时,字典候选项列表中显示字典来源
204
216
  ```
205
217
  > #### 后续计划:
206
218
 
@@ -57,7 +57,7 @@ declare const _default: import('vue').DefineComponent<{
57
57
  /**
58
58
  * 是否为第一阶
59
59
  */
60
- isFirstlevel: {
60
+ isFirstLevel: {
61
61
  type: BooleanConstructor;
62
62
  default: boolean;
63
63
  };
@@ -124,7 +124,7 @@ declare const _default: import('vue').DefineComponent<{
124
124
  /**
125
125
  * 是否为第一阶
126
126
  */
127
- isFirstlevel: {
127
+ isFirstLevel: {
128
128
  type: BooleanConstructor;
129
129
  default: boolean;
130
130
  };
@@ -135,6 +135,6 @@ declare const _default: import('vue').DefineComponent<{
135
135
  }, {
136
136
  showConditionType: boolean;
137
137
  allowMultiLevel: boolean;
138
- isFirstlevel: boolean;
138
+ isFirstLevel: boolean;
139
139
  }, {}>;
140
140
  export default _default;
@@ -1,5 +1,6 @@
1
1
  import { default as dynamicFilter } from './index.vue';
2
2
  import { filterConditionTypes } from '../../types/enum';
3
+ import { filterConditionPropType, filterConditionType, filterItemType, propOptionType } from './types/dynamicFilterTypes';
3
4
  export { dynamicFilter };
4
- export type { conditionType };
5
5
  type conditionType = keyof typeof filterConditionTypes;
6
+ export type { conditionType, filterConditionPropType, filterConditionType, filterItemType, propOptionType };
@@ -1,36 +1,24 @@
1
+ import { filterConditionPropType, filterConditionType, filterItemType } from './types/dynamicFilterTypes';
1
2
  declare const _default: import('vue').DefineComponent<{
2
3
  /**
3
4
  * 项目集合
4
5
  */
5
6
  items: {
6
- type: {
7
- (arrayLength: number): Record<string, any>[];
8
- (...items: Record<string, any>[]): Record<string, any>[];
9
- new (arrayLength: number): Record<string, any>[];
10
- new (...items: Record<string, any>[]): Record<string, any>[];
11
- isArray(arg: any): arg is any[];
12
- readonly prototype: any[];
13
- from<T>(arrayLike: ArrayLike<T>): T[];
14
- from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
15
- from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
16
- from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
17
- of<T_4>(...items: T_4[]): T_4[];
18
- readonly [Symbol.species]: ArrayConstructor;
19
- };
7
+ type: globalThis.PropType<filterItemType[]>;
20
8
  required: true;
21
9
  };
22
10
  /**
23
11
  * 过滤条件类型集合
24
12
  */
25
13
  conditionTypes: {
26
- type: globalThis.PropType<Record<string, ("NOT_EQUALS" | "INCLUDES" | "EXCLUDE" | "EMPTY" | "EQUALS" | "GREATER_THAN" | "LESS_THAN" | "GREATER_THAN_OR_EQUALS" | "LESS_THAN_OR_EQUALS" | "RANGE")[]>>;
14
+ type: globalThis.PropType<filterConditionType>;
27
15
  required: true;
28
16
  };
29
17
  /**
30
18
  * 过滤属性的可选值集合
31
19
  */
32
20
  conditionProps: {
33
- type: globalThis.PropType<Record<string, any>>;
21
+ type: globalThis.PropType<filterConditionPropType>;
34
22
  required: true;
35
23
  };
36
24
  /**
@@ -79,34 +67,21 @@ declare const _default: import('vue').DefineComponent<{
79
67
  * 项目集合
80
68
  */
81
69
  items: {
82
- type: {
83
- (arrayLength: number): Record<string, any>[];
84
- (...items: Record<string, any>[]): Record<string, any>[];
85
- new (arrayLength: number): Record<string, any>[];
86
- new (...items: Record<string, any>[]): Record<string, any>[];
87
- isArray(arg: any): arg is any[];
88
- readonly prototype: any[];
89
- from<T>(arrayLike: ArrayLike<T>): T[];
90
- from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
91
- from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
92
- from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
93
- of<T_4>(...items: T_4[]): T_4[];
94
- readonly [Symbol.species]: ArrayConstructor;
95
- };
70
+ type: globalThis.PropType<filterItemType[]>;
96
71
  required: true;
97
72
  };
98
73
  /**
99
74
  * 过滤条件类型集合
100
75
  */
101
76
  conditionTypes: {
102
- type: globalThis.PropType<Record<string, ("NOT_EQUALS" | "INCLUDES" | "EXCLUDE" | "EMPTY" | "EQUALS" | "GREATER_THAN" | "LESS_THAN" | "GREATER_THAN_OR_EQUALS" | "LESS_THAN_OR_EQUALS" | "RANGE")[]>>;
77
+ type: globalThis.PropType<filterConditionType>;
103
78
  required: true;
104
79
  };
105
80
  /**
106
81
  * 过滤属性的可选值集合
107
82
  */
108
83
  conditionProps: {
109
- type: globalThis.PropType<Record<string, any>>;
84
+ type: globalThis.PropType<filterConditionPropType>;
110
85
  required: true;
111
86
  };
112
87
  /**
@@ -0,0 +1,73 @@
1
+ import { filterConditionTypes, componentType } from '../../../types/enum';
2
+ type conditionType = keyof typeof filterConditionTypes;
3
+ /**
4
+ * @description: 过滤项目的类型
5
+ */
6
+ export interface filterItemType {
7
+ /**
8
+ * @description: 过滤项目ID
9
+ */
10
+ id: string;
11
+ /**
12
+ * @description: 标签
13
+ */
14
+ label: string;
15
+ /**
16
+ * @description: 单位
17
+ */
18
+ unit?: string;
19
+ }
20
+ /**
21
+ * @description: 过滤条件的类型
22
+ */
23
+ export interface filterConditionType {
24
+ /**
25
+ * @description: 过滤条件类型
26
+ */
27
+ [key: string]: conditionType[];
28
+ }
29
+ /**
30
+ * @description: 选项类型
31
+ */
32
+ export interface propOptionType {
33
+ /**
34
+ * @description: 标签
35
+ */
36
+ label: string;
37
+ /**
38
+ * @description: 值
39
+ */
40
+ value?: any;
41
+ /**
42
+ * @description: 子选项
43
+ */
44
+ children?: propOptionType[];
45
+ /**
46
+ * @description: 禁用
47
+ */
48
+ disabled?: boolean;
49
+ }
50
+ /**
51
+ * @description: 过滤条件的属性类型
52
+ */
53
+ export interface filterConditionProp {
54
+ /**
55
+ * @description: 组件类型
56
+ */
57
+ type: componentType;
58
+ /**
59
+ * @description: 是否多选
60
+ */
61
+ multiple?: boolean;
62
+ /**
63
+ * @description: 选项
64
+ */
65
+ options?: propOptionType[];
66
+ }
67
+ export interface filterConditionPropType {
68
+ /**
69
+ * @description: 过滤条件类型
70
+ */
71
+ [key: string]: filterConditionProp;
72
+ }
73
+ export {};
@@ -80,5 +80,5 @@ export interface dictionaryData {
80
80
  /**
81
81
  * 字典项目来源映射map
82
82
  */
83
- souceTypeMap: Map<string, string>;
83
+ sourceTypeMap: Map<string, string>;
84
84
  }