zhytech-ui 1.0.35 → 1.0.37
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 +19 -7
- package/dist/src/components/dynamicForm/components/base/date/index.d.ts +102 -0
- package/dist/src/components/dynamicForm/components/base/date/propsEditor.vue.d.ts +2 -0
- package/dist/src/components/dynamicForm/components/base/date/renderer.vue.d.ts +113 -0
- package/dist/src/components/dynamicForm/components/base/hooks/useDatetimeType.d.ts +15 -0
- package/dist/src/components/dynamicForm/components/base/index.d.ts +4 -1
- package/dist/src/components/dynamicForm/components/base/inputNumber/index.d.ts +107 -0
- package/dist/src/components/dynamicForm/components/base/inputNumber/propsEditor.vue.d.ts +2 -0
- package/dist/src/components/dynamicForm/components/base/inputNumber/renderer.vue.d.ts +113 -0
- package/dist/src/components/dynamicForm/components/base/time/index.d.ts +102 -0
- package/dist/src/components/dynamicForm/components/base/time/propsEditor.vue.d.ts +2 -0
- package/dist/src/components/dynamicForm/components/base/time/renderer.vue.d.ts +113 -0
- package/dist/src/components/dynamicForm/formRenderer.vue.d.ts +8 -2
- package/dist/src/components/dynamicForm/types/abnormalCheckView.d.ts +18 -0
- package/dist/src/components/dynamicForm/types/componentAttribute/base/datetimeAttribute.d.ts +54 -0
- package/dist/src/components/dynamicForm/types/componentAttribute/base/inputNumberAttribute.d.ts +27 -0
- package/dist/src/components/dynamicForm/types/componentAttribute/baseAttribute.d.ts +16 -0
- package/dist/src/components/dynamicForm/types/componentAttribute/index.d.ts +3 -1
- package/dist/src/components/dynamicForm/types/datetimeTypeView.d.ts +26 -0
- package/dist/src/components/dynamicForm/types/relevanceConditionView.d.ts +21 -0
- package/dist/src/types/enum.d.ts +61 -0
- package/dist/src/utils/dayjs.d.ts +129 -0
- package/dist/style.css +1 -1
- package/dist/zhytech-ui.es.js +6208 -4416
- package/dist/zhytech-ui.umd.js +4 -4
- package/package.json +76 -74
package/README.md
CHANGED
|
@@ -28,11 +28,12 @@ npm i zhytech-ui@latest -S
|
|
|
28
28
|
1)、按需引入:在要使用的页面添加下面代码即可
|
|
29
29
|
```ts
|
|
30
30
|
import { ZhyFormDesigner, ZhyFormRenderer } from "zhytech-ui"
|
|
31
|
+
import "zhytech-ui/dist/style.css";
|
|
31
32
|
```
|
|
32
|
-
2)
|
|
33
|
+
2)、全局引入:在main.ts中引入,在项目内任何页面都不需要单独引入
|
|
33
34
|
```ts
|
|
34
35
|
import zhytechUI from "zhytech-ui";
|
|
35
|
-
import "
|
|
36
|
+
import "zhytech-ui/dist/style.css";
|
|
36
37
|
createApp(app).use(zhytechUI)
|
|
37
38
|
```
|
|
38
39
|
|
|
@@ -51,13 +52,24 @@ createApp(app).use(zhytechUI)
|
|
|
51
52
|
2)、此组件css样式依赖scss开发,使用者项目还需要添加scss依赖。
|
|
52
53
|
|
|
53
54
|
> #### 版本更新清单:
|
|
55
|
+
|
|
56
|
+
**V 1.0.36**
|
|
57
|
+
```
|
|
58
|
+
1.zhy-form-designer组件新增日期组件
|
|
59
|
+
2.zhy-form-designer组件新增时间组件
|
|
60
|
+
3.修复zhy-form-designer组件中tabs标签页组件样式异常
|
|
61
|
+
4.修复zhy-form-designer组件隐藏属性面板后无法再次打开问题
|
|
62
|
+
5.修复zhy-form-designer组件隐藏标题时保存提示标题命名不规范
|
|
63
|
+
6.组件zhy-form-render返回值新增sourceType属性
|
|
64
|
+
```
|
|
65
|
+
|
|
54
66
|
**V 1.0.35**
|
|
55
67
|
```
|
|
56
|
-
1.
|
|
57
|
-
2.
|
|
58
|
-
3.
|
|
59
|
-
4.
|
|
60
|
-
5.
|
|
68
|
+
1.zhy-form-designer组件新增tabs标签页子组件
|
|
69
|
+
2.zhy-form-designer组件新增change事件,用于监听组件异动
|
|
70
|
+
3.zhy-form-renderer组件新增allowCreateDictionary属性,设置是否允许新增字典项目,默认true
|
|
71
|
+
4.zhy-form-renderer组件新增hiddenTitle属性,设置是否显示表单标题,默认true
|
|
72
|
+
5.zhy-form-renderer组件参数souceTypeMap的size大于1时,字典候选项列表中显示字典来源
|
|
61
73
|
```
|
|
62
74
|
> #### 后续计划:
|
|
63
75
|
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { default as baseComponent } from '../../../types/baseComponent';
|
|
2
|
+
import { baseAttribute, editAttribute, datetimeAttribute } from '../../../types/componentAttribute/index';
|
|
3
|
+
declare class component extends baseComponent {
|
|
4
|
+
/**
|
|
5
|
+
* @description: 构造器
|
|
6
|
+
*/
|
|
7
|
+
constructor();
|
|
8
|
+
/**
|
|
9
|
+
* @description: 获取校验规则
|
|
10
|
+
* @param componentProps
|
|
11
|
+
* @return
|
|
12
|
+
*/
|
|
13
|
+
getRules(componentProps: Record<string, any>): {
|
|
14
|
+
required: any;
|
|
15
|
+
message: any;
|
|
16
|
+
}[];
|
|
17
|
+
/**
|
|
18
|
+
* @description: 获取过滤条件属性
|
|
19
|
+
* @param componentProps
|
|
20
|
+
* @return
|
|
21
|
+
*/
|
|
22
|
+
getFilterConditionProps(componentProps: Record<string, any>): {
|
|
23
|
+
type: string;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* @description: 获取组件要排除的过滤条件集合
|
|
27
|
+
*/
|
|
28
|
+
getExcludeFilterConditions(): ("NOT_EQUALS" | "INCLUDES" | "EXCLUDE" | "EMPTY" | "EQUALS" | "GREATER_THAN" | "LESS_THAN" | "GREATER_THAN_OR_EQUALS" | "LESS_THAN_OR_EQUALS" | "RANGE")[];
|
|
29
|
+
}
|
|
30
|
+
declare const _default: {
|
|
31
|
+
component: typeof component;
|
|
32
|
+
renderer: import('vue').DefineComponent<{
|
|
33
|
+
isDesigner: {
|
|
34
|
+
type: BooleanConstructor;
|
|
35
|
+
default: boolean;
|
|
36
|
+
};
|
|
37
|
+
disabled: {
|
|
38
|
+
type: BooleanConstructor;
|
|
39
|
+
default: boolean;
|
|
40
|
+
};
|
|
41
|
+
readonly: {
|
|
42
|
+
type: BooleanConstructor;
|
|
43
|
+
default: boolean;
|
|
44
|
+
};
|
|
45
|
+
componentID: {
|
|
46
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
47
|
+
required: true;
|
|
48
|
+
};
|
|
49
|
+
datas: {
|
|
50
|
+
type: globalThis.PropType<Record<string, any>>;
|
|
51
|
+
required: true;
|
|
52
|
+
};
|
|
53
|
+
componentProps: {
|
|
54
|
+
type: globalThis.PropType<baseAttribute & editAttribute & datetimeAttribute>;
|
|
55
|
+
required: true;
|
|
56
|
+
};
|
|
57
|
+
showDescription: {
|
|
58
|
+
type: BooleanConstructor;
|
|
59
|
+
default: boolean;
|
|
60
|
+
};
|
|
61
|
+
}, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
62
|
+
"update:datas": (...args: any[]) => void;
|
|
63
|
+
}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
64
|
+
isDesigner: {
|
|
65
|
+
type: BooleanConstructor;
|
|
66
|
+
default: boolean;
|
|
67
|
+
};
|
|
68
|
+
disabled: {
|
|
69
|
+
type: BooleanConstructor;
|
|
70
|
+
default: boolean;
|
|
71
|
+
};
|
|
72
|
+
readonly: {
|
|
73
|
+
type: BooleanConstructor;
|
|
74
|
+
default: boolean;
|
|
75
|
+
};
|
|
76
|
+
componentID: {
|
|
77
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
78
|
+
required: true;
|
|
79
|
+
};
|
|
80
|
+
datas: {
|
|
81
|
+
type: globalThis.PropType<Record<string, any>>;
|
|
82
|
+
required: true;
|
|
83
|
+
};
|
|
84
|
+
componentProps: {
|
|
85
|
+
type: globalThis.PropType<baseAttribute & editAttribute & datetimeAttribute>;
|
|
86
|
+
required: true;
|
|
87
|
+
};
|
|
88
|
+
showDescription: {
|
|
89
|
+
type: BooleanConstructor;
|
|
90
|
+
default: boolean;
|
|
91
|
+
};
|
|
92
|
+
}>> & {
|
|
93
|
+
"onUpdate:datas"?: ((...args: any[]) => any) | undefined;
|
|
94
|
+
}, {
|
|
95
|
+
disabled: boolean;
|
|
96
|
+
readonly: boolean;
|
|
97
|
+
showDescription: boolean;
|
|
98
|
+
isDesigner: boolean;
|
|
99
|
+
}, {}>;
|
|
100
|
+
propEditor: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{}>>, {}, {}>;
|
|
101
|
+
};
|
|
102
|
+
export default _default;
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { baseAttribute, editAttribute, datetimeAttribute } from '../../../types/componentAttribute/index';
|
|
2
|
+
type componentType = baseAttribute & editAttribute & datetimeAttribute;
|
|
3
|
+
declare const _default: import('vue').DefineComponent<{
|
|
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
|
+
* 是否只读
|
|
20
|
+
*/
|
|
21
|
+
readonly: {
|
|
22
|
+
type: BooleanConstructor;
|
|
23
|
+
default: boolean;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* 组件ID
|
|
27
|
+
*/
|
|
28
|
+
componentID: {
|
|
29
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
30
|
+
required: true;
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* 表单数据
|
|
34
|
+
*/
|
|
35
|
+
datas: {
|
|
36
|
+
type: globalThis.PropType<Record<string, any>>;
|
|
37
|
+
required: true;
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* 组件属性
|
|
41
|
+
*/
|
|
42
|
+
componentProps: {
|
|
43
|
+
type: globalThis.PropType<componentType>;
|
|
44
|
+
required: true;
|
|
45
|
+
};
|
|
46
|
+
/**
|
|
47
|
+
* 是否项目说明/答案解析
|
|
48
|
+
*/
|
|
49
|
+
showDescription: {
|
|
50
|
+
type: BooleanConstructor;
|
|
51
|
+
default: boolean;
|
|
52
|
+
};
|
|
53
|
+
}, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
54
|
+
"update:datas": (...args: any[]) => void;
|
|
55
|
+
}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
56
|
+
/**
|
|
57
|
+
* 是否为设计模式
|
|
58
|
+
*/
|
|
59
|
+
isDesigner: {
|
|
60
|
+
type: BooleanConstructor;
|
|
61
|
+
default: boolean;
|
|
62
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
* 是否禁用
|
|
65
|
+
*/
|
|
66
|
+
disabled: {
|
|
67
|
+
type: BooleanConstructor;
|
|
68
|
+
default: boolean;
|
|
69
|
+
};
|
|
70
|
+
/**
|
|
71
|
+
* 是否只读
|
|
72
|
+
*/
|
|
73
|
+
readonly: {
|
|
74
|
+
type: BooleanConstructor;
|
|
75
|
+
default: boolean;
|
|
76
|
+
};
|
|
77
|
+
/**
|
|
78
|
+
* 组件ID
|
|
79
|
+
*/
|
|
80
|
+
componentID: {
|
|
81
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
82
|
+
required: true;
|
|
83
|
+
};
|
|
84
|
+
/**
|
|
85
|
+
* 表单数据
|
|
86
|
+
*/
|
|
87
|
+
datas: {
|
|
88
|
+
type: globalThis.PropType<Record<string, any>>;
|
|
89
|
+
required: true;
|
|
90
|
+
};
|
|
91
|
+
/**
|
|
92
|
+
* 组件属性
|
|
93
|
+
*/
|
|
94
|
+
componentProps: {
|
|
95
|
+
type: globalThis.PropType<componentType>;
|
|
96
|
+
required: true;
|
|
97
|
+
};
|
|
98
|
+
/**
|
|
99
|
+
* 是否项目说明/答案解析
|
|
100
|
+
*/
|
|
101
|
+
showDescription: {
|
|
102
|
+
type: BooleanConstructor;
|
|
103
|
+
default: boolean;
|
|
104
|
+
};
|
|
105
|
+
}>> & {
|
|
106
|
+
"onUpdate:datas"?: ((...args: any[]) => any) | undefined;
|
|
107
|
+
}, {
|
|
108
|
+
disabled: boolean;
|
|
109
|
+
readonly: boolean;
|
|
110
|
+
showDescription: boolean;
|
|
111
|
+
isDesigner: boolean;
|
|
112
|
+
}, {}>;
|
|
113
|
+
export default _default;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { datetimeTypeView } from '../../../types/datetimeTypeView';
|
|
2
|
+
export declare function useDatetimeType(): {
|
|
3
|
+
/**
|
|
4
|
+
* @description: 获取日期时间的所有类型
|
|
5
|
+
*/
|
|
6
|
+
getDatetimeTypes: () => datetimeTypeView[];
|
|
7
|
+
/**
|
|
8
|
+
* @description: 获取日期时间的所有类型
|
|
9
|
+
*/
|
|
10
|
+
getTimeTypes: () => datetimeTypeView[];
|
|
11
|
+
/**
|
|
12
|
+
* @description: 判断是否为日期时间属性
|
|
13
|
+
*/
|
|
14
|
+
isDatetimeProp: (prop: string) => boolean;
|
|
15
|
+
};
|
|
@@ -2,4 +2,7 @@ import { default as checkbox } from './checkbox/index';
|
|
|
2
2
|
import { default as input } from './input/index';
|
|
3
3
|
import { default as label } from './label/index';
|
|
4
4
|
import { default as radio } from './radio/index';
|
|
5
|
-
|
|
5
|
+
import { default as date } from './date/index';
|
|
6
|
+
import { default as time } from './time/index';
|
|
7
|
+
import { default as inputNumber } from './inputNumber/index';
|
|
8
|
+
export { label, input, radio, checkbox, date, time, inputNumber };
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { default as baseComponent } from '../../../types/baseComponent';
|
|
2
|
+
import { baseAttribute, editAttribute, inputNumberAttribute } from '../../../types/componentAttribute/index';
|
|
3
|
+
declare class component extends baseComponent {
|
|
4
|
+
/**
|
|
5
|
+
* @description: 构造器
|
|
6
|
+
*/
|
|
7
|
+
constructor();
|
|
8
|
+
/**
|
|
9
|
+
* @description: 获取校验规则
|
|
10
|
+
* @param componentProps
|
|
11
|
+
* @return
|
|
12
|
+
*/
|
|
13
|
+
getRules(componentProps: Record<string, any>): ({
|
|
14
|
+
required: any;
|
|
15
|
+
message: any;
|
|
16
|
+
pattern?: undefined;
|
|
17
|
+
} | {
|
|
18
|
+
pattern: any;
|
|
19
|
+
message: any;
|
|
20
|
+
required?: undefined;
|
|
21
|
+
})[];
|
|
22
|
+
/**
|
|
23
|
+
* @description: 获取过滤条件属性
|
|
24
|
+
* @param componentProps
|
|
25
|
+
* @return
|
|
26
|
+
*/
|
|
27
|
+
getFilterConditionProps(componentProps: Record<string, any>): {
|
|
28
|
+
type: string;
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* @description: 获取组件要排除的过滤条件集合
|
|
32
|
+
*/
|
|
33
|
+
getExcludeFilterConditions(): ("NOT_EQUALS" | "INCLUDES" | "EXCLUDE" | "EMPTY" | "EQUALS" | "GREATER_THAN" | "LESS_THAN" | "GREATER_THAN_OR_EQUALS" | "LESS_THAN_OR_EQUALS" | "RANGE")[];
|
|
34
|
+
}
|
|
35
|
+
declare const _default: {
|
|
36
|
+
component: typeof component;
|
|
37
|
+
renderer: import('vue').DefineComponent<{
|
|
38
|
+
isDesigner: {
|
|
39
|
+
type: BooleanConstructor;
|
|
40
|
+
default: boolean;
|
|
41
|
+
};
|
|
42
|
+
disabled: {
|
|
43
|
+
type: BooleanConstructor;
|
|
44
|
+
default: boolean;
|
|
45
|
+
};
|
|
46
|
+
readonly: {
|
|
47
|
+
type: BooleanConstructor;
|
|
48
|
+
default: boolean;
|
|
49
|
+
};
|
|
50
|
+
componentID: {
|
|
51
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
52
|
+
required: true;
|
|
53
|
+
};
|
|
54
|
+
datas: {
|
|
55
|
+
type: globalThis.PropType<Record<string, any>>;
|
|
56
|
+
required: true;
|
|
57
|
+
};
|
|
58
|
+
componentProps: {
|
|
59
|
+
type: globalThis.PropType<baseAttribute & editAttribute & inputNumberAttribute>;
|
|
60
|
+
required: true;
|
|
61
|
+
};
|
|
62
|
+
showDescription: {
|
|
63
|
+
type: BooleanConstructor;
|
|
64
|
+
default: boolean;
|
|
65
|
+
};
|
|
66
|
+
}, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
67
|
+
"update:datas": (...args: any[]) => void;
|
|
68
|
+
}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
69
|
+
isDesigner: {
|
|
70
|
+
type: BooleanConstructor;
|
|
71
|
+
default: boolean;
|
|
72
|
+
};
|
|
73
|
+
disabled: {
|
|
74
|
+
type: BooleanConstructor;
|
|
75
|
+
default: boolean;
|
|
76
|
+
};
|
|
77
|
+
readonly: {
|
|
78
|
+
type: BooleanConstructor;
|
|
79
|
+
default: boolean;
|
|
80
|
+
};
|
|
81
|
+
componentID: {
|
|
82
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
83
|
+
required: true;
|
|
84
|
+
};
|
|
85
|
+
datas: {
|
|
86
|
+
type: globalThis.PropType<Record<string, any>>;
|
|
87
|
+
required: true;
|
|
88
|
+
};
|
|
89
|
+
componentProps: {
|
|
90
|
+
type: globalThis.PropType<baseAttribute & editAttribute & inputNumberAttribute>;
|
|
91
|
+
required: true;
|
|
92
|
+
};
|
|
93
|
+
showDescription: {
|
|
94
|
+
type: BooleanConstructor;
|
|
95
|
+
default: boolean;
|
|
96
|
+
};
|
|
97
|
+
}>> & {
|
|
98
|
+
"onUpdate:datas"?: ((...args: any[]) => any) | undefined;
|
|
99
|
+
}, {
|
|
100
|
+
disabled: boolean;
|
|
101
|
+
readonly: boolean;
|
|
102
|
+
showDescription: boolean;
|
|
103
|
+
isDesigner: boolean;
|
|
104
|
+
}, {}>;
|
|
105
|
+
propEditor: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{}>>, {}, {}>;
|
|
106
|
+
};
|
|
107
|
+
export default _default;
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { baseAttribute, editAttribute, inputNumberAttribute } from '../../../types/componentAttribute/index';
|
|
2
|
+
type componentType = baseAttribute & editAttribute & inputNumberAttribute;
|
|
3
|
+
declare const _default: import('vue').DefineComponent<{
|
|
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
|
+
* 是否只读
|
|
20
|
+
*/
|
|
21
|
+
readonly: {
|
|
22
|
+
type: BooleanConstructor;
|
|
23
|
+
default: boolean;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* 组件ID
|
|
27
|
+
*/
|
|
28
|
+
componentID: {
|
|
29
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
30
|
+
required: true;
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* 表单数据
|
|
34
|
+
*/
|
|
35
|
+
datas: {
|
|
36
|
+
type: globalThis.PropType<Record<string, any>>;
|
|
37
|
+
required: true;
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* 组件属性
|
|
41
|
+
*/
|
|
42
|
+
componentProps: {
|
|
43
|
+
type: globalThis.PropType<componentType>;
|
|
44
|
+
required: true;
|
|
45
|
+
};
|
|
46
|
+
/**
|
|
47
|
+
* 是否项目说明/答案解析
|
|
48
|
+
*/
|
|
49
|
+
showDescription: {
|
|
50
|
+
type: BooleanConstructor;
|
|
51
|
+
default: boolean;
|
|
52
|
+
};
|
|
53
|
+
}, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
54
|
+
"update:datas": (...args: any[]) => void;
|
|
55
|
+
}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
56
|
+
/**
|
|
57
|
+
* 是否为设计模式
|
|
58
|
+
*/
|
|
59
|
+
isDesigner: {
|
|
60
|
+
type: BooleanConstructor;
|
|
61
|
+
default: boolean;
|
|
62
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
* 是否禁用
|
|
65
|
+
*/
|
|
66
|
+
disabled: {
|
|
67
|
+
type: BooleanConstructor;
|
|
68
|
+
default: boolean;
|
|
69
|
+
};
|
|
70
|
+
/**
|
|
71
|
+
* 是否只读
|
|
72
|
+
*/
|
|
73
|
+
readonly: {
|
|
74
|
+
type: BooleanConstructor;
|
|
75
|
+
default: boolean;
|
|
76
|
+
};
|
|
77
|
+
/**
|
|
78
|
+
* 组件ID
|
|
79
|
+
*/
|
|
80
|
+
componentID: {
|
|
81
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
82
|
+
required: true;
|
|
83
|
+
};
|
|
84
|
+
/**
|
|
85
|
+
* 表单数据
|
|
86
|
+
*/
|
|
87
|
+
datas: {
|
|
88
|
+
type: globalThis.PropType<Record<string, any>>;
|
|
89
|
+
required: true;
|
|
90
|
+
};
|
|
91
|
+
/**
|
|
92
|
+
* 组件属性
|
|
93
|
+
*/
|
|
94
|
+
componentProps: {
|
|
95
|
+
type: globalThis.PropType<componentType>;
|
|
96
|
+
required: true;
|
|
97
|
+
};
|
|
98
|
+
/**
|
|
99
|
+
* 是否项目说明/答案解析
|
|
100
|
+
*/
|
|
101
|
+
showDescription: {
|
|
102
|
+
type: BooleanConstructor;
|
|
103
|
+
default: boolean;
|
|
104
|
+
};
|
|
105
|
+
}>> & {
|
|
106
|
+
"onUpdate:datas"?: ((...args: any[]) => any) | undefined;
|
|
107
|
+
}, {
|
|
108
|
+
disabled: boolean;
|
|
109
|
+
readonly: boolean;
|
|
110
|
+
showDescription: boolean;
|
|
111
|
+
isDesigner: boolean;
|
|
112
|
+
}, {}>;
|
|
113
|
+
export default _default;
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { default as baseComponent } from '../../../types/baseComponent';
|
|
2
|
+
import { baseAttribute, editAttribute, datetimeAttribute } from '../../../types/componentAttribute/index';
|
|
3
|
+
declare class component extends baseComponent {
|
|
4
|
+
/**
|
|
5
|
+
* @description: 构造器
|
|
6
|
+
*/
|
|
7
|
+
constructor();
|
|
8
|
+
/**
|
|
9
|
+
* @description: 获取校验规则
|
|
10
|
+
* @param componentProps
|
|
11
|
+
* @return
|
|
12
|
+
*/
|
|
13
|
+
getRules(componentProps: Record<string, any>): {
|
|
14
|
+
required: any;
|
|
15
|
+
message: any;
|
|
16
|
+
}[];
|
|
17
|
+
/**
|
|
18
|
+
* @description: 获取过滤条件属性
|
|
19
|
+
* @param componentProps
|
|
20
|
+
* @return
|
|
21
|
+
*/
|
|
22
|
+
getFilterConditionProps(componentProps: Record<string, any>): {
|
|
23
|
+
type: string;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* @description: 获取组件要排除的过滤条件集合
|
|
27
|
+
*/
|
|
28
|
+
getExcludeFilterConditions(): ("NOT_EQUALS" | "INCLUDES" | "EXCLUDE" | "EMPTY" | "EQUALS" | "GREATER_THAN" | "LESS_THAN" | "GREATER_THAN_OR_EQUALS" | "LESS_THAN_OR_EQUALS" | "RANGE")[];
|
|
29
|
+
}
|
|
30
|
+
declare const _default: {
|
|
31
|
+
component: typeof component;
|
|
32
|
+
renderer: import('vue').DefineComponent<{
|
|
33
|
+
isDesigner: {
|
|
34
|
+
type: BooleanConstructor;
|
|
35
|
+
default: boolean;
|
|
36
|
+
};
|
|
37
|
+
disabled: {
|
|
38
|
+
type: BooleanConstructor;
|
|
39
|
+
default: boolean;
|
|
40
|
+
};
|
|
41
|
+
readonly: {
|
|
42
|
+
type: BooleanConstructor;
|
|
43
|
+
default: boolean;
|
|
44
|
+
};
|
|
45
|
+
componentID: {
|
|
46
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
47
|
+
required: true;
|
|
48
|
+
};
|
|
49
|
+
datas: {
|
|
50
|
+
type: globalThis.PropType<Record<string, any>>;
|
|
51
|
+
required: true;
|
|
52
|
+
};
|
|
53
|
+
componentProps: {
|
|
54
|
+
type: globalThis.PropType<baseAttribute & editAttribute & datetimeAttribute>;
|
|
55
|
+
required: true;
|
|
56
|
+
};
|
|
57
|
+
showDescription: {
|
|
58
|
+
type: BooleanConstructor;
|
|
59
|
+
default: boolean;
|
|
60
|
+
};
|
|
61
|
+
}, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
62
|
+
"update:datas": (...args: any[]) => void;
|
|
63
|
+
}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
64
|
+
isDesigner: {
|
|
65
|
+
type: BooleanConstructor;
|
|
66
|
+
default: boolean;
|
|
67
|
+
};
|
|
68
|
+
disabled: {
|
|
69
|
+
type: BooleanConstructor;
|
|
70
|
+
default: boolean;
|
|
71
|
+
};
|
|
72
|
+
readonly: {
|
|
73
|
+
type: BooleanConstructor;
|
|
74
|
+
default: boolean;
|
|
75
|
+
};
|
|
76
|
+
componentID: {
|
|
77
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
78
|
+
required: true;
|
|
79
|
+
};
|
|
80
|
+
datas: {
|
|
81
|
+
type: globalThis.PropType<Record<string, any>>;
|
|
82
|
+
required: true;
|
|
83
|
+
};
|
|
84
|
+
componentProps: {
|
|
85
|
+
type: globalThis.PropType<baseAttribute & editAttribute & datetimeAttribute>;
|
|
86
|
+
required: true;
|
|
87
|
+
};
|
|
88
|
+
showDescription: {
|
|
89
|
+
type: BooleanConstructor;
|
|
90
|
+
default: boolean;
|
|
91
|
+
};
|
|
92
|
+
}>> & {
|
|
93
|
+
"onUpdate:datas"?: ((...args: any[]) => any) | undefined;
|
|
94
|
+
}, {
|
|
95
|
+
disabled: boolean;
|
|
96
|
+
readonly: boolean;
|
|
97
|
+
showDescription: boolean;
|
|
98
|
+
isDesigner: boolean;
|
|
99
|
+
}, {}>;
|
|
100
|
+
propEditor: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{}>>, {}, {}>;
|
|
101
|
+
};
|
|
102
|
+
export default _default;
|