amis-editor 4.2.0-beta.2 → 5.1.9
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/6dbcbb49b6fd405190a9.png +0 -0
- package/dist/component/Control/APIControl.d.ts +1101 -447
- package/dist/component/Control/ActionAPIControl.d.ts +1158 -0
- package/dist/component/Control/BadgeControl.d.ts +133 -0
- package/dist/component/Control/BaseControl.d.ts +248 -0
- package/dist/component/Control/DataBindingControl.d.ts +14 -0
- package/dist/component/Control/DataPickerControl.d.ts +13 -0
- package/dist/component/Control/DateShortCutControl.d.ts +83 -0
- package/dist/component/Control/FormulaControl.d.ts +51 -0
- package/dist/component/Control/OptionControl.d.ts +23 -34
- package/dist/component/Control/StatusControl.d.ts +39 -0
- package/dist/component/Control/SwitchMoreControl.d.ts +224 -0
- package/dist/component/Control/ValidationControl.d.ts +50 -15
- package/dist/component/Control/ValidationItem.d.ts +46 -0
- package/dist/component/Control/style-control/Background.d.ts +17 -0
- package/dist/component/Control/style-control/Border.d.ts +18 -0
- package/dist/component/Control/style-control/BoxModel.d.ts +17 -0
- package/dist/component/Control/style-control/BoxShadow.d.ts +18 -0
- package/dist/component/Control/style-control/Display.d.ts +14 -0
- package/dist/component/Control/style-control/Font.d.ts +16 -0
- package/dist/component/Control/style-control/font-family.d.ts +11 -0
- package/dist/component/Control/style-control/transformation.d.ts +29 -0
- package/dist/component/Control/style-control/types.d.ts +8 -0
- package/dist/component/Editor.d.ts +16 -0
- package/dist/component/RegionWrapper.d.ts +10 -0
- package/dist/component/VRenderer.d.ts +10 -0
- package/dist/component/schemaTpl.d.ts +8 -0
- package/dist/component/validator.d.ts +62 -0
- package/dist/dnd/index.d.ts +1 -1
- package/dist/event-action/action-config-panel.d.ts +8 -0
- package/dist/event-action/actions.d.ts +3 -0
- package/dist/event-action/comp-action-select.d.ts +11 -0
- package/dist/event-action/config.d.ts +13 -0
- package/dist/event-action/index.d.ts +459 -0
- package/dist/event-action/schema.d.ts +32 -0
- package/dist/exports.min.js +1 -1
- package/dist/index.d.ts +23 -5
- package/dist/index.min.js +1 -1
- package/dist/manager.d.ts +46 -1
- package/dist/plugin/Alert.d.ts +4 -2
- package/dist/plugin/Button.d.ts +5 -1
- package/dist/plugin/ButtonGroup.d.ts +13 -34
- package/dist/plugin/ButtonToolbar.d.ts +4 -10
- package/dist/plugin/CRUD.d.ts +2 -0
- package/dist/plugin/Chart.d.ts +2 -0
- package/dist/plugin/Collapse.d.ts +1 -0
- package/dist/plugin/CollapseGroup.d.ts +28 -4
- package/dist/plugin/Container.d.ts +2 -1
- package/dist/plugin/Dialog.d.ts +12 -2
- package/dist/plugin/Drawer.d.ts +12 -2
- package/dist/plugin/DropDownButton.d.ts +11 -11
- package/dist/plugin/Form/ButtonGroupSelect.d.ts +7 -2
- package/dist/plugin/Form/ButtonToolbar.d.ts +8 -7
- package/dist/plugin/Form/ChainedSelect.d.ts +3 -0
- package/dist/plugin/Form/Checkbox.d.ts +7 -2
- package/dist/plugin/Form/Checkboxes.d.ts +8 -2
- package/dist/plugin/Form/CodeEditor.d.ts +7 -22
- package/dist/plugin/Form/Combo.d.ts +3 -0
- package/dist/plugin/Form/Control.d.ts +6 -2
- package/dist/plugin/Form/DiffEditor.d.ts +7 -1
- package/dist/plugin/Form/Form.d.ts +6 -0
- package/dist/plugin/Form/Formula.d.ts +1 -25
- package/dist/plugin/Form/InputDate.d.ts +8 -2
- package/dist/plugin/Form/InputDateRange.d.ts +8 -2
- package/dist/plugin/Form/InputDateTime.d.ts +4 -4
- package/dist/plugin/Form/InputDateTimeRange.d.ts +4 -4
- package/dist/plugin/Form/InputEmail.d.ts +1 -0
- package/dist/plugin/Form/InputExcel.d.ts +6 -41
- package/dist/plugin/Form/InputFile.d.ts +7 -3
- package/dist/plugin/Form/InputKV.d.ts +6 -0
- package/dist/plugin/Form/InputMonth.d.ts +1 -0
- package/dist/plugin/Form/InputMonthRange.d.ts +4 -4
- package/dist/plugin/Form/InputPassword.d.ts +1 -0
- package/dist/plugin/Form/InputQuarter.d.ts +1 -0
- package/dist/plugin/Form/InputQuarterRange.d.ts +4 -4
- package/dist/plugin/Form/InputRange.d.ts +3 -0
- package/dist/plugin/Form/InputRating.d.ts +9 -3
- package/dist/plugin/Form/InputText.d.ts +24 -2
- package/dist/plugin/Form/InputTime.d.ts +3 -3
- package/dist/plugin/Form/InputTimeRange.d.ts +20 -0
- package/dist/plugin/Form/InputTree.d.ts +6 -2
- package/dist/plugin/Form/InputURL.d.ts +1 -0
- package/dist/plugin/Form/InputYear.d.ts +1 -0
- package/dist/plugin/Form/InputYearRange.d.ts +20 -0
- package/dist/plugin/Form/ListSelect.d.ts +6 -2
- package/dist/plugin/Form/LocationPicker.d.ts +1 -31
- package/dist/plugin/Form/NestedSelect.d.ts +5 -2
- package/dist/plugin/Form/Radios.d.ts +7 -2
- package/dist/plugin/Form/Select.d.ts +7 -2
- package/dist/plugin/Form/Switch.d.ts +7 -2
- package/dist/plugin/Form/TabsTransfer.d.ts +5 -2
- package/dist/plugin/Form/Textarea.d.ts +7 -1
- package/dist/plugin/Form/Transfer.d.ts +5 -2
- package/dist/plugin/Form/TreeSelect.d.ts +6 -2
- package/dist/plugin/IFrame.d.ts +2 -2
- package/dist/plugin/Nav.d.ts +1 -116
- package/dist/plugin/Others/Action.d.ts +5 -1
- package/dist/plugin/Page.d.ts +5 -2
- package/dist/plugin/Progress.d.ts +5 -1
- package/dist/plugin/Table.d.ts +2 -0
- package/dist/plugin/Tabs.d.ts +33 -2
- package/dist/plugin/TooltipWrapper.d.ts +10 -0
- package/dist/plugin/Tpl.d.ts +2 -1
- package/dist/plugin/Wizard.d.ts +4 -1
- package/dist/plugin.d.ts +37 -1
- package/dist/store/editor.d.ts +65 -38
- package/dist/store/node.d.ts +16 -0
- package/dist/style.css +1 -1
- package/dist/util.d.ts +36 -3
- package/package.json +14 -8
- package/src/component/schemaTpl.tsx +1198 -474
- package/src/plugin/.DS_Store +0 -0
- package/src/plugin/Alert.tsx +69 -48
- package/src/plugin/AnchorNav.tsx +1 -0
- package/src/plugin/Audio.tsx +9 -15
- package/src/plugin/Avatar.tsx +2 -1
- package/src/plugin/Breadcrumb.tsx +2 -1
- package/src/plugin/Button.tsx +257 -188
- package/src/plugin/ButtonGroup.tsx +99 -38
- package/src/plugin/ButtonToolbar.tsx +7 -13
- package/src/plugin/CRUD.tsx +77 -135
- package/src/plugin/Card.tsx +1 -0
- package/src/plugin/Cards.tsx +8 -14
- package/src/plugin/Carousel.tsx +1 -1
- package/src/plugin/Chart.tsx +26 -14
- package/src/plugin/Collapse.tsx +78 -78
- package/src/plugin/CollapseGroup.tsx +165 -83
- package/src/plugin/Container.tsx +59 -6
- package/src/plugin/Custom.tsx +2 -8
- package/src/plugin/CustomRegion.tsx +4 -3
- package/src/plugin/Dialog.tsx +55 -24
- package/src/plugin/Drawer.tsx +65 -35
- package/src/plugin/DropDownButton.tsx +95 -79
- package/src/plugin/Flex.tsx +123 -65
- package/src/plugin/Form/ButtonGroupSelect.tsx +114 -26
- package/src/plugin/Form/ButtonToolbar.tsx +62 -55
- package/src/plugin/Form/ChainedSelect.tsx +45 -0
- package/src/plugin/Form/Checkbox.tsx +122 -33
- package/src/plugin/Form/Checkboxes.tsx +154 -87
- package/src/plugin/Form/CodeEditor.tsx +163 -34
- package/src/plugin/Form/Combo.tsx +104 -65
- package/src/plugin/Form/Control.tsx +16 -70
- package/src/plugin/Form/DiffEditor.tsx +158 -54
- package/src/plugin/Form/FieldSet.tsx +6 -11
- package/src/plugin/Form/Form.tsx +277 -70
- package/src/plugin/Form/Formula.tsx +8 -14
- package/src/plugin/Form/InputArray.tsx +7 -16
- package/src/plugin/Form/InputCity.tsx +1 -1
- package/src/plugin/Form/InputDate.tsx +344 -121
- package/src/plugin/Form/InputDateRange.tsx +303 -161
- package/src/plugin/Form/InputDateTime.tsx +6 -150
- package/src/plugin/Form/InputDateTimeRange.tsx +7 -187
- package/src/plugin/Form/InputEmail.tsx +1 -0
- package/src/plugin/Form/InputExcel.tsx +70 -27
- package/src/plugin/Form/InputFile.tsx +326 -152
- package/src/plugin/Form/InputImage.tsx +1 -1
- package/src/plugin/Form/InputKV.tsx +61 -0
- package/src/plugin/Form/InputMonth.tsx +3 -1
- package/src/plugin/Form/InputMonthRange.tsx +6 -160
- package/src/plugin/Form/InputNumber.tsx +1 -1
- package/src/plugin/Form/InputPassword.tsx +2 -0
- package/src/plugin/Form/InputQuarter.tsx +3 -1
- package/src/plugin/Form/InputQuarterRange.tsx +6 -160
- package/src/plugin/Form/InputRange.tsx +74 -4
- package/src/plugin/Form/InputRating.tsx +347 -35
- package/src/plugin/Form/InputRichText.tsx +2 -3
- package/src/plugin/Form/InputTable.tsx +33 -49
- package/src/plugin/Form/InputTag.tsx +1 -1
- package/src/plugin/Form/InputText.tsx +310 -132
- package/src/plugin/Form/InputTime.tsx +4 -53
- package/src/plugin/Form/InputTimeRange.tsx +41 -0
- package/src/plugin/Form/InputTree.tsx +196 -46
- package/src/plugin/Form/InputURL.tsx +2 -0
- package/src/plugin/Form/InputYear.tsx +2 -0
- package/src/plugin/Form/InputYearRange.tsx +41 -0
- package/src/plugin/Form/Item.tsx +17 -18
- package/src/plugin/Form/ListSelect.tsx +75 -20
- package/src/plugin/Form/LocationPicker.tsx +2 -7
- package/src/plugin/Form/MatrixCheckboxes.tsx +1 -1
- package/src/plugin/Form/NestedSelect.tsx +110 -43
- package/src/plugin/Form/Picker.tsx +2 -5
- package/src/plugin/Form/Radios.tsx +122 -52
- package/src/plugin/Form/Select.tsx +239 -168
- package/src/plugin/Form/Static.tsx +1 -1
- package/src/plugin/Form/Switch.tsx +170 -58
- package/src/plugin/Form/TabsTransfer.tsx +175 -79
- package/src/plugin/Form/Textarea.tsx +146 -36
- package/src/plugin/Form/Transfer.tsx +295 -233
- package/src/plugin/Form/TreeSelect.tsx +287 -146
- package/src/plugin/Grid.tsx +340 -312
- package/src/plugin/HBox.tsx +1 -0
- package/src/plugin/IFrame.tsx +21 -12
- package/src/plugin/Image.tsx +7 -12
- package/src/plugin/Images.tsx +7 -12
- package/src/plugin/Link.tsx +6 -12
- package/src/plugin/List.tsx +6 -10
- package/src/plugin/ListItem.tsx +1 -0
- package/src/plugin/Nav.tsx +7 -9
- package/src/plugin/Others/Action.tsx +16 -10
- package/src/plugin/Others/BasicToolbar.tsx +4 -1
- package/src/plugin/Others/TableCell.tsx +19 -39
- package/src/plugin/Page.tsx +315 -229
- package/src/plugin/Panel.tsx +6 -7
- package/src/plugin/Plain.tsx +3 -6
- package/src/plugin/Progress.tsx +234 -94
- package/src/plugin/Service.tsx +10 -6
- package/src/plugin/Table.tsx +49 -20
- package/src/plugin/TableView.tsx +212 -106
- package/src/plugin/Tabs.tsx +306 -146
- package/src/plugin/TooltipWrapper.tsx +231 -135
- package/src/plugin/Tpl.tsx +68 -52
- package/src/plugin/Video.tsx +9 -20
- package/src/plugin/Wizard.tsx +537 -336
- package/src/plugin/Wrapper.tsx +82 -61
- package/src/plugin.ts +66 -4
- package/static/empty.png +0 -0
@@ -1,6 +1,8 @@
|
|
1
1
|
import {getSchemaTpl} from '../../component/schemaTpl';
|
2
2
|
import {registerEditorPlugin} from '../../manager';
|
3
|
-
import {BasePlugin} from '../../plugin';
|
3
|
+
import {BasePlugin, BaseEventContext} from '../../plugin';
|
4
|
+
import {getEventControlConfig} from '../../util';
|
5
|
+
import {RendererAction, RendererEvent} from '../../event-action';
|
4
6
|
|
5
7
|
export class TransferPlugin extends BasePlugin {
|
6
8
|
// 关联渲染器名字
|
@@ -73,6 +75,66 @@ export class TransferPlugin extends BasePlugin {
|
|
73
75
|
};
|
74
76
|
|
75
77
|
panelTitle = '穿梭器';
|
78
|
+
|
79
|
+
events: RendererEvent[] = [
|
80
|
+
{
|
81
|
+
eventName: 'change',
|
82
|
+
eventLabel: '值变化',
|
83
|
+
description: '输入框失去焦点时触发',
|
84
|
+
dataSchema: [
|
85
|
+
{
|
86
|
+
type: 'object',
|
87
|
+
properties: {
|
88
|
+
'event.data.value': {
|
89
|
+
type: 'string',
|
90
|
+
title: '选中值'
|
91
|
+
}
|
92
|
+
}
|
93
|
+
}
|
94
|
+
]
|
95
|
+
},
|
96
|
+
{
|
97
|
+
eventName: 'selectAll',
|
98
|
+
eventLabel: '全选',
|
99
|
+
description: '选中所有选项',
|
100
|
+
dataSchema: [
|
101
|
+
{
|
102
|
+
type: 'object',
|
103
|
+
properties: {
|
104
|
+
'event.data': {
|
105
|
+
type: 'array',
|
106
|
+
title: '选中值'
|
107
|
+
}
|
108
|
+
}
|
109
|
+
}
|
110
|
+
]
|
111
|
+
}
|
112
|
+
];
|
113
|
+
|
114
|
+
// 动作定义
|
115
|
+
actions: RendererAction[] = [
|
116
|
+
{
|
117
|
+
actionType: 'clear',
|
118
|
+
actionLabel: '清空',
|
119
|
+
description: '清空选中内容'
|
120
|
+
},
|
121
|
+
{
|
122
|
+
actionType: 'reset',
|
123
|
+
actionLabel: '重置',
|
124
|
+
description: '重置选择的内容'
|
125
|
+
},
|
126
|
+
{
|
127
|
+
actionType: 'selectAll',
|
128
|
+
actionLabel: '全选',
|
129
|
+
description: '选中所有选项'
|
130
|
+
},
|
131
|
+
{
|
132
|
+
actionType: 'setValue',
|
133
|
+
actionLabel: '赋值',
|
134
|
+
description: '触发组件数据更新,多值用“,”分隔'
|
135
|
+
}
|
136
|
+
];
|
137
|
+
|
76
138
|
panelDefinitions = {
|
77
139
|
options: {
|
78
140
|
label: '选项 Options',
|
@@ -115,254 +177,254 @@ export class TransferPlugin extends BasePlugin {
|
|
115
177
|
}
|
116
178
|
};
|
117
179
|
|
118
|
-
|
119
|
-
getSchemaTpl('switchDefaultValue'),
|
180
|
+
// notRenderFormZone = true;
|
120
181
|
|
121
|
-
|
122
|
-
|
123
|
-
name: 'value',
|
124
|
-
label: '默认值',
|
125
|
-
source: '${options}',
|
126
|
-
visibleOn: '!data.multiple && typeof this.value !== "undefined"'
|
127
|
-
},
|
182
|
+
panelBodyCreator = (context: BaseEventContext) => {
|
183
|
+
const renderer: any = context.info.renderer;
|
128
184
|
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
multiple: true,
|
135
|
-
visibleOn: ' data.multiple && typeof this.value !== "undefined"'
|
136
|
-
},
|
185
|
+
return getSchemaTpl('tabs', [
|
186
|
+
{
|
187
|
+
title: '属性',
|
188
|
+
body: getSchemaTpl('collapseGroup', [
|
189
|
+
getSchemaTpl('switchDefaultValue'),
|
137
190
|
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
{
|
146
|
-
label: '列表形式',
|
147
|
-
value: 'list'
|
148
|
-
},
|
149
|
-
{
|
150
|
-
label: '表格形式',
|
151
|
-
value: 'table'
|
152
|
-
},
|
153
|
-
{
|
154
|
-
label: '树形选择形式',
|
155
|
-
value: 'tree'
|
156
|
-
},
|
157
|
-
{
|
158
|
-
label: '级联选择形式',
|
159
|
-
value: 'chained'
|
160
|
-
},
|
161
|
-
{
|
162
|
-
label: '关联选择形式',
|
163
|
-
value: 'associated'
|
164
|
-
}
|
165
|
-
]
|
166
|
-
},
|
191
|
+
{
|
192
|
+
type: 'select',
|
193
|
+
name: 'value',
|
194
|
+
label: '默认值',
|
195
|
+
source: '${options}',
|
196
|
+
visibleOn: '!data.multiple && typeof this.value !== "undefined"'
|
197
|
+
},
|
167
198
|
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
visibleOn: 'data.selectMode === "table"',
|
177
|
-
items: [
|
178
|
-
{
|
179
|
-
type: 'input-text',
|
180
|
-
name: 'label',
|
181
|
-
placeholder: '标题'
|
182
|
-
},
|
183
|
-
{
|
184
|
-
type: 'input-text',
|
185
|
-
name: 'name',
|
186
|
-
placeholder: '绑定字段名'
|
187
|
-
},
|
188
|
-
{
|
189
|
-
type: 'select',
|
190
|
-
name: 'type',
|
191
|
-
placeholder: '类型',
|
192
|
-
value: 'input-text',
|
193
|
-
options: [
|
194
|
-
{
|
195
|
-
value: 'text',
|
196
|
-
label: '纯文本'
|
197
|
-
},
|
198
|
-
{
|
199
|
-
value: 'tpl',
|
200
|
-
label: '模板'
|
201
|
-
},
|
202
|
-
{
|
203
|
-
value: 'image',
|
204
|
-
label: '图片'
|
205
|
-
},
|
206
|
-
{
|
207
|
-
value: 'date',
|
208
|
-
label: '日期'
|
209
|
-
},
|
210
|
-
{
|
211
|
-
value: 'progress',
|
212
|
-
label: '进度'
|
213
|
-
},
|
214
|
-
{
|
215
|
-
value: 'status',
|
216
|
-
label: '状态'
|
217
|
-
},
|
218
|
-
{
|
219
|
-
value: 'mapping',
|
220
|
-
label: '映射'
|
221
|
-
},
|
222
|
-
{
|
223
|
-
value: 'operation',
|
224
|
-
label: '操作栏'
|
225
|
-
}
|
226
|
-
]
|
227
|
-
}
|
228
|
-
]
|
229
|
-
},
|
199
|
+
{
|
200
|
+
type: 'select',
|
201
|
+
name: 'value',
|
202
|
+
label: '默认值',
|
203
|
+
source: '${options}',
|
204
|
+
multiple: true,
|
205
|
+
visibleOn: ' data.multiple && typeof this.value !== "undefined"'
|
206
|
+
},
|
230
207
|
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
208
|
+
{
|
209
|
+
label: '勾选展示模式',
|
210
|
+
name: 'selectMode',
|
211
|
+
type: 'select',
|
212
|
+
mode: 'inline',
|
213
|
+
className: 'w-full',
|
214
|
+
options: [
|
215
|
+
{
|
216
|
+
label: '列表形式',
|
217
|
+
value: 'list'
|
218
|
+
},
|
219
|
+
{
|
220
|
+
label: '表格形式',
|
221
|
+
value: 'table'
|
222
|
+
},
|
223
|
+
{
|
224
|
+
label: '树形选择形式',
|
225
|
+
value: 'tree'
|
226
|
+
},
|
227
|
+
{
|
228
|
+
label: '级联选择形式',
|
229
|
+
value: 'chained'
|
230
|
+
},
|
231
|
+
{
|
232
|
+
label: '关联选择形式',
|
233
|
+
value: 'associated'
|
234
|
+
}
|
235
|
+
]
|
236
|
+
},
|
237
237
|
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
238
|
+
{
|
239
|
+
name: 'columns',
|
240
|
+
type: 'combo',
|
241
|
+
multiple: true,
|
242
|
+
label: false,
|
243
|
+
strictMode: false,
|
244
|
+
addButtonText: '新增一列',
|
245
|
+
draggable: false,
|
246
|
+
visibleOn: 'data.selectMode === "table"',
|
247
|
+
items: [
|
248
|
+
{
|
249
|
+
type: 'input-text',
|
250
|
+
name: 'label',
|
251
|
+
placeholder: '标题'
|
252
|
+
},
|
253
|
+
{
|
254
|
+
type: 'input-text',
|
255
|
+
name: 'name',
|
256
|
+
placeholder: '绑定字段名'
|
257
|
+
},
|
258
|
+
{
|
259
|
+
type: 'select',
|
260
|
+
name: 'type',
|
261
|
+
placeholder: '类型',
|
262
|
+
value: 'input-text',
|
263
|
+
options: [
|
264
|
+
{
|
265
|
+
value: 'text',
|
266
|
+
label: '纯文本'
|
267
|
+
},
|
268
|
+
{
|
269
|
+
value: 'tpl',
|
270
|
+
label: '模板'
|
271
|
+
},
|
272
|
+
{
|
273
|
+
value: 'image',
|
274
|
+
label: '图片'
|
275
|
+
},
|
276
|
+
{
|
277
|
+
value: 'date',
|
278
|
+
label: '日期'
|
279
|
+
},
|
280
|
+
{
|
281
|
+
value: 'progress',
|
282
|
+
label: '进度'
|
283
|
+
},
|
284
|
+
{
|
285
|
+
value: 'status',
|
286
|
+
label: '状态'
|
287
|
+
},
|
288
|
+
{
|
289
|
+
value: 'mapping',
|
290
|
+
label: '映射'
|
291
|
+
},
|
292
|
+
{
|
293
|
+
value: 'operation',
|
294
|
+
label: '操作栏'
|
295
|
+
}
|
296
|
+
]
|
297
|
+
}
|
298
|
+
]
|
299
|
+
},
|
256
300
|
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
visibleOn: 'data.selectMode === "associated"',
|
264
|
-
options: [
|
265
|
-
{
|
266
|
-
label: '列表形式',
|
267
|
-
value: 'list'
|
268
|
-
},
|
269
|
-
{
|
270
|
-
label: '树形选择形式',
|
271
|
-
value: 'tree'
|
272
|
-
}
|
273
|
-
]
|
274
|
-
},
|
301
|
+
{
|
302
|
+
$ref: 'options',
|
303
|
+
label: '左边的选项集',
|
304
|
+
name: 'leftOptions',
|
305
|
+
visibleOn: 'data.selectMode === "associated"'
|
306
|
+
},
|
275
307
|
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
308
|
+
{
|
309
|
+
label: '左侧选择形式',
|
310
|
+
name: 'leftMode',
|
311
|
+
type: 'select',
|
312
|
+
mode: 'inline',
|
313
|
+
className: 'w-full',
|
314
|
+
visibleOn: 'data.selectMode === "associated"',
|
315
|
+
options: [
|
316
|
+
{
|
317
|
+
label: '列表形式',
|
318
|
+
value: 'list'
|
319
|
+
},
|
320
|
+
{
|
321
|
+
label: '树形选择形式',
|
322
|
+
value: 'tree'
|
323
|
+
}
|
324
|
+
]
|
325
|
+
},
|
283
326
|
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
327
|
+
{
|
328
|
+
label: '右侧选择形式',
|
329
|
+
name: 'rightMode',
|
330
|
+
type: 'select',
|
331
|
+
mode: 'inline',
|
332
|
+
className: 'w-full',
|
333
|
+
visibleOn: 'data.selectMode === "associated"',
|
334
|
+
options: [
|
335
|
+
{
|
336
|
+
label: '列表形式',
|
337
|
+
value: 'list'
|
338
|
+
},
|
339
|
+
{
|
340
|
+
label: '树形选择形式',
|
341
|
+
value: 'tree'
|
342
|
+
}
|
343
|
+
]
|
344
|
+
},
|
288
345
|
|
289
|
-
|
290
|
-
label: '查询时勾选展示模式',
|
291
|
-
name: 'searchResultMode',
|
292
|
-
type: 'select',
|
293
|
-
mode: 'inline',
|
294
|
-
className: 'w-full',
|
295
|
-
options: [
|
296
|
-
{
|
297
|
-
label: '列表形式',
|
298
|
-
value: 'list'
|
299
|
-
},
|
300
|
-
{
|
301
|
-
label: '表格形式',
|
302
|
-
value: 'table'
|
303
|
-
},
|
304
|
-
{
|
305
|
-
label: '树形选择形式',
|
306
|
-
value: 'tree'
|
307
|
-
},
|
308
|
-
{
|
309
|
-
label: '级联选择形式',
|
310
|
-
value: 'chained'
|
311
|
-
}
|
312
|
-
]
|
313
|
-
},
|
346
|
+
getSchemaTpl('searchable'),
|
314
347
|
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
mode: 'inline',
|
320
|
-
className: 'w-full'
|
321
|
-
},
|
348
|
+
getSchemaTpl('api', {
|
349
|
+
label: '检索接口',
|
350
|
+
name: 'searchApi'
|
351
|
+
}),
|
322
352
|
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
353
|
+
{
|
354
|
+
label: '查询时勾选展示模式',
|
355
|
+
name: 'searchResultMode',
|
356
|
+
type: 'select',
|
357
|
+
mode: 'inline',
|
358
|
+
className: 'w-full',
|
359
|
+
options: [
|
360
|
+
{
|
361
|
+
label: '列表形式',
|
362
|
+
value: 'list'
|
363
|
+
},
|
364
|
+
{
|
365
|
+
label: '表格形式',
|
366
|
+
value: 'table'
|
367
|
+
},
|
368
|
+
{
|
369
|
+
label: '树形选择形式',
|
370
|
+
value: 'tree'
|
371
|
+
},
|
372
|
+
{
|
373
|
+
label: '级联选择形式',
|
374
|
+
value: 'chained'
|
375
|
+
}
|
376
|
+
]
|
377
|
+
},
|
330
378
|
|
331
|
-
|
332
|
-
label: '是否显示统计数据',
|
333
|
-
name: 'statistics',
|
334
|
-
type: 'switch',
|
335
|
-
mode: 'inline',
|
336
|
-
className: 'w-full'
|
337
|
-
},
|
379
|
+
getSchemaTpl('sortable'),
|
338
380
|
|
339
|
-
|
340
|
-
label: '左侧的标题文字',
|
341
|
-
name: 'selectTitle',
|
342
|
-
type: 'input-text'
|
343
|
-
},
|
381
|
+
getSchemaTpl('selectFirst'),
|
344
382
|
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
},
|
383
|
+
getSchemaTpl('switch', {
|
384
|
+
label: '是否显示统计数据',
|
385
|
+
name: 'statistics'
|
386
|
+
}),
|
350
387
|
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
388
|
+
{
|
389
|
+
label: '左侧的标题文字',
|
390
|
+
name: 'selectTitle',
|
391
|
+
type: 'input-text'
|
392
|
+
},
|
393
|
+
|
394
|
+
{
|
395
|
+
label: '右侧结果的标题文字',
|
396
|
+
name: 'resultTitle',
|
397
|
+
type: 'input-text'
|
398
|
+
},
|
399
|
+
|
400
|
+
getSchemaTpl('fieldSet', {
|
401
|
+
title: '选项',
|
402
|
+
body: [
|
403
|
+
{
|
404
|
+
$ref: 'options',
|
405
|
+
name: 'options'
|
406
|
+
},
|
407
|
+
getSchemaTpl('source'),
|
408
|
+
getSchemaTpl('joinValues'),
|
409
|
+
getSchemaTpl('delimiter'),
|
410
|
+
getSchemaTpl('extractValue'),
|
411
|
+
getSchemaTpl('autoFill')
|
412
|
+
]
|
413
|
+
})
|
414
|
+
])
|
415
|
+
},
|
416
|
+
{
|
417
|
+
title: '事件',
|
418
|
+
className: 'p-none',
|
419
|
+
body: [
|
420
|
+
getSchemaTpl('eventControl', {
|
421
|
+
name: 'onEvent',
|
422
|
+
...getEventControlConfig(this.manager, context)
|
423
|
+
})
|
424
|
+
]
|
425
|
+
}
|
426
|
+
]);
|
427
|
+
};
|
366
428
|
}
|
367
429
|
|
368
430
|
registerEditorPlugin(TransferPlugin);
|