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
package/src/plugin/TableView.tsx
CHANGED
@@ -14,7 +14,7 @@ import {
|
|
14
14
|
RendererInfo,
|
15
15
|
VRendererConfig
|
16
16
|
} from '../plugin';
|
17
|
-
import {getSchemaTpl} from '../component/schemaTpl';
|
17
|
+
import {defaultValue, getSchemaTpl} from '../component/schemaTpl';
|
18
18
|
import {VRenderer} from '../component/VRenderer';
|
19
19
|
import {TableViewEditor} from '../component/TableViewEditor';
|
20
20
|
import {TableViewSchema} from 'amis/lib/renderers/TableView';
|
@@ -179,35 +179,75 @@ export class TableViewPlugin extends BasePlugin {
|
|
179
179
|
panelBody = [
|
180
180
|
getSchemaTpl('tabs', [
|
181
181
|
{
|
182
|
-
title: '
|
182
|
+
title: '属性',
|
183
|
+
className: 'p-none',
|
183
184
|
body: [
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
185
|
+
getSchemaTpl('collapseGroup', [
|
186
|
+
{
|
187
|
+
title: '常用',
|
188
|
+
body: [
|
189
|
+
{
|
190
|
+
label: '标题',
|
191
|
+
name: 'caption',
|
192
|
+
type: 'input-text'
|
193
|
+
},
|
194
|
+
{
|
195
|
+
label: '标题位置',
|
196
|
+
name: 'captionSide',
|
197
|
+
type: 'button-group-select',
|
198
|
+
size: 'sm',
|
199
|
+
mode: 'row',
|
200
|
+
className: 'ae-buttonGroupSelect--justify',
|
201
|
+
visibleOn: 'this.caption',
|
202
|
+
options: [
|
203
|
+
{label: '顶部', value: 'top'},
|
204
|
+
{label: '底部', value: 'bottom'}
|
205
|
+
]
|
206
|
+
},
|
207
|
+
{
|
208
|
+
type: 'input-text',
|
209
|
+
label: '视图宽度',
|
210
|
+
name: 'width',
|
211
|
+
clearable: true
|
212
|
+
},
|
213
|
+
{
|
214
|
+
type: 'input-text',
|
215
|
+
label: '单元格默认内间距',
|
216
|
+
name: 'padding',
|
217
|
+
clearable: true
|
218
|
+
},
|
219
|
+
{
|
220
|
+
label: '显示边框',
|
221
|
+
name: 'border',
|
222
|
+
type: 'switch',
|
223
|
+
mode: 'row',
|
224
|
+
inputClassName: 'inline-flex justify-between flex-row-reverse'
|
225
|
+
},
|
226
|
+
{
|
227
|
+
label: '边框颜色',
|
228
|
+
type: 'input-color',
|
229
|
+
name: 'borderColor',
|
230
|
+
visibleOn: 'this.border',
|
231
|
+
pipeIn: defaultValue('#eceff8')
|
232
|
+
}
|
233
|
+
]
|
234
|
+
}
|
235
|
+
])
|
203
236
|
]
|
204
237
|
},
|
205
238
|
{
|
206
239
|
title: '外观',
|
207
|
-
|
240
|
+
className: 'p-none',
|
241
|
+
body: getSchemaTpl('collapseGroup', [
|
242
|
+
...getSchemaTpl('style:common'),
|
243
|
+
{
|
244
|
+
title: 'CSS 类名',
|
245
|
+
body: [getSchemaTpl('className')]
|
246
|
+
}
|
247
|
+
])
|
208
248
|
},
|
209
249
|
{
|
210
|
-
title: '
|
250
|
+
title: '状态',
|
211
251
|
body: [getSchemaTpl('visible')]
|
212
252
|
}
|
213
253
|
])
|
@@ -228,6 +268,7 @@ export class TableViewPlugin extends BasePlugin {
|
|
228
268
|
const id = td.$$id;
|
229
269
|
return (
|
230
270
|
<VRenderer
|
271
|
+
type={info.type}
|
231
272
|
plugin={info.plugin}
|
232
273
|
renderer={info.renderer}
|
233
274
|
key={id}
|
@@ -257,6 +298,7 @@ export class TableViewPlugin extends BasePlugin {
|
|
257
298
|
const id = tr.$$id;
|
258
299
|
return (
|
259
300
|
<VRenderer
|
301
|
+
type={info.type}
|
260
302
|
plugin={info.plugin}
|
261
303
|
renderer={info.renderer}
|
262
304
|
key={id}
|
@@ -280,77 +322,126 @@ export class TableViewPlugin extends BasePlugin {
|
|
280
322
|
panelTitle: '单元格',
|
281
323
|
panelBodyCreator: (context: BaseEventContext) => {
|
282
324
|
return [
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
325
|
+
getSchemaTpl('tabs', [
|
326
|
+
{
|
327
|
+
title: '属性',
|
328
|
+
className: 'p-none',
|
329
|
+
body: [
|
330
|
+
getSchemaTpl('collapseGroup', [
|
331
|
+
{
|
332
|
+
title: '显示',
|
333
|
+
body: [
|
334
|
+
{
|
335
|
+
label: '背景色',
|
336
|
+
type: 'input-color',
|
337
|
+
name: 'background'
|
338
|
+
},
|
339
|
+
{
|
340
|
+
label: '文字颜色',
|
341
|
+
type: 'input-color',
|
342
|
+
name: 'color'
|
343
|
+
},
|
344
|
+
{
|
345
|
+
label: '文字加粗',
|
346
|
+
name: 'bold',
|
347
|
+
type: 'switch',
|
348
|
+
mode: 'row',
|
349
|
+
inputClassName:
|
350
|
+
'inline-flex justify-between flex-row-reverse'
|
351
|
+
}
|
352
|
+
]
|
353
|
+
},
|
354
|
+
{
|
355
|
+
title: '布局',
|
356
|
+
body: [
|
357
|
+
{
|
358
|
+
type: 'input-text',
|
359
|
+
label: '单元格宽度',
|
360
|
+
name: 'width',
|
361
|
+
clearable: true
|
362
|
+
},
|
363
|
+
{
|
364
|
+
type: 'input-number',
|
365
|
+
name: 'padding',
|
366
|
+
label: '单元格内边距'
|
367
|
+
},
|
368
|
+
{
|
369
|
+
label: '水平对齐',
|
370
|
+
name: 'align',
|
371
|
+
type: 'button-group-select',
|
372
|
+
size: 'sm',
|
373
|
+
mode: 'row',
|
374
|
+
className: 'ae-buttonGroupSelect--justify',
|
375
|
+
options: [
|
376
|
+
{
|
377
|
+
label: '',
|
378
|
+
value: 'left',
|
379
|
+
icon: 'fa fa-align-left'
|
380
|
+
},
|
381
|
+
{
|
382
|
+
label: '',
|
383
|
+
value: 'center',
|
384
|
+
icon: 'fa fa-align-center'
|
385
|
+
},
|
386
|
+
{
|
387
|
+
label: '',
|
388
|
+
value: 'right',
|
389
|
+
icon: 'fa fa-align-right'
|
390
|
+
},
|
391
|
+
{
|
392
|
+
label: '',
|
393
|
+
value: 'justify',
|
394
|
+
icon: 'fa fa-align-justify'
|
395
|
+
}
|
396
|
+
]
|
397
|
+
},
|
398
|
+
{
|
399
|
+
label: '垂直对齐',
|
400
|
+
name: 'valign',
|
401
|
+
type: 'button-group-select',
|
402
|
+
size: 'sm',
|
403
|
+
mode: 'row',
|
404
|
+
className: 'ae-buttonGroupSelect--justify',
|
405
|
+
options: [
|
406
|
+
{
|
407
|
+
label: '顶部',
|
408
|
+
value: 'top'
|
409
|
+
},
|
410
|
+
{
|
411
|
+
label: '居中',
|
412
|
+
value: 'middle'
|
413
|
+
},
|
414
|
+
{
|
415
|
+
label: '底部',
|
416
|
+
value: 'bottom'
|
417
|
+
},
|
418
|
+
{
|
419
|
+
label: '基线对齐',
|
420
|
+
value: 'baseline'
|
421
|
+
}
|
422
|
+
]
|
423
|
+
},
|
424
|
+
{
|
425
|
+
type: 'input-number',
|
426
|
+
name: 'colspan',
|
427
|
+
label: '水平合并列数'
|
428
|
+
},
|
429
|
+
{
|
430
|
+
type: 'input-number',
|
431
|
+
name: 'rowspan',
|
432
|
+
label: '垂直合并列数'
|
433
|
+
}
|
434
|
+
]
|
435
|
+
}
|
436
|
+
])
|
437
|
+
]
|
438
|
+
},
|
439
|
+
{
|
440
|
+
title: '外观',
|
441
|
+
className: 'p-none',
|
442
|
+
body: getSchemaTpl('collapseGroup', getSchemaTpl('style:common'))
|
443
|
+
}
|
444
|
+
])
|
354
445
|
];
|
355
446
|
}
|
356
447
|
};
|
@@ -359,16 +450,28 @@ export class TableViewPlugin extends BasePlugin {
|
|
359
450
|
panelTitle: ' 行',
|
360
451
|
panelBodyCreator: (context: BaseEventContext) => {
|
361
452
|
return [
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
453
|
+
getSchemaTpl('tabs', [
|
454
|
+
{
|
455
|
+
title: '属性',
|
456
|
+
body: [
|
457
|
+
{
|
458
|
+
label: '行高度',
|
459
|
+
type: 'input-number',
|
460
|
+
name: 'height'
|
461
|
+
},
|
462
|
+
{
|
463
|
+
label: '行背景色',
|
464
|
+
type: 'input-color',
|
465
|
+
name: 'background'
|
466
|
+
}
|
467
|
+
]
|
468
|
+
},
|
469
|
+
{
|
470
|
+
title: '外观',
|
471
|
+
className: 'p-none',
|
472
|
+
body: getSchemaTpl('collapseGroup', getSchemaTpl('style:common'))
|
473
|
+
}
|
474
|
+
])
|
372
475
|
];
|
373
476
|
}
|
374
477
|
};
|
@@ -391,6 +494,7 @@ export class TableViewPlugin extends BasePlugin {
|
|
391
494
|
panels: Array<BasicPanelItem>
|
392
495
|
) {
|
393
496
|
super.buildEditorPanel(context, panels);
|
497
|
+
const store = this.manager.store;
|
394
498
|
if (context.info.schemaPath.endsWith('/td')) {
|
395
499
|
panels.push({
|
396
500
|
key: 'td',
|
@@ -403,7 +507,8 @@ export class TableViewPlugin extends BasePlugin {
|
|
403
507
|
: this.tdVRendererConfig.panelControls!,
|
404
508
|
body: this.tdVRendererConfig.panelBodyCreator
|
405
509
|
? this.tdVRendererConfig.panelBodyCreator(context)
|
406
|
-
: this.tdVRendererConfig.panelBody
|
510
|
+
: this.tdVRendererConfig.panelBody!,
|
511
|
+
panelById: store.activeId
|
407
512
|
})
|
408
513
|
});
|
409
514
|
} else if (context.info.schemaPath.endsWith('/tr')) {
|
@@ -418,7 +523,8 @@ export class TableViewPlugin extends BasePlugin {
|
|
418
523
|
: this.trVRendererConfig.panelControls!,
|
419
524
|
body: this.trVRendererConfig.panelBodyCreator
|
420
525
|
? this.trVRendererConfig.panelBodyCreator(context)
|
421
|
-
: this.trVRendererConfig.panelBody
|
526
|
+
: this.trVRendererConfig.panelBody!,
|
527
|
+
panelById: store.activeId
|
422
528
|
})
|
423
529
|
});
|
424
530
|
}
|