zhytech-ui 1.2.17 → 1.2.18
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 +8 -0
- package/dist/src/components/dynamicForm/components/application/employee/index.d.ts +92 -32
- package/dist/src/components/dynamicForm/components/application/employee/propsEditor.vue.d.ts +0 -1
- package/dist/src/components/dynamicForm/components/application/employee/renderer.vue.d.ts +19 -1
- package/dist/src/components/dynamicForm/components/common/httpSetting.vue.d.ts +48 -10
- package/dist/src/components/dynamicForm/types/componentAttribute/application/employeeAttribute.d.ts +12 -0
- package/dist/src/components/dynamicForm/types/enum.d.ts +9 -1
- package/dist/src/components/dynamicForm/types/formAttribute.d.ts +4 -0
- package/dist/src/components/dynamicForm/types/httpSettingView.d.ts +9 -2
- package/dist/src/hooks/useUtils.d.ts +1 -1
- package/dist/src/utils/eventBus.d.ts +2 -1
- package/dist/style.css +1 -1
- package/dist/zhytech-ui.es.js +8677 -8472
- package/dist/zhytech-ui.umd.js +15 -15
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -90,6 +90,14 @@ npm install --legacy-peer-deps
|
|
|
90
90
|
|
|
91
91
|
> #### 版本更新清单:
|
|
92
92
|
|
|
93
|
+
**V 1.2.18**
|
|
94
|
+
```html
|
|
95
|
+
1.人员组件支持动态获取选项
|
|
96
|
+
2.人员组件为下拉框时 支持远端搜索,支持配置搜索接口
|
|
97
|
+
3.接口配置画面样式调整,添加loading参数
|
|
98
|
+
4.优化人员、部门、岗位组件回显问题
|
|
99
|
+
```
|
|
100
|
+
|
|
93
101
|
**V 1.2.17**
|
|
94
102
|
```html
|
|
95
103
|
1.修复将绑定字典改为自定义时fixedItemID赋值错误
|
|
@@ -29,35 +29,86 @@ declare class component extends baseComponent {
|
|
|
29
29
|
}
|
|
30
30
|
declare const _default: {
|
|
31
31
|
component: typeof component;
|
|
32
|
-
renderer:
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
32
|
+
renderer: {
|
|
33
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<globalThis.ExtractPropTypes<{
|
|
34
|
+
isDesigner: {
|
|
35
|
+
type: BooleanConstructor;
|
|
36
|
+
default: boolean;
|
|
37
|
+
};
|
|
38
|
+
disabled: {
|
|
39
|
+
type: BooleanConstructor;
|
|
40
|
+
default: boolean;
|
|
41
|
+
};
|
|
42
|
+
componentID: {
|
|
43
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
44
|
+
required: true;
|
|
45
|
+
};
|
|
46
|
+
datas: {
|
|
47
|
+
type: PropType<Record<string, any>>;
|
|
48
|
+
required: true;
|
|
49
|
+
};
|
|
50
|
+
componentProps: {
|
|
51
|
+
type: PropType<baseAttribute & editAttribute & employeeAttribute>;
|
|
52
|
+
required: true;
|
|
53
|
+
};
|
|
54
|
+
showDescription: {
|
|
55
|
+
type: BooleanConstructor;
|
|
56
|
+
default: boolean;
|
|
57
|
+
};
|
|
58
|
+
}>> & Readonly<{
|
|
59
|
+
"onUpdate:datas"?: ((...args: any[]) => any) | undefined;
|
|
60
|
+
"onUpdate:componentProps"?: ((...args: any[]) => any) | undefined;
|
|
61
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
62
|
+
"update:datas": (...args: any[]) => void;
|
|
63
|
+
"update:componentProps": (...args: any[]) => void;
|
|
64
|
+
}, import('vue').PublicProps, {
|
|
65
|
+
disabled: boolean;
|
|
66
|
+
showDescription: boolean;
|
|
67
|
+
isDesigner: boolean;
|
|
68
|
+
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
69
|
+
P: {};
|
|
70
|
+
B: {};
|
|
71
|
+
D: {};
|
|
72
|
+
C: {};
|
|
73
|
+
M: {};
|
|
74
|
+
Defaults: {};
|
|
75
|
+
}, Readonly<globalThis.ExtractPropTypes<{
|
|
76
|
+
isDesigner: {
|
|
77
|
+
type: BooleanConstructor;
|
|
78
|
+
default: boolean;
|
|
79
|
+
};
|
|
80
|
+
disabled: {
|
|
81
|
+
type: BooleanConstructor;
|
|
82
|
+
default: boolean;
|
|
83
|
+
};
|
|
84
|
+
componentID: {
|
|
85
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
86
|
+
required: true;
|
|
87
|
+
};
|
|
88
|
+
datas: {
|
|
89
|
+
type: PropType<Record<string, any>>;
|
|
90
|
+
required: true;
|
|
91
|
+
};
|
|
92
|
+
componentProps: {
|
|
93
|
+
type: PropType<baseAttribute & editAttribute & employeeAttribute>;
|
|
94
|
+
required: true;
|
|
95
|
+
};
|
|
96
|
+
showDescription: {
|
|
97
|
+
type: BooleanConstructor;
|
|
98
|
+
default: boolean;
|
|
99
|
+
};
|
|
100
|
+
}>> & Readonly<{
|
|
101
|
+
"onUpdate:datas"?: ((...args: any[]) => any) | undefined;
|
|
102
|
+
"onUpdate:componentProps"?: ((...args: any[]) => any) | undefined;
|
|
103
|
+
}>, {}, {}, {}, {}, {
|
|
104
|
+
disabled: boolean;
|
|
105
|
+
showDescription: boolean;
|
|
106
|
+
isDesigner: boolean;
|
|
107
|
+
}>;
|
|
108
|
+
__isFragment?: never;
|
|
109
|
+
__isTeleport?: never;
|
|
110
|
+
__isSuspense?: never;
|
|
111
|
+
} & import('vue').ComponentOptionsBase<Readonly<globalThis.ExtractPropTypes<{
|
|
61
112
|
isDesigner: {
|
|
62
113
|
type: BooleanConstructor;
|
|
63
114
|
default: boolean;
|
|
@@ -85,11 +136,21 @@ declare const _default: {
|
|
|
85
136
|
}>> & Readonly<{
|
|
86
137
|
"onUpdate:datas"?: ((...args: any[]) => any) | undefined;
|
|
87
138
|
"onUpdate:componentProps"?: ((...args: any[]) => any) | undefined;
|
|
88
|
-
}>, {
|
|
139
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
140
|
+
"update:datas": (...args: any[]) => void;
|
|
141
|
+
"update:componentProps": (...args: any[]) => void;
|
|
142
|
+
}, string, {
|
|
89
143
|
disabled: boolean;
|
|
90
144
|
showDescription: boolean;
|
|
91
145
|
isDesigner: boolean;
|
|
92
|
-
}, {},
|
|
146
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
147
|
+
$slots: {
|
|
148
|
+
option?(_: {
|
|
149
|
+
index: number;
|
|
150
|
+
label: any;
|
|
151
|
+
}): any;
|
|
152
|
+
};
|
|
153
|
+
});
|
|
93
154
|
propEditor: {
|
|
94
155
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
95
156
|
P: {};
|
|
@@ -107,7 +168,6 @@ declare const _default: {
|
|
|
107
168
|
option?(_: {
|
|
108
169
|
index: number;
|
|
109
170
|
label: any;
|
|
110
|
-
suffix: any;
|
|
111
171
|
}): any;
|
|
112
172
|
};
|
|
113
173
|
});
|
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
import { baseAttribute, editAttribute, employeeAttribute } from '../../../types/componentAttribute/index';
|
|
2
2
|
type componentType = baseAttribute & editAttribute & employeeAttribute;
|
|
3
|
-
declare
|
|
3
|
+
declare function __VLS_template(): {
|
|
4
|
+
attrs: Partial<{}>;
|
|
5
|
+
slots: {
|
|
6
|
+
option?(_: {
|
|
7
|
+
index: number;
|
|
8
|
+
label: any;
|
|
9
|
+
}): any;
|
|
10
|
+
};
|
|
11
|
+
refs: {};
|
|
12
|
+
rootEl: HTMLDivElement;
|
|
13
|
+
};
|
|
14
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
15
|
+
declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
|
|
4
16
|
/**
|
|
5
17
|
* 是否为设计模式
|
|
6
18
|
*/
|
|
@@ -97,4 +109,10 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
97
109
|
showDescription: boolean;
|
|
98
110
|
isDesigner: boolean;
|
|
99
111
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
112
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
100
113
|
export default _default;
|
|
114
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
115
|
+
new (): {
|
|
116
|
+
$slots: S;
|
|
117
|
+
};
|
|
118
|
+
};
|
|
@@ -1,12 +1,5 @@
|
|
|
1
1
|
import { eventTypeEnum } from '../../types/enum';
|
|
2
2
|
import { httpSettingView } from '../../types/httpSettingView';
|
|
3
|
-
type __VLS_Props = {
|
|
4
|
-
eventType: eventTypeEnum;
|
|
5
|
-
componentID: string;
|
|
6
|
-
};
|
|
7
|
-
type __VLS_PublicProps = {
|
|
8
|
-
modelValue?: httpSettingView[];
|
|
9
|
-
} & __VLS_Props;
|
|
10
3
|
declare function __VLS_template(): {
|
|
11
4
|
attrs: Partial<{}>;
|
|
12
5
|
slots: {
|
|
@@ -18,11 +11,56 @@ declare function __VLS_template(): {
|
|
|
18
11
|
rootEl: HTMLDivElement;
|
|
19
12
|
};
|
|
20
13
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
21
|
-
declare const __VLS_component: import('vue').DefineComponent<
|
|
14
|
+
declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
|
|
15
|
+
eventType: {
|
|
16
|
+
type: StringConstructor;
|
|
17
|
+
default: eventTypeEnum;
|
|
18
|
+
};
|
|
19
|
+
componentID: {
|
|
20
|
+
type: StringConstructor;
|
|
21
|
+
default: string;
|
|
22
|
+
};
|
|
23
|
+
tipMessage: {
|
|
24
|
+
type: StringConstructor;
|
|
25
|
+
default: string;
|
|
26
|
+
};
|
|
27
|
+
mappingFixedSelf: {
|
|
28
|
+
type: BooleanConstructor;
|
|
29
|
+
default: boolean;
|
|
30
|
+
};
|
|
31
|
+
modelValue: {
|
|
32
|
+
type: globalThis.PropType<httpSettingView[]>;
|
|
33
|
+
};
|
|
34
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
22
35
|
"update:modelValue": (value: httpSettingView[]) => any;
|
|
23
|
-
}, string, import('vue').PublicProps, Readonly<
|
|
36
|
+
}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
37
|
+
eventType: {
|
|
38
|
+
type: StringConstructor;
|
|
39
|
+
default: eventTypeEnum;
|
|
40
|
+
};
|
|
41
|
+
componentID: {
|
|
42
|
+
type: StringConstructor;
|
|
43
|
+
default: string;
|
|
44
|
+
};
|
|
45
|
+
tipMessage: {
|
|
46
|
+
type: StringConstructor;
|
|
47
|
+
default: string;
|
|
48
|
+
};
|
|
49
|
+
mappingFixedSelf: {
|
|
50
|
+
type: BooleanConstructor;
|
|
51
|
+
default: boolean;
|
|
52
|
+
};
|
|
53
|
+
modelValue: {
|
|
54
|
+
type: globalThis.PropType<httpSettingView[]>;
|
|
55
|
+
};
|
|
56
|
+
}>> & Readonly<{
|
|
24
57
|
"onUpdate:modelValue"?: ((value: httpSettingView[]) => any) | undefined;
|
|
25
|
-
}>, {
|
|
58
|
+
}>, {
|
|
59
|
+
componentID: string;
|
|
60
|
+
eventType: string;
|
|
61
|
+
tipMessage: string;
|
|
62
|
+
mappingFixedSelf: boolean;
|
|
63
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
26
64
|
httpSettingForm: unknown;
|
|
27
65
|
}, HTMLDivElement>;
|
|
28
66
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
package/dist/src/components/dynamicForm/types/componentAttribute/application/employeeAttribute.d.ts
CHANGED
|
@@ -26,4 +26,16 @@ export interface employeeAttribute {
|
|
|
26
26
|
* 人员列表
|
|
27
27
|
*/
|
|
28
28
|
options: Record<string, any>[];
|
|
29
|
+
/**
|
|
30
|
+
* displayType=selector时是否可以筛选
|
|
31
|
+
*/
|
|
32
|
+
filterable: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* displayType=selector时是否可以远端搜索
|
|
35
|
+
*/
|
|
36
|
+
remoteFlag: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* 是否动态选项
|
|
39
|
+
*/
|
|
40
|
+
dynamicOptionFlag: boolean;
|
|
29
41
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { eventTypeEnum } from './enum';
|
|
2
1
|
/**
|
|
3
2
|
* @description: HTTP请求设置
|
|
4
3
|
*/
|
|
@@ -6,7 +5,7 @@ export interface httpSettingView {
|
|
|
6
5
|
/**
|
|
7
6
|
* HTTP请求类型
|
|
8
7
|
*/
|
|
9
|
-
eventType:
|
|
8
|
+
eventType: string;
|
|
10
9
|
/**
|
|
11
10
|
* HTTP基础URL
|
|
12
11
|
*/
|
|
@@ -19,6 +18,14 @@ export interface httpSettingView {
|
|
|
19
18
|
* HTTP请求方法
|
|
20
19
|
*/
|
|
21
20
|
method?: "post" | "get";
|
|
21
|
+
/**
|
|
22
|
+
* 是否显示加载中状态
|
|
23
|
+
*/
|
|
24
|
+
loading?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* 加载中状态文本
|
|
27
|
+
*/
|
|
28
|
+
loadingText?: string;
|
|
22
29
|
/**
|
|
23
30
|
* HTTP请求参数
|
|
24
31
|
*/
|
|
@@ -87,5 +87,5 @@ export declare function useUtils(): {
|
|
|
87
87
|
* @param autoDealResult 是否自动处理结果
|
|
88
88
|
* @return
|
|
89
89
|
*/
|
|
90
|
-
callApi(httpSetting: httpSettingView, datas: Record<string, any>, autoDealResult?: boolean): Promise<
|
|
90
|
+
callApi(httpSetting: httpSettingView, datas: Record<string, any>, autoDealResult?: boolean): Promise<any>;
|
|
91
91
|
};
|
|
@@ -3,4 +3,5 @@ type EventType = {
|
|
|
3
3
|
};
|
|
4
4
|
declare const _default: import('mitt').Emitter<EventType>;
|
|
5
5
|
export default _default;
|
|
6
|
-
export declare const
|
|
6
|
+
export declare const DYNAMIC_FORM_DATAS_UPDATE_EVENT = "dynamicFormDatasUpdate";
|
|
7
|
+
export declare const DYNAMIC_FORM_DEPARTMENT_CHANGE_EVENT = "dynamicFormDepartmentChange";
|