zhytech-ui 1.2.13 → 1.2.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.
- package/README.md +5 -0
- package/dist/src/components/dynamicForm/components/application/department/index.d.ts +93 -0
- package/dist/src/components/dynamicForm/components/application/department/propsEditor.vue.d.ts +2 -0
- package/dist/src/components/dynamicForm/components/application/department/renderer.vue.d.ts +98 -0
- package/dist/src/components/dynamicForm/components/application/index.d.ts +2 -1
- package/dist/src/components/dynamicForm/components/common/componentSetting.vue.d.ts +11 -0
- package/dist/src/components/dynamicForm/types/componentAttribute/application/departmentAttribute.d.ts +17 -0
- package/dist/src/components/dynamicForm/types/componentAttribute/application/employeeAttribute.d.ts +1 -1
- package/dist/src/components/dynamicForm/types/componentAttribute/application/postAttribute.d.ts +1 -1
- package/dist/src/components/dynamicForm/types/componentAttribute/base/inputAttribute.d.ts +8 -0
- package/dist/src/components/dynamicForm/types/componentAttribute/index.d.ts +2 -1
- package/dist/src/components/dynamicForm/types/enum.d.ts +4 -0
- package/dist/style.css +1 -1
- package/dist/zhytech-ui.es.js +4622 -4246
- package/dist/zhytech-ui.umd.js +13 -11
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { default as baseComponent } from '../../../types/baseComponent';
|
|
2
|
+
import { baseAttribute, editAttribute, departmentAttribute } from '../../../types/componentAttribute/index';
|
|
3
|
+
import { filterConditionTypes } from '../../../../../types/enum';
|
|
4
|
+
type conditionType = keyof typeof filterConditionTypes;
|
|
5
|
+
declare class component extends baseComponent {
|
|
6
|
+
constructor();
|
|
7
|
+
/**
|
|
8
|
+
* @description: 获取校验规则
|
|
9
|
+
* @param componentProps
|
|
10
|
+
* @return
|
|
11
|
+
*/
|
|
12
|
+
getRules(componentProps: Record<string, any>): {
|
|
13
|
+
required: any;
|
|
14
|
+
message: any;
|
|
15
|
+
}[];
|
|
16
|
+
/**
|
|
17
|
+
* @description: 获取过滤条件属性
|
|
18
|
+
* @param componentProps
|
|
19
|
+
* @return
|
|
20
|
+
*/
|
|
21
|
+
getFilterConditionProps(componentProps: Record<string, any>): {
|
|
22
|
+
type: string;
|
|
23
|
+
options: any;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* @description: 获取组件要排除的过滤条件集合
|
|
27
|
+
*/
|
|
28
|
+
getExcludeFilterConditions(): conditionType[];
|
|
29
|
+
}
|
|
30
|
+
declare const _default: {
|
|
31
|
+
component: typeof component;
|
|
32
|
+
renderer: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
|
|
33
|
+
isDesigner: {
|
|
34
|
+
type: BooleanConstructor;
|
|
35
|
+
default: boolean;
|
|
36
|
+
};
|
|
37
|
+
disabled: {
|
|
38
|
+
type: BooleanConstructor;
|
|
39
|
+
default: boolean;
|
|
40
|
+
};
|
|
41
|
+
componentID: {
|
|
42
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
43
|
+
required: true;
|
|
44
|
+
};
|
|
45
|
+
datas: {
|
|
46
|
+
type: PropType<Record<string, any>>;
|
|
47
|
+
required: true;
|
|
48
|
+
};
|
|
49
|
+
componentProps: {
|
|
50
|
+
type: PropType<baseAttribute & editAttribute & departmentAttribute>;
|
|
51
|
+
required: true;
|
|
52
|
+
};
|
|
53
|
+
showDescription: {
|
|
54
|
+
type: BooleanConstructor;
|
|
55
|
+
default: boolean;
|
|
56
|
+
};
|
|
57
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
58
|
+
"update:datas": (...args: any[]) => void;
|
|
59
|
+
}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
60
|
+
isDesigner: {
|
|
61
|
+
type: BooleanConstructor;
|
|
62
|
+
default: boolean;
|
|
63
|
+
};
|
|
64
|
+
disabled: {
|
|
65
|
+
type: BooleanConstructor;
|
|
66
|
+
default: boolean;
|
|
67
|
+
};
|
|
68
|
+
componentID: {
|
|
69
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
70
|
+
required: true;
|
|
71
|
+
};
|
|
72
|
+
datas: {
|
|
73
|
+
type: PropType<Record<string, any>>;
|
|
74
|
+
required: true;
|
|
75
|
+
};
|
|
76
|
+
componentProps: {
|
|
77
|
+
type: PropType<baseAttribute & editAttribute & departmentAttribute>;
|
|
78
|
+
required: true;
|
|
79
|
+
};
|
|
80
|
+
showDescription: {
|
|
81
|
+
type: BooleanConstructor;
|
|
82
|
+
default: boolean;
|
|
83
|
+
};
|
|
84
|
+
}>> & Readonly<{
|
|
85
|
+
"onUpdate:datas"?: ((...args: any[]) => any) | undefined;
|
|
86
|
+
}>, {
|
|
87
|
+
disabled: boolean;
|
|
88
|
+
showDescription: boolean;
|
|
89
|
+
isDesigner: boolean;
|
|
90
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
91
|
+
propEditor: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
92
|
+
};
|
|
93
|
+
export default _default;
|
package/dist/src/components/dynamicForm/components/application/department/propsEditor.vue.d.ts
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { baseAttribute, editAttribute, departmentAttribute } from '../../../types/componentAttribute/index';
|
|
2
|
+
type componentType = baseAttribute & editAttribute & departmentAttribute;
|
|
3
|
+
declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
|
|
4
|
+
/**
|
|
5
|
+
* 是否为设计模式
|
|
6
|
+
*/
|
|
7
|
+
isDesigner: {
|
|
8
|
+
type: BooleanConstructor;
|
|
9
|
+
default: boolean;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* 是否禁用
|
|
13
|
+
*/
|
|
14
|
+
disabled: {
|
|
15
|
+
type: BooleanConstructor;
|
|
16
|
+
default: boolean;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* 组件ID
|
|
20
|
+
*/
|
|
21
|
+
componentID: {
|
|
22
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
23
|
+
required: true;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* 表单数据
|
|
27
|
+
*/
|
|
28
|
+
datas: {
|
|
29
|
+
type: PropType<Record<string, any>>;
|
|
30
|
+
required: true;
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* 组件属性
|
|
34
|
+
*/
|
|
35
|
+
componentProps: {
|
|
36
|
+
type: PropType<componentType>;
|
|
37
|
+
required: true;
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* 是否项目说明/答案解析
|
|
41
|
+
*/
|
|
42
|
+
showDescription: {
|
|
43
|
+
type: BooleanConstructor;
|
|
44
|
+
default: boolean;
|
|
45
|
+
};
|
|
46
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
47
|
+
"update:datas": (...args: any[]) => void;
|
|
48
|
+
}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
49
|
+
/**
|
|
50
|
+
* 是否为设计模式
|
|
51
|
+
*/
|
|
52
|
+
isDesigner: {
|
|
53
|
+
type: BooleanConstructor;
|
|
54
|
+
default: boolean;
|
|
55
|
+
};
|
|
56
|
+
/**
|
|
57
|
+
* 是否禁用
|
|
58
|
+
*/
|
|
59
|
+
disabled: {
|
|
60
|
+
type: BooleanConstructor;
|
|
61
|
+
default: boolean;
|
|
62
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
* 组件ID
|
|
65
|
+
*/
|
|
66
|
+
componentID: {
|
|
67
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
68
|
+
required: true;
|
|
69
|
+
};
|
|
70
|
+
/**
|
|
71
|
+
* 表单数据
|
|
72
|
+
*/
|
|
73
|
+
datas: {
|
|
74
|
+
type: PropType<Record<string, any>>;
|
|
75
|
+
required: true;
|
|
76
|
+
};
|
|
77
|
+
/**
|
|
78
|
+
* 组件属性
|
|
79
|
+
*/
|
|
80
|
+
componentProps: {
|
|
81
|
+
type: PropType<componentType>;
|
|
82
|
+
required: true;
|
|
83
|
+
};
|
|
84
|
+
/**
|
|
85
|
+
* 是否项目说明/答案解析
|
|
86
|
+
*/
|
|
87
|
+
showDescription: {
|
|
88
|
+
type: BooleanConstructor;
|
|
89
|
+
default: boolean;
|
|
90
|
+
};
|
|
91
|
+
}>> & Readonly<{
|
|
92
|
+
"onUpdate:datas"?: ((...args: any[]) => any) | undefined;
|
|
93
|
+
}>, {
|
|
94
|
+
disabled: boolean;
|
|
95
|
+
showDescription: boolean;
|
|
96
|
+
isDesigner: boolean;
|
|
97
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
98
|
+
export default _default;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { default as employee } from './employee/index';
|
|
2
2
|
import { default as grade } from './grade/index';
|
|
3
3
|
import { default as post } from './post/index';
|
|
4
|
-
|
|
4
|
+
import { default as department } from './department/index';
|
|
5
|
+
export { employee, grade, post, department };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
type __VLS_PublicProps = {
|
|
2
|
+
modelValue?: Record<string, any>;
|
|
3
|
+
};
|
|
4
|
+
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
5
|
+
"update:modelValue": (value: Record<string, any>) => any;
|
|
6
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
7
|
+
"onUpdate:modelValue"?: ((value: Record<string, any>) => any) | undefined;
|
|
8
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
9
|
+
settingDropdown: unknown;
|
|
10
|
+
}, any>;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @description: 部门(department)组件属性
|
|
3
|
+
*/
|
|
4
|
+
export interface departmentAttribute {
|
|
5
|
+
/**
|
|
6
|
+
* 显示类型
|
|
7
|
+
*/
|
|
8
|
+
type: "selector" | "cascader";
|
|
9
|
+
/**
|
|
10
|
+
* 是否可以多选
|
|
11
|
+
*/
|
|
12
|
+
multiple: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* 部门列表
|
|
15
|
+
*/
|
|
16
|
+
options: Record<string, any>[];
|
|
17
|
+
}
|
|
@@ -9,6 +9,7 @@ import { uploadAttribute } from './advanced/uploadAttribute';
|
|
|
9
9
|
import { employeeAttribute } from './application/employeeAttribute';
|
|
10
10
|
import { postAttribute } from './application/postAttribute';
|
|
11
11
|
import { gradeAttribute } from './application/gradeAttribute';
|
|
12
|
+
import { departmentAttribute } from './application/departmentAttribute';
|
|
12
13
|
import { groupLayoutAttribute } from './layout/groupLayoutAttribute';
|
|
13
14
|
import { tabsLayoutAttribute } from './layout/tabsLayoutAttribute';
|
|
14
|
-
export type { baseAttribute, editAttribute, checkboxAttribute, inputAttribute, radioAttribute, datetimeAttribute, inputNumberAttribute, uploadAttribute, employeeAttribute, postAttribute, gradeAttribute, groupLayoutAttribute, tabsLayoutAttribute };
|
|
15
|
+
export type { baseAttribute, editAttribute, checkboxAttribute, inputAttribute, radioAttribute, datetimeAttribute, inputNumberAttribute, uploadAttribute, employeeAttribute, postAttribute, gradeAttribute, departmentAttribute, groupLayoutAttribute, tabsLayoutAttribute };
|