zhytech-ui 1.0.30 → 1.0.32
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 +17 -4
- package/dist/src/components/dynamicForm/components/advanced/index.d.ts +1 -2
- package/dist/src/components/dynamicForm/components/base/checkbox/index.d.ts +9 -0
- package/dist/src/components/dynamicForm/components/base/checkbox/propsEditor.vue.d.ts +9 -0
- package/dist/src/components/dynamicForm/components/base/radio/index.d.ts +9 -0
- package/dist/src/components/dynamicForm/components/base/radio/propsEditor.vue.d.ts +9 -0
- package/dist/src/components/dynamicForm/components/common/componentBasePropsEditor.vue.d.ts +9 -0
- package/dist/src/components/dynamicForm/components/common/componentDesigner.vue.d.ts +2 -0
- package/dist/src/components/dynamicForm/components/common/dictionaryBinder.vue.d.ts +9 -0
- package/dist/src/components/dynamicForm/components/componentType.d.ts +2 -1
- package/dist/src/components/dynamicForm/components/{advanced → layout}/groupLayout/index.d.ts +2 -0
- package/dist/src/components/dynamicForm/components/{advanced → layout}/groupLayout/renderer.vue.d.ts +2 -0
- package/dist/src/components/dynamicForm/components/layout/index.d.ts +3 -0
- package/dist/src/components/dynamicForm/components/layout/tabs/index.d.ts +74 -0
- package/dist/src/components/dynamicForm/components/layout/tabs/propsEditor.vue.d.ts +30 -0
- package/dist/src/components/dynamicForm/components/layout/tabs/renderer.vue.d.ts +69 -0
- package/dist/src/components/dynamicForm/formDesigner.vue.d.ts +17 -2
- package/dist/src/components/dynamicForm/formRenderer.vue.d.ts +9 -0
- package/dist/src/components/dynamicForm/types/componentAttribute/baseAttribute.d.ts +8 -0
- package/dist/src/components/dynamicForm/types/componentAttribute/index.d.ts +4 -3
- package/dist/src/components/dynamicForm/types/componentAttribute/layout/tabsLayoutAttribute.d.ts +21 -0
- package/dist/src/components/dynamicForm/types/formAttribute.d.ts +0 -4
- package/dist/style.css +1 -1
- package/dist/zhytech-ui.es.js +3798 -3332
- package/dist/zhytech-ui.umd.js +3 -3
- package/package.json +1 -1
- /package/dist/src/components/dynamicForm/components/{advanced → layout}/groupLayout/propsEditor.vue.d.ts +0 -0
- /package/dist/src/components/dynamicForm/types/componentAttribute/{advanced → layout}/groupLayoutAttribute.d.ts +0 -0
package/README.md
CHANGED
|
@@ -5,11 +5,15 @@
|
|
|
5
5
|
|
|
6
6
|
> ### 组件列表
|
|
7
7
|
#### 1、dynamicForm
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
动态表单组件:通过拖拽设计表单或试卷,以减少开发时间,此组件提供一个表单设计器和表单渲染器。
|
|
9
|
+
支持**基础组件**(文本、输入框、单选框、复选框)、**高级组件**(文件上传、图片上传)、**应用组件**(质控评分、公司人员选择组件、公司岗位选择组件)、**布局组件**(分组、标签页)。
|
|
10
|
+
。
|
|
10
11
|
|
|
11
12
|
#### 2、dynamicFilter
|
|
12
|
-
|
|
13
|
+
动态条件组件,支持传入多组项目、支持不同项目自定义不同的条件,支持子条件,支持无限嵌套
|
|
14
|
+
|
|
15
|
+
#### 3、icon
|
|
16
|
+
图标组件
|
|
13
17
|
|
|
14
18
|
> ### 使用说明
|
|
15
19
|
#### 1、安装
|
|
@@ -36,7 +40,7 @@ createApp(app).use(zhytechUI)
|
|
|
36
40
|
```html
|
|
37
41
|
<zhy-form-designer :formData="formData"></zhy-form-designer>
|
|
38
42
|
```
|
|
39
|
-
#### 3
|
|
43
|
+
#### 3、使用组件提供的类型
|
|
40
44
|
```ts
|
|
41
45
|
import type { batchAddComponentParam, dynamicFormData, uploadOption } from "zhytech-ui";
|
|
42
46
|
```
|
|
@@ -46,6 +50,15 @@ createApp(app).use(zhytechUI)
|
|
|
46
50
|
|
|
47
51
|
2)、此组件css样式依赖scss开发,使用者项目还需要添加scss依赖。
|
|
48
52
|
|
|
53
|
+
> #### 版本更新清单:
|
|
54
|
+
**1.0.32**
|
|
55
|
+
```
|
|
56
|
+
1. zhy-form-designer组件新增tabs标签页子组件
|
|
57
|
+
2. zhy-form-designer组件新增change事件,用于监听组件异动
|
|
58
|
+
3. zhy-form-renderer组件新增allowCreateDictionary属性,设置是否允许新增字典项目,默认true
|
|
59
|
+
4. zhy-form-renderer组件新增hiddenTitle属性,设置是否显示表单标题,默认true
|
|
60
|
+
5. zhy-form-renderer组件参数souceTypeMap的size大于1时,字典候选项列表中显示字典来源
|
|
61
|
+
```
|
|
49
62
|
> #### 后续计划:
|
|
50
63
|
|
|
51
64
|
此组件库目前还处于雏形,后续会继续添加组件
|
|
@@ -91,13 +91,22 @@ declare const _default: {
|
|
|
91
91
|
type: globalThis.PropType<import('../../..').dictionaryData>;
|
|
92
92
|
default: () => void;
|
|
93
93
|
};
|
|
94
|
+
allowCreateDictionary: {
|
|
95
|
+
type: BooleanConstructor;
|
|
96
|
+
default: boolean;
|
|
97
|
+
};
|
|
94
98
|
}, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
95
99
|
dictionary: {
|
|
96
100
|
type: globalThis.PropType<import('../../..').dictionaryData>;
|
|
97
101
|
default: () => void;
|
|
98
102
|
};
|
|
103
|
+
allowCreateDictionary: {
|
|
104
|
+
type: BooleanConstructor;
|
|
105
|
+
default: boolean;
|
|
106
|
+
};
|
|
99
107
|
}>>, {
|
|
100
108
|
dictionary: import('../../..').dictionaryData;
|
|
109
|
+
allowCreateDictionary: boolean;
|
|
101
110
|
}, {}>;
|
|
102
111
|
};
|
|
103
112
|
export default _default;
|
|
@@ -7,6 +7,10 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
7
7
|
type: globalThis.PropType<dictionaryData>;
|
|
8
8
|
default: () => void;
|
|
9
9
|
};
|
|
10
|
+
allowCreateDictionary: {
|
|
11
|
+
type: BooleanConstructor;
|
|
12
|
+
default: boolean;
|
|
13
|
+
};
|
|
10
14
|
}, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
11
15
|
/**
|
|
12
16
|
* @description: 业务字典数据集合
|
|
@@ -15,7 +19,12 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
15
19
|
type: globalThis.PropType<dictionaryData>;
|
|
16
20
|
default: () => void;
|
|
17
21
|
};
|
|
22
|
+
allowCreateDictionary: {
|
|
23
|
+
type: BooleanConstructor;
|
|
24
|
+
default: boolean;
|
|
25
|
+
};
|
|
18
26
|
}>>, {
|
|
19
27
|
dictionary: dictionaryData;
|
|
28
|
+
allowCreateDictionary: boolean;
|
|
20
29
|
}, {}>;
|
|
21
30
|
export default _default;
|
|
@@ -91,13 +91,22 @@ declare const _default: {
|
|
|
91
91
|
type: globalThis.PropType<import('../../..').dictionaryData>;
|
|
92
92
|
default: () => void;
|
|
93
93
|
};
|
|
94
|
+
allowCreateDictionary: {
|
|
95
|
+
type: BooleanConstructor;
|
|
96
|
+
default: boolean;
|
|
97
|
+
};
|
|
94
98
|
}, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
95
99
|
dictionary: {
|
|
96
100
|
type: globalThis.PropType<import('../../..').dictionaryData>;
|
|
97
101
|
default: () => void;
|
|
98
102
|
};
|
|
103
|
+
allowCreateDictionary: {
|
|
104
|
+
type: BooleanConstructor;
|
|
105
|
+
default: boolean;
|
|
106
|
+
};
|
|
99
107
|
}>>, {
|
|
100
108
|
dictionary: import('../../..').dictionaryData;
|
|
109
|
+
allowCreateDictionary: boolean;
|
|
101
110
|
}, {}>;
|
|
102
111
|
};
|
|
103
112
|
export default _default;
|
|
@@ -7,6 +7,10 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
7
7
|
type: globalThis.PropType<dictionaryData>;
|
|
8
8
|
default: () => void;
|
|
9
9
|
};
|
|
10
|
+
allowCreateDictionary: {
|
|
11
|
+
type: BooleanConstructor;
|
|
12
|
+
default: boolean;
|
|
13
|
+
};
|
|
10
14
|
}, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
11
15
|
/**
|
|
12
16
|
* @description: 业务字典数据集合
|
|
@@ -15,7 +19,12 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
15
19
|
type: globalThis.PropType<dictionaryData>;
|
|
16
20
|
default: () => void;
|
|
17
21
|
};
|
|
22
|
+
allowCreateDictionary: {
|
|
23
|
+
type: BooleanConstructor;
|
|
24
|
+
default: boolean;
|
|
25
|
+
};
|
|
18
26
|
}>>, {
|
|
19
27
|
dictionary: dictionaryData;
|
|
28
|
+
allowCreateDictionary: boolean;
|
|
20
29
|
}, {}>;
|
|
21
30
|
export default _default;
|
|
@@ -7,6 +7,10 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
7
7
|
type: globalThis.PropType<dictionaryData>;
|
|
8
8
|
default: () => void;
|
|
9
9
|
};
|
|
10
|
+
allowCreateDictionary: {
|
|
11
|
+
type: BooleanConstructor;
|
|
12
|
+
default: boolean;
|
|
13
|
+
};
|
|
10
14
|
}, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
11
15
|
/**
|
|
12
16
|
* @description: 业务字典数据集合
|
|
@@ -15,7 +19,12 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
15
19
|
type: globalThis.PropType<dictionaryData>;
|
|
16
20
|
default: () => void;
|
|
17
21
|
};
|
|
22
|
+
allowCreateDictionary: {
|
|
23
|
+
type: BooleanConstructor;
|
|
24
|
+
default: boolean;
|
|
25
|
+
};
|
|
18
26
|
}>>, {
|
|
19
27
|
dictionary: dictionaryData;
|
|
28
|
+
allowCreateDictionary: boolean;
|
|
20
29
|
}, {}>;
|
|
21
30
|
export default _default;
|
|
@@ -7,6 +7,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
7
7
|
required: true;
|
|
8
8
|
};
|
|
9
9
|
}, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
10
|
+
change: (...args: any[]) => void;
|
|
10
11
|
deleteComponent: (...args: any[]) => void;
|
|
11
12
|
"update:components": (...args: any[]) => void;
|
|
12
13
|
}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
@@ -18,6 +19,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
18
19
|
required: true;
|
|
19
20
|
};
|
|
20
21
|
}>> & {
|
|
22
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
21
23
|
onDeleteComponent?: ((...args: any[]) => any) | undefined;
|
|
22
24
|
"onUpdate:components"?: ((...args: any[]) => any) | undefined;
|
|
23
25
|
}, {}, {}>;
|
|
@@ -27,6 +27,10 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
27
27
|
type: BooleanConstructor;
|
|
28
28
|
default: boolean;
|
|
29
29
|
};
|
|
30
|
+
allowCreateDictionary: {
|
|
31
|
+
type: BooleanConstructor;
|
|
32
|
+
default: boolean;
|
|
33
|
+
};
|
|
30
34
|
}, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
31
35
|
"update:modelValue": (...args: any[]) => void;
|
|
32
36
|
change: (...args: any[]) => void;
|
|
@@ -58,6 +62,10 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
58
62
|
type: BooleanConstructor;
|
|
59
63
|
default: boolean;
|
|
60
64
|
};
|
|
65
|
+
allowCreateDictionary: {
|
|
66
|
+
type: BooleanConstructor;
|
|
67
|
+
default: boolean;
|
|
68
|
+
};
|
|
61
69
|
}>> & {
|
|
62
70
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
63
71
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
@@ -67,5 +75,6 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
67
75
|
dictionary: dictionaryData;
|
|
68
76
|
itemHeight: number;
|
|
69
77
|
height: string;
|
|
78
|
+
allowCreateDictionary: boolean;
|
|
70
79
|
}, {}>;
|
|
71
80
|
export default _default;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
import * as layoutComponent from "./layout/index";
|
|
1
2
|
import * as advancedComponent from "./advanced/index";
|
|
2
3
|
import * as applicationComponent from "./application/index";
|
|
3
4
|
import * as baseComponent from "./base/index";
|
|
4
|
-
export { baseComponent, advancedComponent, applicationComponent };
|
|
5
|
+
export { layoutComponent, baseComponent, advancedComponent, applicationComponent };
|
package/dist/src/components/dynamicForm/components/{advanced → layout}/groupLayout/index.d.ts
RENAMED
|
@@ -22,6 +22,7 @@ declare const _default: {
|
|
|
22
22
|
default: boolean;
|
|
23
23
|
};
|
|
24
24
|
}, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
25
|
+
change: (...args: any[]) => void;
|
|
25
26
|
deleteComponent: (...args: any[]) => void;
|
|
26
27
|
}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
27
28
|
isDesigner: {
|
|
@@ -41,6 +42,7 @@ declare const _default: {
|
|
|
41
42
|
default: boolean;
|
|
42
43
|
};
|
|
43
44
|
}>> & {
|
|
45
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
44
46
|
onDeleteComponent?: ((...args: any[]) => any) | undefined;
|
|
45
47
|
}, {
|
|
46
48
|
showDescription: boolean;
|
package/dist/src/components/dynamicForm/components/{advanced → layout}/groupLayout/renderer.vue.d.ts
RENAMED
|
@@ -28,6 +28,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
28
28
|
default: boolean;
|
|
29
29
|
};
|
|
30
30
|
}, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
31
|
+
change: (...args: any[]) => void;
|
|
31
32
|
deleteComponent: (...args: any[]) => void;
|
|
32
33
|
}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
33
34
|
/**
|
|
@@ -59,6 +60,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
59
60
|
default: boolean;
|
|
60
61
|
};
|
|
61
62
|
}>> & {
|
|
63
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
62
64
|
onDeleteComponent?: ((...args: any[]) => any) | undefined;
|
|
63
65
|
}, {
|
|
64
66
|
showDescription: boolean;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { default as baseComponent } from '../../../types/baseComponent';
|
|
2
|
+
declare class component extends baseComponent {
|
|
3
|
+
constructor();
|
|
4
|
+
}
|
|
5
|
+
declare const _default: {
|
|
6
|
+
component: typeof component;
|
|
7
|
+
renderer: import('vue').DefineComponent<{
|
|
8
|
+
isDesigner: {
|
|
9
|
+
type: BooleanConstructor;
|
|
10
|
+
default: boolean;
|
|
11
|
+
};
|
|
12
|
+
componentID: {
|
|
13
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
14
|
+
required: true;
|
|
15
|
+
};
|
|
16
|
+
component: {
|
|
17
|
+
type: globalThis.PropType<Record<string, any>>;
|
|
18
|
+
required: true;
|
|
19
|
+
};
|
|
20
|
+
showDescription: {
|
|
21
|
+
type: BooleanConstructor;
|
|
22
|
+
default: boolean;
|
|
23
|
+
};
|
|
24
|
+
}, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
25
|
+
change: (...args: any[]) => void;
|
|
26
|
+
deleteComponent: (...args: any[]) => void;
|
|
27
|
+
}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
28
|
+
isDesigner: {
|
|
29
|
+
type: BooleanConstructor;
|
|
30
|
+
default: boolean;
|
|
31
|
+
};
|
|
32
|
+
componentID: {
|
|
33
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
34
|
+
required: true;
|
|
35
|
+
};
|
|
36
|
+
component: {
|
|
37
|
+
type: globalThis.PropType<Record<string, any>>;
|
|
38
|
+
required: true;
|
|
39
|
+
};
|
|
40
|
+
showDescription: {
|
|
41
|
+
type: BooleanConstructor;
|
|
42
|
+
default: boolean;
|
|
43
|
+
};
|
|
44
|
+
}>> & {
|
|
45
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
46
|
+
onDeleteComponent?: ((...args: any[]) => any) | undefined;
|
|
47
|
+
}, {
|
|
48
|
+
showDescription: boolean;
|
|
49
|
+
isDesigner: boolean;
|
|
50
|
+
}, {}>;
|
|
51
|
+
propEditor: import('vue').DefineComponent<{
|
|
52
|
+
dictionary: {
|
|
53
|
+
type: globalThis.PropType<import('../../..').dictionaryData>;
|
|
54
|
+
default: () => void;
|
|
55
|
+
};
|
|
56
|
+
allowCreateDictionary: {
|
|
57
|
+
type: BooleanConstructor;
|
|
58
|
+
default: boolean;
|
|
59
|
+
};
|
|
60
|
+
}, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
61
|
+
dictionary: {
|
|
62
|
+
type: globalThis.PropType<import('../../..').dictionaryData>;
|
|
63
|
+
default: () => void;
|
|
64
|
+
};
|
|
65
|
+
allowCreateDictionary: {
|
|
66
|
+
type: BooleanConstructor;
|
|
67
|
+
default: boolean;
|
|
68
|
+
};
|
|
69
|
+
}>>, {
|
|
70
|
+
dictionary: import('../../..').dictionaryData;
|
|
71
|
+
allowCreateDictionary: boolean;
|
|
72
|
+
}, {}>;
|
|
73
|
+
};
|
|
74
|
+
export default _default;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { dictionaryData } from '../../../types/formAttribute';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<{
|
|
3
|
+
/**
|
|
4
|
+
* @description: 业务字典数据集合
|
|
5
|
+
*/
|
|
6
|
+
dictionary: {
|
|
7
|
+
type: globalThis.PropType<dictionaryData>;
|
|
8
|
+
default: () => void;
|
|
9
|
+
};
|
|
10
|
+
allowCreateDictionary: {
|
|
11
|
+
type: BooleanConstructor;
|
|
12
|
+
default: boolean;
|
|
13
|
+
};
|
|
14
|
+
}, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
15
|
+
/**
|
|
16
|
+
* @description: 业务字典数据集合
|
|
17
|
+
*/
|
|
18
|
+
dictionary: {
|
|
19
|
+
type: globalThis.PropType<dictionaryData>;
|
|
20
|
+
default: () => void;
|
|
21
|
+
};
|
|
22
|
+
allowCreateDictionary: {
|
|
23
|
+
type: BooleanConstructor;
|
|
24
|
+
default: boolean;
|
|
25
|
+
};
|
|
26
|
+
}>>, {
|
|
27
|
+
dictionary: dictionaryData;
|
|
28
|
+
allowCreateDictionary: boolean;
|
|
29
|
+
}, {}>;
|
|
30
|
+
export default _default;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{
|
|
2
|
+
/**
|
|
3
|
+
* 是否为设计模式
|
|
4
|
+
*/
|
|
5
|
+
isDesigner: {
|
|
6
|
+
type: BooleanConstructor;
|
|
7
|
+
default: boolean;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* 组件ID
|
|
11
|
+
*/
|
|
12
|
+
componentID: {
|
|
13
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
14
|
+
required: true;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* 组件
|
|
18
|
+
*/
|
|
19
|
+
component: {
|
|
20
|
+
type: globalThis.PropType<Record<string, any>>;
|
|
21
|
+
required: true;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* 是否项目说明/答案解析
|
|
25
|
+
*/
|
|
26
|
+
showDescription: {
|
|
27
|
+
type: BooleanConstructor;
|
|
28
|
+
default: boolean;
|
|
29
|
+
};
|
|
30
|
+
}, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
31
|
+
change: (...args: any[]) => void;
|
|
32
|
+
deleteComponent: (...args: any[]) => void;
|
|
33
|
+
}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
34
|
+
/**
|
|
35
|
+
* 是否为设计模式
|
|
36
|
+
*/
|
|
37
|
+
isDesigner: {
|
|
38
|
+
type: BooleanConstructor;
|
|
39
|
+
default: boolean;
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* 组件ID
|
|
43
|
+
*/
|
|
44
|
+
componentID: {
|
|
45
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
46
|
+
required: true;
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* 组件
|
|
50
|
+
*/
|
|
51
|
+
component: {
|
|
52
|
+
type: globalThis.PropType<Record<string, any>>;
|
|
53
|
+
required: true;
|
|
54
|
+
};
|
|
55
|
+
/**
|
|
56
|
+
* 是否项目说明/答案解析
|
|
57
|
+
*/
|
|
58
|
+
showDescription: {
|
|
59
|
+
type: BooleanConstructor;
|
|
60
|
+
default: boolean;
|
|
61
|
+
};
|
|
62
|
+
}>> & {
|
|
63
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
64
|
+
onDeleteComponent?: ((...args: any[]) => any) | undefined;
|
|
65
|
+
}, {
|
|
66
|
+
showDescription: boolean;
|
|
67
|
+
isDesigner: boolean;
|
|
68
|
+
}, {}>;
|
|
69
|
+
export default _default;
|
|
@@ -56,6 +56,10 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
|
56
56
|
type: StringConstructor;
|
|
57
57
|
default: undefined;
|
|
58
58
|
};
|
|
59
|
+
allowCreateDictionary: {
|
|
60
|
+
type: BooleanConstructor;
|
|
61
|
+
default: boolean;
|
|
62
|
+
};
|
|
59
63
|
/**
|
|
60
64
|
* @description: 保存方法,不传则不显示保存按钮
|
|
61
65
|
*/
|
|
@@ -77,7 +81,10 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
|
77
81
|
type: globalThis.PropType<batchAddComponentParam>;
|
|
78
82
|
default: () => void;
|
|
79
83
|
};
|
|
80
|
-
}, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
84
|
+
}, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
85
|
+
change: (...args: any[]) => void;
|
|
86
|
+
test: (...args: any[]) => void;
|
|
87
|
+
}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
81
88
|
/**
|
|
82
89
|
* @description: 表单数据,包含表单属性,组件集合、初始数据
|
|
83
90
|
*/
|
|
@@ -132,6 +139,10 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
|
132
139
|
type: StringConstructor;
|
|
133
140
|
default: undefined;
|
|
134
141
|
};
|
|
142
|
+
allowCreateDictionary: {
|
|
143
|
+
type: BooleanConstructor;
|
|
144
|
+
default: boolean;
|
|
145
|
+
};
|
|
135
146
|
/**
|
|
136
147
|
* @description: 保存方法,不传则不显示保存按钮
|
|
137
148
|
*/
|
|
@@ -153,9 +164,13 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
|
153
164
|
type: globalThis.PropType<batchAddComponentParam>;
|
|
154
165
|
default: () => void;
|
|
155
166
|
};
|
|
156
|
-
}
|
|
167
|
+
}>> & {
|
|
168
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
169
|
+
onTest?: ((...args: any[]) => any) | undefined;
|
|
170
|
+
}, {
|
|
157
171
|
defaultSourceType: string;
|
|
158
172
|
dictionary: dictionaryData;
|
|
173
|
+
allowCreateDictionary: boolean;
|
|
159
174
|
componentGroups: Record<string, any>[];
|
|
160
175
|
mergeGroup: boolean;
|
|
161
176
|
saveMethod: Function;
|
|
@@ -58,6 +58,10 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
58
58
|
type: globalThis.PropType<Record<string, any>[]>;
|
|
59
59
|
default: () => never[];
|
|
60
60
|
};
|
|
61
|
+
hiddenTitle: {
|
|
62
|
+
type: BooleanConstructor;
|
|
63
|
+
default: boolean;
|
|
64
|
+
};
|
|
61
65
|
}, {
|
|
62
66
|
/**
|
|
63
67
|
* @description: 获取表单数据
|
|
@@ -155,6 +159,10 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
155
159
|
type: globalThis.PropType<Record<string, any>[]>;
|
|
156
160
|
default: () => never[];
|
|
157
161
|
};
|
|
162
|
+
hiddenTitle: {
|
|
163
|
+
type: BooleanConstructor;
|
|
164
|
+
default: boolean;
|
|
165
|
+
};
|
|
158
166
|
}>> & {
|
|
159
167
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
160
168
|
onSelect?: ((...args: any[]) => any) | undefined;
|
|
@@ -166,5 +174,6 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
166
174
|
uploadOptions: uploadOption;
|
|
167
175
|
device: string;
|
|
168
176
|
watching: boolean;
|
|
177
|
+
hiddenTitle: boolean;
|
|
169
178
|
}, {}>;
|
|
170
179
|
export default _default;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { baseAttribute } from './baseAttribute';
|
|
2
|
+
import { groupLayoutAttribute } from './layout/groupLayoutAttribute';
|
|
3
|
+
import { tabsLayoutAttribute } from './layout/tabsLayoutAttribute';
|
|
2
4
|
import { uploadAttribute } from './advanced/uploadAttribute';
|
|
3
5
|
import { employeeAttribute } from './application/employeeAttribute';
|
|
4
6
|
import { gradeAttribute } from './application/gradeAttribute';
|
|
@@ -6,6 +8,5 @@ import { postAttribute } from './application/postAttribute';
|
|
|
6
8
|
import { checkboxAttribute } from './base/checkboxAttribute';
|
|
7
9
|
import { inputAttribute } from './base/inputAttribute';
|
|
8
10
|
import { radioAttribute } from './base/radioAttribute';
|
|
9
|
-
import { baseAttribute } from './baseAttribute';
|
|
10
11
|
import { editAttribute } from './editAttribute';
|
|
11
|
-
export type { baseAttribute,
|
|
12
|
+
export type { baseAttribute, groupLayoutAttribute, tabsLayoutAttribute, uploadAttribute, employeeAttribute, gradeAttribute, postAttribute, editAttribute, inputAttribute, radioAttribute, checkboxAttribute };
|
package/dist/src/components/dynamicForm/types/componentAttribute/layout/tabsLayoutAttribute.d.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @description: 标签页(tabsLayout)组件属性
|
|
3
|
+
*/
|
|
4
|
+
export interface tabsLayoutAttribute {
|
|
5
|
+
/**
|
|
6
|
+
* 标签类型
|
|
7
|
+
*/
|
|
8
|
+
tabType: "" | "card" | "border-card";
|
|
9
|
+
/**
|
|
10
|
+
* 标签集合
|
|
11
|
+
*/
|
|
12
|
+
pages: Record<string, any>[];
|
|
13
|
+
/**
|
|
14
|
+
* 标签位置
|
|
15
|
+
*/
|
|
16
|
+
tabPosition: "top" | "right" | "bottom" | "left";
|
|
17
|
+
/**
|
|
18
|
+
* 是否显示导航按钮
|
|
19
|
+
*/
|
|
20
|
+
showNavigation?: boolean;
|
|
21
|
+
}
|