ronds-metadata 1.2.9 → 1.2.10
Sign up to get free protection for your applications and to get access to all the features.
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Table.d.ts +2 -0
- package/es/comps/FormGenerator/comps/Canvas/core/index.less +23 -23
- package/es/comps/FormGenerator/settings/index.d.ts +652 -86
- package/es/comps/MetadataForm/index.less +1 -1
- package/package.json +1 -1
- package/es/api/index.js +0 -249
- package/es/comps/DynamicPorts/comps/ContextMenu.js +0 -44
- package/es/comps/DynamicPorts/comps/DragNode.js +0 -55
- package/es/comps/DynamicPorts/comps/GraphHandler/index.js +0 -51
- package/es/comps/DynamicPorts/comps/NodeElement.js +0 -30
- package/es/comps/DynamicPorts/comps/contextMenu/EdgeContextMenu/index.js +0 -42
- package/es/comps/DynamicPorts/comps/contextMenu/GraphContextMenu/index.js +0 -40
- package/es/comps/DynamicPorts/comps/contextMenu/NodeContextMenu/index.js +0 -55
- package/es/comps/DynamicPorts/comps/shape/connector.js +0 -19
- package/es/comps/DynamicPorts/comps/shape/edge.js +0 -91
- package/es/comps/DynamicPorts/comps/shape/node.js +0 -190
- package/es/comps/DynamicPorts/constant/index.js +0 -19
- package/es/comps/DynamicPorts/graph.js +0 -697
- package/es/comps/DynamicPorts/index.js +0 -143
- package/es/comps/DynamicPorts/interface.js +0 -6
- package/es/comps/DynamicPorts/utils.js +0 -127
- package/es/comps/Editable/DataCell/ButtonCell.js +0 -45
- package/es/comps/Editable/DataCell/ColorPicker.js +0 -33
- package/es/comps/Editable/DataCell/Input.js +0 -54
- package/es/comps/Editable/DataCell/Number.js +0 -44
- package/es/comps/Editable/DataCell/Select.js +0 -48
- package/es/comps/Editable/DataCell/Switch.js +0 -33
- package/es/comps/Editable/comps/EditableAction.js +0 -110
- package/es/comps/Editable/comps/EditableCell.js +0 -108
- package/es/comps/Editable/comps/EditableHeardCell.js +0 -172
- package/es/comps/Editable/comps/EditableRow.js +0 -118
- package/es/comps/Editable/comps/Texty.js +0 -277
- package/es/comps/Editable/index.js +0 -385
- package/es/comps/Editable/interface.js +0 -8
- package/es/comps/Editable/utils.js +0 -46
- package/es/comps/FileView/index.js +0 -198
- package/es/comps/FormGenerator/Provider.js +0 -8
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Checkbox.js +0 -17
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Color.js +0 -17
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Date.js +0 -16
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Input.js +0 -17
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/List.js +0 -50
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/MutiSelect.js +0 -55
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Number.js +0 -14
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Obj.js +0 -50
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Password.js +0 -17
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Radio.js +0 -17
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Select.js +0 -55
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Switch.js +0 -13
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/TextArea.js +0 -14
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Upload.js +0 -17
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/HOC/index.js +0 -250
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/index.js +0 -60
- package/es/comps/FormGenerator/comps/Canvas/core/index.js +0 -313
- package/es/comps/FormGenerator/comps/Canvas/index.js +0 -118
- package/es/comps/FormGenerator/comps/Settings/index.js +0 -150
- package/es/comps/FormGenerator/comps/Sidebar/Elements.js +0 -48
- package/es/comps/FormGenerator/comps/Sidebar/index.js +0 -37
- package/es/comps/FormGenerator/index.js +0 -67
- package/es/comps/FormGenerator/settings/index.js +0 -307
- package/es/comps/FormGenerator/settings/ruleConfig.js +0 -557
- package/es/comps/FormGenerator/transformer.js +0 -223
- package/es/comps/Icons/index.js +0 -23
- package/es/comps/JsonEdit/constant/index.js +0 -87
- package/es/comps/JsonEdit/index.js +0 -221
- package/es/comps/JsonView/index.js +0 -109
- package/es/comps/MdEdit/index.js +0 -41
- package/es/comps/MdNavbar/index.js +0 -180
- package/es/comps/MdNavbar/utils.js +0 -34
- package/es/comps/MdView/index.js +0 -70
- package/es/comps/MetadataEdit/components/MetaFieldsEdit.js +0 -419
- package/es/comps/MetadataEdit/components/MetaPropsEdit.js +0 -368
- package/es/comps/MetadataEdit/constant/index.js +0 -69
- package/es/comps/MetadataEdit/hooks/index.js +0 -43
- package/es/comps/MetadataEdit/index.js +0 -255
- package/es/comps/MetadataEditV2/components/MetaFieldsEdit.js +0 -237
- package/es/comps/MetadataEditV2/components/MetaPropsEdit.js +0 -367
- package/es/comps/MetadataEditV2/constant/index.js +0 -69
- package/es/comps/MetadataEditV2/hooks/index.js +0 -43
- package/es/comps/MetadataEditV2/index.js +0 -298
- package/es/comps/MetadataForm/DataCell/Array.js +0 -147
- package/es/comps/MetadataForm/DataCell/Input.js +0 -199
- package/es/comps/MetadataForm/DataCell/Number.js +0 -130
- package/es/comps/MetadataForm/DataCell/Ref.js +0 -325
- package/es/comps/MetadataForm/DataCell/Select.js +0 -518
- package/es/comps/MetadataForm/DataCell/Switch.js +0 -115
- package/es/comps/MetadataForm/DataCell/layout/TableArray.js +0 -359
- package/es/comps/MetadataForm/HOC/index.js +0 -125
- package/es/comps/MetadataForm/constants.js +0 -11
- package/es/comps/MetadataForm/hooks/index.js +0 -128
- package/es/comps/MetadataForm/index.js +0 -268
- package/es/comps/MetadataForm/interface.js +0 -8
- package/es/comps/MetadataForm/utils.js +0 -112
- package/es/comps/locales/en-US.js +0 -24
- package/es/comps/locales/index.js +0 -8
- package/es/comps/locales/zh-CN.js +0 -24
- package/es/config.js +0 -50
- package/es/framework/graph/index.js +0 -515
- package/es/framework/hooks/use-async-memo.js +0 -32
- package/es/framework/hooks/use-sync-scroll.js +0 -106
- package/es/framework/http/cache.js +0 -137
- package/es/framework/http/cancel.js +0 -44
- package/es/framework/http/index.js +0 -392
- package/es/framework/http/msgpack.js +0 -34
- package/es/framework/http/msgpack5/index.js +0 -84
- package/es/framework/http/msgpack5/lib/codecs/DateCodec.js +0 -71
- package/es/framework/http/msgpack5/lib/decoder.js +0 -287
- package/es/framework/http/msgpack5/lib/encoder.js +0 -252
- package/es/framework/http/msgpack5/lib/helpers.js +0 -23
- package/es/framework/http/msgpack5/lib/streams.js +0 -93
- package/es/framework/http/types.js +0 -1
- package/es/framework/libs/jquery.min.js +0 -4022
- package/es/framework/locale/dil8/di18n.js +0 -132
- package/es/framework/locale/dil8/index.js +0 -3
- package/es/framework/locale/dil8/translate.js +0 -76
- package/es/framework/locale/dil8/util.js +0 -17
- package/es/framework/locale/index.js +0 -26
- package/es/framework/metadata/MetadataService.js +0 -169
- package/es/framework/metadata/index.js +0 -384
- package/es/framework/rxjs-hooks/useMemoSubject.js +0 -16
- package/es/framework/rxjs-hooks/useObservable.js +0 -22
- package/es/framework/rxjs-hooks/useObservableState.js +0 -45
- package/es/index.js +0 -27
- package/es/utils.js +0 -138
@@ -1,67 +0,0 @@
|
|
1
|
-
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
2
|
-
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
3
|
-
|
4
|
-
/*
|
5
|
-
* @Author: wangxian
|
6
|
-
* @Date: 2023-02-04 13:45:31
|
7
|
-
* @LastEditTime: 2023-02-24 16:33:24
|
8
|
-
*/
|
9
|
-
import React from 'react';
|
10
|
-
import { DndProvider } from 'react-dnd';
|
11
|
-
import { HTML5Backend } from 'react-dnd-html5-backend';
|
12
|
-
import Canvas from './comps/Canvas';
|
13
|
-
import Settings from './comps/Settings';
|
14
|
-
import Sidebar from './comps/Sidebar';
|
15
|
-
import './index.less';
|
16
|
-
import { FGCtx } from './Provider';
|
17
|
-
import useMemoSubject from '../../framework/rxjs-hooks/useMemoSubject';
|
18
|
-
import useObservable from '../../framework/rxjs-hooks/useObservable';
|
19
|
-
import { streamEventType } from './settings';
|
20
|
-
import { transSchema2FG } from './transformer';
|
21
|
-
|
22
|
-
var FormGenerator = function FormGenerator(props) {
|
23
|
-
var defaultSchema = props.defaultSchema;
|
24
|
-
var FGStream = useMemoSubject();
|
25
|
-
|
26
|
-
var _React$useState = React.useState({}),
|
27
|
-
_React$useState2 = _slicedToArray(_React$useState, 2),
|
28
|
-
types = _React$useState2[0],
|
29
|
-
setTypes = _React$useState2[1];
|
30
|
-
|
31
|
-
var typesRef = React.useRef({});
|
32
|
-
React.useEffect(function () {
|
33
|
-
if (defaultSchema) {
|
34
|
-
var defaultValue = transSchema2FG(defaultSchema);
|
35
|
-
FGStream.next({
|
36
|
-
type: streamEventType.onDefaultValue,
|
37
|
-
payload: _objectSpread({}, defaultValue)
|
38
|
-
});
|
39
|
-
}
|
40
|
-
}, [defaultSchema]);
|
41
|
-
var processFgStreamData = React.useCallback(function (p) {
|
42
|
-
switch (p === null || p === void 0 ? void 0 : p.type) {
|
43
|
-
case streamEventType.onTypesChange:
|
44
|
-
if (p === null || p === void 0 ? void 0 : p.payload) {
|
45
|
-
typesRef.current = _objectSpread(_objectSpread({}, typesRef.current), p === null || p === void 0 ? void 0 : p.payload);
|
46
|
-
setTypes(_objectSpread({}, typesRef.current));
|
47
|
-
}
|
48
|
-
|
49
|
-
break;
|
50
|
-
}
|
51
|
-
}, []);
|
52
|
-
useObservable(function (p) {
|
53
|
-
processFgStreamData(p);
|
54
|
-
}, [FGStream]);
|
55
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(FGCtx.Provider, {
|
56
|
-
value: {
|
57
|
-
fgStream: FGStream,
|
58
|
-
types: types
|
59
|
-
}
|
60
|
-
}, /*#__PURE__*/React.createElement(DndProvider, {
|
61
|
-
backend: HTML5Backend
|
62
|
-
}, /*#__PURE__*/React.createElement("div", {
|
63
|
-
className: "form-generator-container"
|
64
|
-
}, /*#__PURE__*/React.createElement(Sidebar, null), /*#__PURE__*/React.createElement(Canvas, null), /*#__PURE__*/React.createElement(Settings, null)))));
|
65
|
-
};
|
66
|
-
|
67
|
-
export default FormGenerator;
|
@@ -1,307 +0,0 @@
|
|
1
|
-
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
2
|
-
|
3
|
-
/*
|
4
|
-
* @Author: wangxian
|
5
|
-
* @Date: 2023-02-06 08:24:17
|
6
|
-
* @LastEditTime: 2023-02-24 17:01:30
|
7
|
-
*/
|
8
|
-
import { RefRule, Rule } from './ruleConfig';
|
9
|
-
export var inputSchema = [{
|
10
|
-
id: 'inputSchema',
|
11
|
-
type: 'object',
|
12
|
-
properties: [Rule.common.id, Rule.common.label, Rule.common.color, Rule.common.colSpan, Rule.common.defaultValue, Rule.common.help, Rule.common.tooltip, Rule.common.placeholder, Rule.common.require, Rule.common.disabled, Rule.common.hidden, RefRule.common.depend.props, RefRule.common.rules.props],
|
13
|
-
types: [].concat(_toConsumableArray(RefRule.common.depend.types), _toConsumableArray(RefRule.common.rules.types))
|
14
|
-
}];
|
15
|
-
export var textareaSchema = [{
|
16
|
-
id: 'textareaSchema',
|
17
|
-
type: 'object',
|
18
|
-
properties: [Rule.common.id, Rule.common.label, Rule.common.color, Rule.common.colSpan, Rule.common.defaultValue, Rule.common.help, Rule.common.tooltip, Rule.common.placeholder, Rule.common.require, Rule.common.disabled, Rule.common.hidden, RefRule.common.depend.props, RefRule.common.rules.props],
|
19
|
-
types: [].concat(_toConsumableArray(RefRule.common.depend.types), _toConsumableArray(RefRule.common.rules.types))
|
20
|
-
}];
|
21
|
-
export var dateSchema = [{
|
22
|
-
id: 'dateSchema',
|
23
|
-
type: 'object',
|
24
|
-
properties: [Rule.common.id, Rule.common.label, Rule.common.color, Rule.common.colSpan, Rule.common.defaultValue, Rule.common.help, Rule.common.tooltip, Rule.common.placeholder, Rule.common.require, Rule.common.disabled, Rule.common.hidden, RefRule.common.depend.props, RefRule.common.rules.props, RefRule.text.props],
|
25
|
-
types: [].concat(_toConsumableArray(RefRule.common.depend.types), _toConsumableArray(RefRule.text.types), _toConsumableArray(RefRule.common.rules.types))
|
26
|
-
}];
|
27
|
-
export var numberSchema = [{
|
28
|
-
id: 'numberSchema',
|
29
|
-
type: 'object',
|
30
|
-
properties: [Rule.common.id, Rule.common.label, Rule.common.color, Rule.common.colSpan, Rule.common.defaultValue, Rule.common.help, Rule.common.tooltip, Rule.common.placeholder, Rule.common.require, Rule.common.disabled, Rule.common.hidden, RefRule.common.depend.props, RefRule.common.rules.props],
|
31
|
-
types: [].concat(_toConsumableArray(RefRule.common.depend.types), _toConsumableArray(RefRule.common.rules.types))
|
32
|
-
}];
|
33
|
-
export var switchSchema = [{
|
34
|
-
id: 'switchSchema',
|
35
|
-
type: 'object',
|
36
|
-
properties: [Rule.common.id, Rule.common.label, Rule.common.color, Rule.common.colSpan, Rule.common.defaultValue, Rule.common.help, Rule.common.tooltip, Rule.common.require, Rule.common.disabled, Rule.common.hidden, RefRule.common.depend.props],
|
37
|
-
types: _toConsumableArray(RefRule.common.depend.types)
|
38
|
-
}];
|
39
|
-
export var selectSchema = [{
|
40
|
-
id: 'selectSchema',
|
41
|
-
type: 'object',
|
42
|
-
properties: [Rule.common.id, Rule.common.label, RefRule.enum.props, Rule.common.color, Rule.common.colSpan, Rule.common.defaultValue, Rule.common.help, Rule.common.tooltip, Rule.common.require, Rule.common.disabled, Rule.common.hidden, RefRule.common.depend.props],
|
43
|
-
types: [].concat(_toConsumableArray(RefRule.common.depend.types), _toConsumableArray(RefRule.enum.types))
|
44
|
-
}];
|
45
|
-
export var mutiSelectSchema = [{
|
46
|
-
id: 'mutiSelectSchema',
|
47
|
-
type: 'object',
|
48
|
-
properties: [Rule.common.id, Rule.common.label, RefRule.enum.props, Rule.common.color, Rule.common.colSpan, Rule.common.defaultValue, Rule.common.help, Rule.common.tooltip, Rule.common.require, Rule.common.disabled, Rule.common.hidden, RefRule.common.depend.props],
|
49
|
-
types: [].concat(_toConsumableArray(RefRule.common.depend.types), _toConsumableArray(RefRule.enum.types))
|
50
|
-
}];
|
51
|
-
export var settingSchema = {
|
52
|
-
input: inputSchema,
|
53
|
-
textarea: textareaSchema,
|
54
|
-
date: dateSchema,
|
55
|
-
numebr: numberSchema,
|
56
|
-
switch: switchSchema,
|
57
|
-
select: selectSchema,
|
58
|
-
mutiSelect: mutiSelectSchema
|
59
|
-
};
|
60
|
-
export var inputParam = {
|
61
|
-
type: 'text',
|
62
|
-
schema: settingSchema.input
|
63
|
-
};
|
64
|
-
export var textareaParam = {
|
65
|
-
type: 'text',
|
66
|
-
schema: settingSchema.textarea,
|
67
|
-
rule: {
|
68
|
-
type: 'textarea'
|
69
|
-
}
|
70
|
-
};
|
71
|
-
export var dateParam = {
|
72
|
-
type: 'text',
|
73
|
-
schema: settingSchema.date,
|
74
|
-
rule: {
|
75
|
-
type: 'datePicker'
|
76
|
-
}
|
77
|
-
};
|
78
|
-
export var numberParam = {
|
79
|
-
type: 'number',
|
80
|
-
schema: settingSchema.numebr
|
81
|
-
};
|
82
|
-
export var switchParam = {
|
83
|
-
type: 'bool',
|
84
|
-
schema: settingSchema.switch
|
85
|
-
};
|
86
|
-
export var selectParam = {
|
87
|
-
type: 'enum',
|
88
|
-
schema: settingSchema.select
|
89
|
-
};
|
90
|
-
export var mutiSelectParam = {
|
91
|
-
type: 'enum',
|
92
|
-
schema: settingSchema.mutiSelect,
|
93
|
-
rule: {
|
94
|
-
isMutiple: true
|
95
|
-
}
|
96
|
-
};
|
97
|
-
export var colorParam = {
|
98
|
-
type: 'text',
|
99
|
-
schema: settingSchema.textarea,
|
100
|
-
rule: {
|
101
|
-
type: 'colorPicker'
|
102
|
-
}
|
103
|
-
}; // 基础组件列表渲染
|
104
|
-
|
105
|
-
export var basicComps = [{
|
106
|
-
id: 'input',
|
107
|
-
name: '输入框',
|
108
|
-
type: 'input',
|
109
|
-
param: inputParam
|
110
|
-
}, {
|
111
|
-
id: 'textarea',
|
112
|
-
name: '文本框',
|
113
|
-
type: 'textarea',
|
114
|
-
param: textareaParam
|
115
|
-
}, {
|
116
|
-
id: 'date',
|
117
|
-
name: '日期选择',
|
118
|
-
type: 'date',
|
119
|
-
param: dateParam
|
120
|
-
}, {
|
121
|
-
id: 'number',
|
122
|
-
name: '数字输入框',
|
123
|
-
type: 'number',
|
124
|
-
param: numberParam
|
125
|
-
}, {
|
126
|
-
id: 'switch',
|
127
|
-
name: '开关',
|
128
|
-
type: 'switch',
|
129
|
-
param: switchParam
|
130
|
-
}, {
|
131
|
-
id: 'select',
|
132
|
-
name: '下拉单选',
|
133
|
-
type: 'select',
|
134
|
-
param: selectParam
|
135
|
-
}, {
|
136
|
-
id: 'mutiSelect',
|
137
|
-
name: '下拉多选',
|
138
|
-
type: 'mutiSelect',
|
139
|
-
param: mutiSelectParam
|
140
|
-
}]; // 基础组件列表渲染
|
141
|
-
|
142
|
-
export var complexComps = [{
|
143
|
-
id: 'color',
|
144
|
-
name: '颜色选择',
|
145
|
-
type: 'color',
|
146
|
-
param: colorParam
|
147
|
-
}, {
|
148
|
-
id: 'password',
|
149
|
-
name: '密码框',
|
150
|
-
type: 'password',
|
151
|
-
param: inputParam
|
152
|
-
}, {
|
153
|
-
id: 'upload',
|
154
|
-
name: '上传',
|
155
|
-
type: 'upload',
|
156
|
-
param: textareaParam
|
157
|
-
}, {
|
158
|
-
id: 'checkbox',
|
159
|
-
name: '多选框',
|
160
|
-
type: 'checkbox',
|
161
|
-
param: dateParam
|
162
|
-
}, {
|
163
|
-
id: 'radio',
|
164
|
-
name: '单选框',
|
165
|
-
type: 'radio',
|
166
|
-
param: numberParam
|
167
|
-
}];
|
168
|
-
export var objParam = {
|
169
|
-
type: 'ref',
|
170
|
-
schema: settingSchema.input
|
171
|
-
};
|
172
|
-
export var listParam = {
|
173
|
-
type: 'array',
|
174
|
-
schema: settingSchema.input
|
175
|
-
}; // 布局组件列表渲染
|
176
|
-
|
177
|
-
export var layoutComps = [{
|
178
|
-
id: 'obj',
|
179
|
-
name: '对象',
|
180
|
-
type: 'obj',
|
181
|
-
param: objParam
|
182
|
-
}, {
|
183
|
-
id: 'list',
|
184
|
-
name: '常规列表',
|
185
|
-
type: 'list',
|
186
|
-
param: listParam
|
187
|
-
}]; // Sidebar 内容配置
|
188
|
-
|
189
|
-
export var sidebarCtx = [{
|
190
|
-
name: '基础组件',
|
191
|
-
children: basicComps
|
192
|
-
}, {
|
193
|
-
name: '高级组件',
|
194
|
-
children: complexComps
|
195
|
-
}, {
|
196
|
-
name: '布局组件',
|
197
|
-
children: layoutComps
|
198
|
-
}];
|
199
|
-
export var dragItemType = 'fg-drag';
|
200
|
-
export var formSettingSchema = [{
|
201
|
-
id: 'formSettingSchema',
|
202
|
-
type: 'object',
|
203
|
-
properties: [{
|
204
|
-
id: 'colSpan',
|
205
|
-
type: 'enum',
|
206
|
-
fields: [{
|
207
|
-
id: 'Rule.Form',
|
208
|
-
refId: 'com.ronds.schema.default.Rule.Form',
|
209
|
-
type: 'ref',
|
210
|
-
value: {
|
211
|
-
'common-en-US': {
|
212
|
-
depend: {}
|
213
|
-
},
|
214
|
-
common: {
|
215
|
-
label: '整体布局',
|
216
|
-
placeholder: '默认布局(一行一列)',
|
217
|
-
depend: {}
|
218
|
-
},
|
219
|
-
enum: {
|
220
|
-
value: [{
|
221
|
-
key: 24,
|
222
|
-
value: '一行一列'
|
223
|
-
}, {
|
224
|
-
key: 12,
|
225
|
-
value: '一行两列'
|
226
|
-
}, {
|
227
|
-
key: 8,
|
228
|
-
value: '一行三列'
|
229
|
-
}, {
|
230
|
-
key: 6,
|
231
|
-
value: '一行四列'
|
232
|
-
}],
|
233
|
-
http: {}
|
234
|
-
}
|
235
|
-
}
|
236
|
-
}]
|
237
|
-
}, {
|
238
|
-
id: 'layout',
|
239
|
-
type: 'enum',
|
240
|
-
fields: [{
|
241
|
-
id: 'Rule.Form',
|
242
|
-
refId: 'com.ronds.schema.default.Rule.Form',
|
243
|
-
type: 'ref',
|
244
|
-
value: {
|
245
|
-
'common-en-US': {
|
246
|
-
depend: {}
|
247
|
-
},
|
248
|
-
common: {
|
249
|
-
label: '标签展示模式',
|
250
|
-
depend: {}
|
251
|
-
},
|
252
|
-
enum: {
|
253
|
-
value: [{
|
254
|
-
value: '同行',
|
255
|
-
key: 'horizontal'
|
256
|
-
}, {
|
257
|
-
value: '单独一行',
|
258
|
-
key: 'vertical'
|
259
|
-
}],
|
260
|
-
type: 'checkbox',
|
261
|
-
http: {}
|
262
|
-
}
|
263
|
-
}
|
264
|
-
}]
|
265
|
-
}, {
|
266
|
-
id: 'labelSpan',
|
267
|
-
type: 'number',
|
268
|
-
fields: [{
|
269
|
-
id: 'Rule.Form',
|
270
|
-
refId: 'com.ronds.schema.default.Rule.Form',
|
271
|
-
type: 'ref',
|
272
|
-
value: {
|
273
|
-
'common-en-US': {
|
274
|
-
depend: {}
|
275
|
-
},
|
276
|
-
common: {
|
277
|
-
label: '标签宽度',
|
278
|
-
help: '不填自适应默认宽度',
|
279
|
-
depend: {}
|
280
|
-
}
|
281
|
-
}
|
282
|
-
}]
|
283
|
-
}]
|
284
|
-
}];
|
285
|
-
export var formSetting = {
|
286
|
-
id: 'formSetting',
|
287
|
-
name: '表单配置',
|
288
|
-
type: 'form',
|
289
|
-
param: {
|
290
|
-
type: 'form',
|
291
|
-
schema: formSettingSchema,
|
292
|
-
defaultValue: {
|
293
|
-
colSpan: 24,
|
294
|
-
layout: 'horizontal'
|
295
|
-
}
|
296
|
-
}
|
297
|
-
};
|
298
|
-
export var streamEventType = {
|
299
|
-
onNodeSelect: 'onNodeSelect',
|
300
|
-
onNodeDelete: 'onNodeDelete',
|
301
|
-
onNodeCopy: 'onNodeCopy',
|
302
|
-
onClearCanvas: 'onClearCanvas',
|
303
|
-
onSettingValueChange: 'onSettingValueChange',
|
304
|
-
onTypesChange: 'onTypesChange',
|
305
|
-
onDropOver: 'onDropOver',
|
306
|
-
onDefaultValue: 'onDefaultValue'
|
307
|
-
};
|