zhytech-ui 1.0.13 → 1.0.14

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.
@@ -0,0 +1,4 @@
1
+ import { default as dynamicFilter } from './index.vue';
2
+ export { dynamicFilter };
3
+ export type { conditionType };
4
+ type conditionType = keyof typeof filterConditionTypes;
@@ -4,5 +4,5 @@ export declare function useGrade(): {
4
4
  * @param componentProps
5
5
  * @return
6
6
  */
7
- getGradeitems(componentProps: Record<string, any>): Record<string, string>[];
7
+ getGradeItems(componentProps: Record<string, any>): Record<string, string>[];
8
8
  };
@@ -0,0 +1,67 @@
1
+ type conditionType = keyof typeof filterConditionTypes;
2
+ export default class baseComponent {
3
+ /**
4
+ * @description: 是否为编辑类组件
5
+ */
6
+ isEdit: boolean;
7
+ /**
8
+ * @description: 是否为输入型编辑类组件
9
+ */
10
+ isInput: boolean;
11
+ /**
12
+ * @description: 类型
13
+ */
14
+ type: string;
15
+ /**
16
+ * @description: 名称
17
+ */
18
+ name: string;
19
+ /**
20
+ * @description: 组件唯一标识
21
+ */
22
+ id: string;
23
+ /**
24
+ * @description: 业务字典项目编号
25
+ */
26
+ itemID?: string;
27
+ /**
28
+ * @description: 业务字典项目来源
29
+ */
30
+ itemSourceType?: string;
31
+ /**
32
+ * @description: 组件校验条件
33
+ */
34
+ rules: Record<string, any>[];
35
+ /**
36
+ * @description: 组件属性
37
+ */
38
+ props: Record<string, any>;
39
+ /**
40
+ * @description: 组件要排除的过滤条件集合
41
+ * 参数说明:EQUALS:等于; NOT_EQUALS:不等于; GREATER_THAN:大于; LESS_THAN:小于;
42
+ * GREATER_THAN_OR_EQUALS:大于等于; LESS_THAN_OR_EQUALS:小于等于;
43
+ * EMPTY:为空; INCLUDES:包含; EXCLUDE:不包含; RANGE:范围
44
+ */
45
+ excludeFilterConditions: conditionType[];
46
+ /**
47
+ * @description: 组件过滤参数
48
+ */
49
+ filterConditionProps: Record<string, any> | undefined;
50
+ /**
51
+ * @description: 是否为布局组件
52
+ */
53
+ isLayout: boolean;
54
+ /**
55
+ * @description:布局组件的子组件集合
56
+ */
57
+ children: Record<string, any>[] | undefined;
58
+ /**
59
+ * @description: 构造器
60
+ * @param type 组件类型
61
+ * @param name 组件名称
62
+ * @param isEdit 是否为编辑类组件,默认为false
63
+ * @param isInput 是否为输入型编辑类组件,默认为false
64
+ */
65
+ constructor(type: string, name: string, isEdit?: boolean, isInput?: boolean);
66
+ }
67
+ export {};
@@ -1,66 +1,69 @@
1
- /**
2
- * 消息类型
3
- */
4
- export declare enum MessageType {
1
+ export {};
2
+ declare global {
5
3
  /**
6
- * 成功消息
4
+ * 消息类型
7
5
  */
8
- success = 0,
6
+ enum MessageType {
7
+ /**
8
+ * 成功消息
9
+ */
10
+ success,
11
+ /**
12
+ * 警告消息
13
+ */
14
+ warning,
15
+ /**
16
+ * 错误消息
17
+ */
18
+ error,
19
+ /**
20
+ * 普通消息
21
+ */
22
+ info
23
+ }
9
24
  /**
10
- * 警告消息
25
+ * 过滤条件组件类型
11
26
  */
12
- warning = 1,
13
- /**
14
- * 错误消息
15
- */
16
- error = 2,
17
- /**
18
- * 普通消息
19
- */
20
- info = 3
21
- }
22
- /**
23
- * 过滤条件组件类型
24
- */
25
- export declare enum filterConditionTypes {
26
- /**
27
- * 等于=
28
- */
29
- EQUALS = "\u7B49\u4E8E",
30
- /**
31
- * 不等于!=
32
- */
33
- NOT_EQUALS = "\u4E0D\u7B49\u4E8E",
34
- /**
35
- * 大于>
36
- */
37
- GREATER_THAN = "\u5927\u4E8E",
38
- /**
39
- * 小于<
40
- */
41
- LESS_THAN = "\u5C0F\u4E8E",
42
- /**
43
- * 大于等于>=
44
- */
45
- GREATER_THAN_OR_EQUALS = "\u5927\u4E8E\u7B49\u4E8E",
46
- /**
47
- * 小于等于<=
48
- */
49
- LESS_THAN_OR_EQUALS = "\u5C0F\u4E8E\u7B49\u4E8E",
50
- /**
51
- * 为空
52
- */
53
- EMPTY = "\u4E3A\u7A7A",
54
- /**
55
- * 包含
56
- */
57
- INCLUDES = "\u5305\u542B",
58
- /**
59
- * 不包含
60
- */
61
- EXCLUDE = "\u4E0D\u5305\u542B",
62
- /**
63
- * 范围
64
- */
65
- RANGE = "\u8303\u56F4"
27
+ enum filterConditionTypes {
28
+ /**
29
+ * 等于=
30
+ */
31
+ EQUALS = "\u7B49\u4E8E",
32
+ /**
33
+ * 不等于!=
34
+ */
35
+ NOT_EQUALS = "\u4E0D\u7B49\u4E8E",
36
+ /**
37
+ * 大于>
38
+ */
39
+ GREATER_THAN = "\u5927\u4E8E",
40
+ /**
41
+ * 小于<
42
+ */
43
+ LESS_THAN = "\u5C0F\u4E8E",
44
+ /**
45
+ * 大于等于>=
46
+ */
47
+ GREATER_THAN_OR_EQUALS = "\u5927\u4E8E\u7B49\u4E8E",
48
+ /**
49
+ * 小于等于<=
50
+ */
51
+ LESS_THAN_OR_EQUALS = "\u5C0F\u4E8E\u7B49\u4E8E",
52
+ /**
53
+ * 为空
54
+ */
55
+ EMPTY = "\u4E3A\u7A7A",
56
+ /**
57
+ * 包含
58
+ */
59
+ INCLUDES = "\u5305\u542B",
60
+ /**
61
+ * 不包含
62
+ */
63
+ EXCLUDE = "\u4E0D\u5305\u542B",
64
+ /**
65
+ * 范围
66
+ */
67
+ RANGE = "\u8303\u56F4"
68
+ }
66
69
  }
@@ -0,0 +1,34 @@
1
+ type MType = keyof typeof MessageType;
2
+ /**
3
+ * @description: 提示信息
4
+ * @param type 类型
5
+ * @param message 消息内容
6
+ * @return
7
+ */
8
+ export declare const showMessage: (type: MType, message: string) => void;
9
+ /**
10
+ * @description: 弹窗
11
+ * @param type 类型
12
+ * @param message 消息内容
13
+ * @param title 消息标题
14
+ * @param btnName 按钮显示文字
15
+ * @return
16
+ */
17
+ export declare const showAlert: (type: MType, message: string, title?: string, btnName?: string) => Promise<import('element-plus').MessageBoxData>;
18
+ /**
19
+ * @description: 确认弹窗
20
+ * @param message 消息内容
21
+ * @param title 消息标题
22
+ * @param callback 回调函数
23
+ * @param btnName 按钮显示文字
24
+ * @return
25
+ */
26
+ export declare const confirmBox: (message: string, title: string, callback?: Function, btnName?: string) => Promise<void>;
27
+ /**
28
+ * @description: 删除确认框
29
+ * @param message 消息内容
30
+ * @param callback 回调韩式
31
+ * @return
32
+ */
33
+ export declare const deleteConfirm: (message: string, callback: Function) => Promise<void>;
34
+ export {};