zhytech-ui 1.1.20 → 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 +7 -1
- package/dist/src/components/dynamicFilter/filterItem.vue.d.ts +3 -3
- package/dist/src/components/dynamicFilter/index.d.ts +2 -1
- package/dist/src/components/dynamicFilter/index.vue.d.ts +7 -32
- package/dist/src/components/dynamicFilter/types/dynamicFilterTypes.d.ts +73 -0
- package/dist/src/components/dynamicForm/types/formAttribute.d.ts +1 -1
- package/dist/style.css +1 -1
- package/dist/zhytech-ui.es.js +3146 -3133
- package/dist/zhytech-ui.umd.js +8 -8
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -71,6 +71,12 @@ 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
|
+
|
|
74
80
|
**V 1.1.20**
|
|
75
81
|
```html
|
|
76
82
|
1.修复zhy-dynamic-designer中tabs默认值为0
|
|
@@ -206,7 +212,7 @@ setTheme("dark");
|
|
|
206
212
|
2.zhy-form-designer组件新增change事件,用于监听组件异动
|
|
207
213
|
3.zhy-form-renderer组件新增allowCreateDictionary属性,设置是否允许新增字典项目,默认true
|
|
208
214
|
4.zhy-form-renderer组件新增hiddenTitle属性,设置是否显示表单标题,默认true
|
|
209
|
-
5.zhy-form-renderer组件参数
|
|
215
|
+
5.zhy-form-renderer组件参数sourceTypeMap的size大于1时,字典候选项列表中显示字典来源
|
|
210
216
|
```
|
|
211
217
|
> #### 后续计划:
|
|
212
218
|
|
|
@@ -57,7 +57,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
57
57
|
/**
|
|
58
58
|
* 是否为第一阶
|
|
59
59
|
*/
|
|
60
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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<
|
|
14
|
+
type: globalThis.PropType<filterConditionType>;
|
|
27
15
|
required: true;
|
|
28
16
|
};
|
|
29
17
|
/**
|
|
30
18
|
* 过滤属性的可选值集合
|
|
31
19
|
*/
|
|
32
20
|
conditionProps: {
|
|
33
|
-
type: globalThis.PropType<
|
|
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<
|
|
77
|
+
type: globalThis.PropType<filterConditionType>;
|
|
103
78
|
required: true;
|
|
104
79
|
};
|
|
105
80
|
/**
|
|
106
81
|
* 过滤属性的可选值集合
|
|
107
82
|
*/
|
|
108
83
|
conditionProps: {
|
|
109
|
-
type: globalThis.PropType<
|
|
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 {};
|