@gct-paas/schema 0.1.4-dev.10
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/LICENSE +21 -0
- package/README.md +1 -0
- package/dist/index.esm.min.mjs +1250 -0
- package/dist/index.min.cjs +1 -0
- package/dist/index.system.min.js +1 -0
- package/es/constants/index.d.ts +14 -0
- package/es/constants/index.mjs +370 -0
- package/es/index.d.ts +8 -0
- package/es/index.mjs +20 -0
- package/es/interface/common/data-linkage-config.d.ts +17 -0
- package/es/interface/designer.d.ts +99 -0
- package/es/interface/index.d.ts +6 -0
- package/es/interface/modal/i-modal-body.d.ts +15 -0
- package/es/interface/modal/i-modal-bottom-button.d.ts +15 -0
- package/es/interface/modal/i-modal-footer.d.ts +15 -0
- package/es/interface/modal/i-modal-props.d.ts +26 -0
- package/es/interface/modal/i-modal.d.ts +52 -0
- package/es/interface/modal/index.d.ts +17 -0
- package/es/interface/schema/index.d.ts +2 -0
- package/es/interface/schema/widget-props/i-button-props.d.ts +170 -0
- package/es/interface/schema/widget-props/i-display-props.d.ts +48 -0
- package/es/interface/schema/widget-props/i-form-container-props.d.ts +77 -0
- package/es/interface/schema/widget-props/i-form-input-props.d.ts +409 -0
- package/es/interface/schema/widget-props/i-layout-props.d.ts +77 -0
- package/es/interface/schema/widget-props/i-search-widget-props.d.ts +126 -0
- package/es/interface/schema/widget-props/i-table-column-props.d.ts +54 -0
- package/es/interface/schema/widget-props/i-table-props.d.ts +384 -0
- package/es/interface/schema/widget-props/index.d.ts +8 -0
- package/es/interface/schema/widget-types.d.ts +370 -0
- package/es/interface/widget/i-common.d.ts +42 -0
- package/es/interface/widget/i-editors.d.ts +240 -0
- package/es/interface/widget/i-events.d.ts +55 -0
- package/es/interface/widget/i-hooks-and-misc.d.ts +59 -0
- package/es/interface/widget/i-props.d.ts +177 -0
- package/es/interface/widget/i-schemas.d.ts +135 -0
- package/es/interface/widget/i-styles.d.ts +114 -0
- package/es/interface/widget/index.d.ts +53 -0
- package/es/interface/widget-info/i-designer-item-hooks.d.ts +21 -0
- package/es/interface/widget-info/i-designer-schema-exports.d.ts +13 -0
- package/es/interface/widget-info/i-widget-info-item.d.ts +78 -0
- package/es/interface/widget-info/i-widget-info.d.ts +19 -0
- package/es/interface/widget-info/index.d.ts +4 -0
- package/es/schema/common-config/base-button-config.d.ts +3 -0
- package/es/schema/common-config/base-button-config.mjs +84 -0
- package/es/schema/common-config/button-editor-config.d.ts +4 -0
- package/es/schema/common-config/button-editor-config.mjs +206 -0
- package/es/schema/common-config/button-props-func.d.ts +5 -0
- package/es/schema/common-config/button-props-func.mjs +11 -0
- package/es/schema/common-config/common-field-editor-config.d.ts +10 -0
- package/es/schema/common-config/common-field-editor-config.mjs +61 -0
- package/es/schema/common-config/common-style.d.ts +3 -0
- package/es/schema/common-config/common-style.mjs +85 -0
- package/es/schema/common-config/display-editor-config.d.ts +3 -0
- package/es/schema/common-config/display-editor-config.mjs +89 -0
- package/es/schema/common-config/permission-editor-config.d.ts +2 -0
- package/es/schema/common-config/permission-editor-config.mjs +23 -0
- package/es/schema/index.d.ts +9 -0
- package/es/schema/modal/modal-body.d.ts +2 -0
- package/es/schema/modal/modal-body.mjs +9 -0
- package/es/schema/modal/modal-footer.d.ts +2 -0
- package/es/schema/modal/modal-footer.mjs +9 -0
- package/es/schema/modal/modal.d.ts +8 -0
- package/es/schema/modal/modal.mjs +182 -0
- package/es/types/index.d.ts +1 -0
- package/es/utils/index.d.ts +3 -0
- package/es/utils/schema/index.d.ts +45 -0
- package/es/utils/schema/index.mjs +49 -0
- package/es/utils/schema-style/index.d.ts +108 -0
- package/es/utils/schema-style/index.mjs +155 -0
- package/es/utils/widget-info/widget-info.d.ts +104 -0
- package/es/utils/widget-info/widget-info.mjs +76 -0
- package/package.json +63 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { BuiltinType } from '@gct-paas/core';
|
|
2
|
+
import { LowCodeWidget } from '../widget';
|
|
3
|
+
/**
|
|
4
|
+
* 模态框底部按钮容器接口
|
|
5
|
+
*
|
|
6
|
+
* 定义模态框底部按钮容器的结构,用于承载底部操作按钮
|
|
7
|
+
*/
|
|
8
|
+
export interface IModalBottomButton {
|
|
9
|
+
/** 唯一标识 */
|
|
10
|
+
id: string;
|
|
11
|
+
/** 组件类型 */
|
|
12
|
+
type: BuiltinType.BottomButtonContainer;
|
|
13
|
+
/** 子组件列表 */
|
|
14
|
+
children: LowCodeWidget.BasicSchema[];
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { BuiltinType } from '@gct-paas/core';
|
|
2
|
+
import { LowCodeWidget } from '../widget';
|
|
3
|
+
/**
|
|
4
|
+
* 模态框底部接口
|
|
5
|
+
*
|
|
6
|
+
* 定义模态框底部区域的结构,通常用于放置操作按钮
|
|
7
|
+
*/
|
|
8
|
+
export interface IModalFooter {
|
|
9
|
+
/** 唯一标识 */
|
|
10
|
+
id: string;
|
|
11
|
+
/** 组件类型 */
|
|
12
|
+
type: BuiltinType.MODAL_FOOTER;
|
|
13
|
+
/** 子组件列表 */
|
|
14
|
+
children: LowCodeWidget.BasicSchema[];
|
|
15
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { LowCodeWidget } from '../widget';
|
|
2
|
+
/**
|
|
3
|
+
* 模态框属性接口
|
|
4
|
+
*
|
|
5
|
+
* 定义模态框组件的所有可配置属性,包括标题、宽度、子表关联等
|
|
6
|
+
*/
|
|
7
|
+
export interface IModalProps extends LowCodeWidget.CommonProps {
|
|
8
|
+
/** 模态框标题 */
|
|
9
|
+
modalTitle?: string;
|
|
10
|
+
/** web端弹框宽度单位 */
|
|
11
|
+
unitType: 'px' | '%';
|
|
12
|
+
/** web端弹框宽度 */
|
|
13
|
+
modalWidth: number;
|
|
14
|
+
/** mobile端弹框宽度单位 */
|
|
15
|
+
mUnitType: '%';
|
|
16
|
+
/** mobile端弹框宽度 */
|
|
17
|
+
mModalWidth: number;
|
|
18
|
+
/** 是否子表下的模态框 */
|
|
19
|
+
isSubTableModal?: boolean;
|
|
20
|
+
/** 关联子表 id */
|
|
21
|
+
bindSubTableId?: string;
|
|
22
|
+
/** 子表弹框新建标题名称 */
|
|
23
|
+
createModalTitle?: string;
|
|
24
|
+
/** 子表弹框编辑标题名称 */
|
|
25
|
+
editModalTitle?: string;
|
|
26
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { BuiltinType, Platform } from '@gct-paas/core';
|
|
2
|
+
import { LowCodeWidget } from '../widget';
|
|
3
|
+
import { IModalBody } from './i-modal-body';
|
|
4
|
+
import { IModalFooter } from './i-modal-footer';
|
|
5
|
+
import { IModalBottomButton } from './i-modal-bottom-button';
|
|
6
|
+
import { IModalProps } from './i-modal-props';
|
|
7
|
+
/**
|
|
8
|
+
* 模态框主接口
|
|
9
|
+
*
|
|
10
|
+
* 定义低代码平台中模态框组件的完整结构,包括基本属性、样式、事件、子组件等
|
|
11
|
+
* 模态框由三个子区域组成:主体区域(ModalBody)、底部区域(ModalFooter)和底部按钮容器(ModalBottomButton)
|
|
12
|
+
*/
|
|
13
|
+
export interface IModal {
|
|
14
|
+
/** 唯一标识 */
|
|
15
|
+
id: string;
|
|
16
|
+
/** 系统用的name */
|
|
17
|
+
alias: string;
|
|
18
|
+
/** 名称 */
|
|
19
|
+
name: string;
|
|
20
|
+
/** 平台类型,默认是WEB,添加的时候会根据当前环境改变 */
|
|
21
|
+
platform: Platform;
|
|
22
|
+
/** 用户新建编辑的name */
|
|
23
|
+
modalName: string;
|
|
24
|
+
/** 自定义展示组件的名字 */
|
|
25
|
+
compName?: string;
|
|
26
|
+
/** 自定义展示组件key的名字 */
|
|
27
|
+
compKey?: string;
|
|
28
|
+
/** 组件类型 */
|
|
29
|
+
type: BuiltinType.MODAL;
|
|
30
|
+
/** JavaScript 代码 */
|
|
31
|
+
js: string;
|
|
32
|
+
/** CSS 样式代码 */
|
|
33
|
+
css: string;
|
|
34
|
+
/** 子组件:主体、底部、底部按钮容器 */
|
|
35
|
+
children: [IModalBody, IModalFooter, IModalBottomButton?];
|
|
36
|
+
/** 模态框属性配置 */
|
|
37
|
+
props: IModalProps;
|
|
38
|
+
/** 事件配置 */
|
|
39
|
+
events: LowCodeWidget.BasicEvents;
|
|
40
|
+
/** 国际化配置 */
|
|
41
|
+
i18n?: Record<string, string>;
|
|
42
|
+
/** 样式配置 */
|
|
43
|
+
style: Partial<LowCodeWidget.BasicStyle>;
|
|
44
|
+
/** 运行时需要的Js Code */
|
|
45
|
+
runJs?: string;
|
|
46
|
+
/** 本地数据源配置 */
|
|
47
|
+
los?: Record<string, IData>;
|
|
48
|
+
/** 图标 */
|
|
49
|
+
icon: string;
|
|
50
|
+
/** 是否是字段类型 */
|
|
51
|
+
isField: boolean;
|
|
52
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { IModal } from './i-modal';
|
|
2
|
+
import { IModalBody } from './i-modal-body';
|
|
3
|
+
import { IModalFooter } from './i-modal-footer';
|
|
4
|
+
import { IModalBottomButton } from './i-modal-bottom-button';
|
|
5
|
+
import { IModalProps } from './i-modal-props';
|
|
6
|
+
export declare namespace LowCodeModal {
|
|
7
|
+
/** 模态框主接口 */
|
|
8
|
+
type Modal = IModal;
|
|
9
|
+
/** 模态框主体接口 */
|
|
10
|
+
type ModalBody = IModalBody;
|
|
11
|
+
/** 模态框底部接口 */
|
|
12
|
+
type ModalFooter = IModalFooter;
|
|
13
|
+
/** 模态框底部按钮容器接口 */
|
|
14
|
+
type ModalBottomButton = IModalBottomButton;
|
|
15
|
+
/** 模态框属性接口 */
|
|
16
|
+
type ModalProps = IModalProps;
|
|
17
|
+
}
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
import { ButtonColorType, ButtonColorTheme, ButtonStyle, ButtonSize, AGLINE_ENUMS, operateSysEnums, PrintModeEnums, TransactionMode, KeyMode, ResetRuleType, ButtonOpeEnum, openWindowEnums, ButtonTypeEnum } from '@gct-paas/core';
|
|
2
|
+
import { LowCodeWidget } from '../..';
|
|
3
|
+
/** 按钮基础通用属性(不含 WidgetProps,用于 ButtonProps.basic) */
|
|
4
|
+
export interface ButtonBasicProps {
|
|
5
|
+
disabled: boolean;
|
|
6
|
+
buttonTheme: ButtonColorTheme;
|
|
7
|
+
buttonType: ButtonColorType;
|
|
8
|
+
icon: string;
|
|
9
|
+
iconColor: string;
|
|
10
|
+
/** 按钮样式 */
|
|
11
|
+
buttonStyle: ButtonStyle;
|
|
12
|
+
/** 开启二次确认 */
|
|
13
|
+
confirm: boolean;
|
|
14
|
+
/** 二次确认内容 */
|
|
15
|
+
confirmText: string;
|
|
16
|
+
enableCustomColor: boolean;
|
|
17
|
+
backgroundColor: string;
|
|
18
|
+
fontColor: string;
|
|
19
|
+
}
|
|
20
|
+
/** 基础按钮属性(所有按钮类的共同基类) */
|
|
21
|
+
export interface BaseButtonProps extends LowCodeWidget.WidgetProps {
|
|
22
|
+
/** 关联表单 */
|
|
23
|
+
refForm?: string;
|
|
24
|
+
/** 关联弹框 */
|
|
25
|
+
refModal?: string;
|
|
26
|
+
/** 关联列表 */
|
|
27
|
+
refList?: string;
|
|
28
|
+
/** 标题 */
|
|
29
|
+
title: string;
|
|
30
|
+
/** 二次确认 */
|
|
31
|
+
confirm?: boolean;
|
|
32
|
+
confirmText?: string;
|
|
33
|
+
/** 内置事件 */
|
|
34
|
+
innerEvent?: boolean;
|
|
35
|
+
/** 系统事件类型 */
|
|
36
|
+
sysMethedType?: operateSysEnums;
|
|
37
|
+
linkPage?: string;
|
|
38
|
+
/** 事件名称 */
|
|
39
|
+
eventName?: string;
|
|
40
|
+
icon: string;
|
|
41
|
+
iconColor: string;
|
|
42
|
+
size: ButtonSize;
|
|
43
|
+
disabled: boolean;
|
|
44
|
+
/** 是否显示按钮名称 */
|
|
45
|
+
hasText: boolean;
|
|
46
|
+
/** 是否显示图标 */
|
|
47
|
+
hasIcon: boolean;
|
|
48
|
+
/** 按钮 type */
|
|
49
|
+
type: string;
|
|
50
|
+
/** 是否是危险类型 */
|
|
51
|
+
danger: boolean;
|
|
52
|
+
/** 关联模型 */
|
|
53
|
+
model?: string;
|
|
54
|
+
i18nConfig?: string;
|
|
55
|
+
/** 按钮样式 */
|
|
56
|
+
buttonStyle?: ButtonStyle;
|
|
57
|
+
enableCustomColor: boolean;
|
|
58
|
+
backgroundColor?: string;
|
|
59
|
+
fontColor?: string;
|
|
60
|
+
/** 复制按钮需要排除的字段 */
|
|
61
|
+
excludeField?: string[];
|
|
62
|
+
/** 按钮所在位置 */
|
|
63
|
+
pos?: ButtonOpeEnum;
|
|
64
|
+
/** 将当前按钮的名称同步为弹框标题 */
|
|
65
|
+
syncBtnNameToModal?: boolean;
|
|
66
|
+
}
|
|
67
|
+
/** 普通按钮(带 basic 配置)属性 */
|
|
68
|
+
export interface ButtonProps extends LowCodeWidget.WidgetProps {
|
|
69
|
+
title: string;
|
|
70
|
+
/** 关联表单 */
|
|
71
|
+
refForm?: string;
|
|
72
|
+
/** 关联列表 */
|
|
73
|
+
refList?: string;
|
|
74
|
+
basic: ButtonBasicProps;
|
|
75
|
+
}
|
|
76
|
+
/** 流程提交按钮属性 */
|
|
77
|
+
export interface ProcessButtonProps extends BaseButtonProps {
|
|
78
|
+
refModel?: string;
|
|
79
|
+
category?: string;
|
|
80
|
+
refProcess?: string;
|
|
81
|
+
refService?: string;
|
|
82
|
+
}
|
|
83
|
+
/** 审批按钮属性 */
|
|
84
|
+
export interface approveButtonProps extends BaseButtonProps {
|
|
85
|
+
action?: ButtonTypeEnum;
|
|
86
|
+
/** 不可删除 */
|
|
87
|
+
noDelete: boolean;
|
|
88
|
+
/** 不可编辑 */
|
|
89
|
+
noEdit: boolean;
|
|
90
|
+
processId: string;
|
|
91
|
+
refForm: string;
|
|
92
|
+
}
|
|
93
|
+
/** 重置按钮属性 */
|
|
94
|
+
export interface ResetButtonProps extends BaseButtonProps {
|
|
95
|
+
resetRule: ResetRuleType;
|
|
96
|
+
}
|
|
97
|
+
/** 表格审批按钮属性 */
|
|
98
|
+
export interface TableApproveButtonProps extends BaseButtonProps {
|
|
99
|
+
/** 打开方式 */
|
|
100
|
+
openType: openWindowEnums;
|
|
101
|
+
}
|
|
102
|
+
/** 标签打印按钮属性 */
|
|
103
|
+
export interface LabelPrintProps extends BaseButtonProps {
|
|
104
|
+
/** 打印方式 */
|
|
105
|
+
printMode: PrintModeEnums;
|
|
106
|
+
/** 打印模版 key 或者模版的引用类型 */
|
|
107
|
+
printKey: string | TransactionMode;
|
|
108
|
+
/** 打印服务 key */
|
|
109
|
+
serverKey: string;
|
|
110
|
+
/** 关联模型 */
|
|
111
|
+
refModel: string;
|
|
112
|
+
/** 标签模版类型 */
|
|
113
|
+
labelMode: KeyMode;
|
|
114
|
+
/** 打印机类型 */
|
|
115
|
+
printType: KeyMode;
|
|
116
|
+
/** 打印 key */
|
|
117
|
+
printVal: string;
|
|
118
|
+
/** 网络打印机类型 或者打印机 id */
|
|
119
|
+
printRefType: string | TransactionMode;
|
|
120
|
+
/** 引用关系配置 */
|
|
121
|
+
ruleConfig: IObject;
|
|
122
|
+
/** 打印机的关联配置 */
|
|
123
|
+
printRuleConfig: IObject;
|
|
124
|
+
/** 打印字段 */
|
|
125
|
+
printField?: string;
|
|
126
|
+
/** 关联的表单 */
|
|
127
|
+
refForm?: string;
|
|
128
|
+
}
|
|
129
|
+
/** 单据打印按钮属性 */
|
|
130
|
+
export interface DocumentPrintProps extends BaseButtonProps {
|
|
131
|
+
/** 单据模板值 */
|
|
132
|
+
documentKey: string | TransactionMode;
|
|
133
|
+
/** 打印方式 */
|
|
134
|
+
printMode: PrintModeEnums;
|
|
135
|
+
refModel?: string;
|
|
136
|
+
/** 模版规则 */
|
|
137
|
+
documentType: KeyMode;
|
|
138
|
+
/** 连接规则 */
|
|
139
|
+
ruleConfig: IObject;
|
|
140
|
+
/** 打印字段 */
|
|
141
|
+
printField: string;
|
|
142
|
+
}
|
|
143
|
+
/** 导出按钮属性 */
|
|
144
|
+
export interface ExportProps extends BaseButtonProps {
|
|
145
|
+
model: string;
|
|
146
|
+
templateKey: string;
|
|
147
|
+
timeout: number;
|
|
148
|
+
/** 关联表格 */
|
|
149
|
+
refTable?: string;
|
|
150
|
+
}
|
|
151
|
+
/** 按钮容器属性 */
|
|
152
|
+
export interface ButtonContainerProps extends LowCodeWidget.WidgetProps {
|
|
153
|
+
/** 按钮样式 */
|
|
154
|
+
buttonStyle: ButtonStyle;
|
|
155
|
+
/** 对齐方式 */
|
|
156
|
+
align: AGLINE_ENUMS;
|
|
157
|
+
/** 间距 */
|
|
158
|
+
margin: number;
|
|
159
|
+
/** 尺寸 */
|
|
160
|
+
size: ButtonSize;
|
|
161
|
+
/** 所属模型 */
|
|
162
|
+
model?: string;
|
|
163
|
+
}
|
|
164
|
+
/** 流程按钮容器属性 */
|
|
165
|
+
export interface ButtonProcessContainerProps extends ButtonContainerProps {
|
|
166
|
+
/** 关联的流程标签 */
|
|
167
|
+
refForm: string;
|
|
168
|
+
/** 流程 id */
|
|
169
|
+
processId: string;
|
|
170
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { LowCodeWidget } from '../..';
|
|
2
|
+
/** 文本展示组件属性 */
|
|
3
|
+
export interface TextProps extends LowCodeWidget.WidgetProps {
|
|
4
|
+
text: string;
|
|
5
|
+
i18nConfig: string;
|
|
6
|
+
}
|
|
7
|
+
/** 图片展示组件属性 */
|
|
8
|
+
export interface GenImageProps extends LowCodeWidget.WidgetProps {
|
|
9
|
+
title: string;
|
|
10
|
+
/** 上传图片路径 */
|
|
11
|
+
imgUrl: string;
|
|
12
|
+
/** 提示文字 */
|
|
13
|
+
prompt: string;
|
|
14
|
+
/** 辅助介绍 */
|
|
15
|
+
auxiliary: string;
|
|
16
|
+
/** 宽度自适应 */
|
|
17
|
+
autoWidth: boolean;
|
|
18
|
+
/** 图片尺寸 */
|
|
19
|
+
width: number;
|
|
20
|
+
height: number;
|
|
21
|
+
maxHeight: number;
|
|
22
|
+
/** 宽高比 */
|
|
23
|
+
whRadio?: number;
|
|
24
|
+
displayLabelText: boolean;
|
|
25
|
+
}
|
|
26
|
+
/** 分割线组件属性 */
|
|
27
|
+
export interface DividerProps extends LowCodeWidget.WidgetProps {
|
|
28
|
+
title: string;
|
|
29
|
+
borderStyle: 'solid' | 'dashed' | 'dotted';
|
|
30
|
+
borderWidth: number;
|
|
31
|
+
borderColor: string;
|
|
32
|
+
}
|
|
33
|
+
/** 间距占位组件属性 */
|
|
34
|
+
export interface SpaceOccupationProps extends LowCodeWidget.WidgetProps {
|
|
35
|
+
title: string;
|
|
36
|
+
height: number;
|
|
37
|
+
}
|
|
38
|
+
/** 内嵌 iframe 组件属性 */
|
|
39
|
+
export interface IframeProps extends LowCodeWidget.WidgetProps {
|
|
40
|
+
title: string;
|
|
41
|
+
/** iframe 路径 */
|
|
42
|
+
iframeUrl: string;
|
|
43
|
+
}
|
|
44
|
+
/** 自定义代码组件属性 */
|
|
45
|
+
export interface CustomCodeProps extends LowCodeWidget.WidgetProps {
|
|
46
|
+
code?: string;
|
|
47
|
+
runtimeCode: string;
|
|
48
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { AGLINE_ENUMS } from '@gct-paas/core';
|
|
2
|
+
import { LowCodeWidget, validateRule } from '../..';
|
|
3
|
+
import { SearchWidgets } from './i-search-widget-props';
|
|
4
|
+
/** 表单容器属性 */
|
|
5
|
+
export interface FormProps extends LowCodeWidget.WidgetProps {
|
|
6
|
+
model?: string;
|
|
7
|
+
layout: 'horizontal' | 'vertical';
|
|
8
|
+
/** 自定义字段集合 */
|
|
9
|
+
customFieldList?: IObject[];
|
|
10
|
+
/** 父模型字段选择 */
|
|
11
|
+
parentModelSelection: boolean;
|
|
12
|
+
/** 父模型字段 key */
|
|
13
|
+
refParentModelkey: string;
|
|
14
|
+
readonly?: boolean;
|
|
15
|
+
validateRule?: validateRule[];
|
|
16
|
+
/** 名称支持宽度配置 */
|
|
17
|
+
hasLabelWidth?: boolean;
|
|
18
|
+
/** 名称显示类型 */
|
|
19
|
+
labelType?: string;
|
|
20
|
+
/** 名称显示宽度 */
|
|
21
|
+
labelWidth?: string | number;
|
|
22
|
+
/** 名称显示样式 */
|
|
23
|
+
overLabelDisplay?: string;
|
|
24
|
+
}
|
|
25
|
+
/** 流程表单属性(继承 FormProps) */
|
|
26
|
+
export interface FormProcessProps extends FormProps {
|
|
27
|
+
/** 流程 id */
|
|
28
|
+
processId: string;
|
|
29
|
+
}
|
|
30
|
+
/** 描述列表属性 */
|
|
31
|
+
export interface DescriptionsProps extends LowCodeWidget.WidgetProps {
|
|
32
|
+
model?: string;
|
|
33
|
+
layout: 'horizontal' | 'vertical';
|
|
34
|
+
column: number;
|
|
35
|
+
refSearch?: string;
|
|
36
|
+
/** 名称支持宽度配置 */
|
|
37
|
+
hasLabelWidth?: boolean;
|
|
38
|
+
/** 名称显示类型 */
|
|
39
|
+
labelType?: string;
|
|
40
|
+
/** 名称显示宽度 */
|
|
41
|
+
labelWidth?: string | number;
|
|
42
|
+
/** 名称显示样式 */
|
|
43
|
+
overLabelDisplay?: string;
|
|
44
|
+
}
|
|
45
|
+
/** 搜索区域容器属性 */
|
|
46
|
+
export interface SearchProps extends LowCodeWidget.WidgetProps {
|
|
47
|
+
model?: string;
|
|
48
|
+
/** 查询字段配置信息 */
|
|
49
|
+
fieldWidgets: SearchWidgets[];
|
|
50
|
+
/** 最多显示个数 */
|
|
51
|
+
maxLength: number;
|
|
52
|
+
/** 单行显示个数 */
|
|
53
|
+
rowLength: number;
|
|
54
|
+
/** 对齐方式 */
|
|
55
|
+
alignment: Exclude<AGLINE_ENUMS, AGLINE_ENUMS.BETWEEN>;
|
|
56
|
+
/** 自定义搜索规则 */
|
|
57
|
+
exp: string;
|
|
58
|
+
/** 自定义搜索条件 */
|
|
59
|
+
customHeader: boolean;
|
|
60
|
+
}
|
|
61
|
+
/** 审批历史组件属性 */
|
|
62
|
+
export interface ApprovalHistoryProps extends LowCodeWidget.WidgetProps {
|
|
63
|
+
refForm?: string;
|
|
64
|
+
title?: string;
|
|
65
|
+
showTitle?: boolean;
|
|
66
|
+
compType: 'steps' | 'table';
|
|
67
|
+
showOpinion?: boolean;
|
|
68
|
+
showSignature?: boolean;
|
|
69
|
+
/** 流程 id */
|
|
70
|
+
processId: string;
|
|
71
|
+
}
|
|
72
|
+
/** 流程图组件属性 */
|
|
73
|
+
export interface FlowDiagramProps extends LowCodeWidget.WidgetProps {
|
|
74
|
+
refForm?: string;
|
|
75
|
+
/** 流程 id */
|
|
76
|
+
processId: string;
|
|
77
|
+
}
|