tianheng-ui 0.0.71 → 0.0.73
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/lib/tianheng-ui.js +12 -12
- package/package.json +1 -1
- package/packages/FormMaking/Container.vue +7 -6
- package/packages/FormMaking/WidgetConfig.vue +96 -97
- package/packages/FormMaking/index.js +1 -1
- package/packages/FormMaking/making.js +1 -1
- package/packages/FormMaking/styles/index.scss +4 -0
package/package.json
CHANGED
@@ -112,7 +112,7 @@
|
|
112
112
|
</div>
|
113
113
|
<slot name="action"> </slot>
|
114
114
|
<el-popover
|
115
|
-
placement="
|
115
|
+
placement="bottom"
|
116
116
|
trigger="hover"
|
117
117
|
style="margin:0 10px;"
|
118
118
|
>
|
@@ -230,6 +230,7 @@
|
|
230
230
|
<th-dialog
|
231
231
|
title="导入JSON"
|
232
232
|
:visible="dialog.import.visible"
|
233
|
+
:modal-append-to-body="false"
|
233
234
|
@on-close="dialog.import.visible = false"
|
234
235
|
@on-affirm="handleUploadJson"
|
235
236
|
@on-fullscreen="$refs.valueCodeEditor.resize()"
|
@@ -247,7 +248,8 @@
|
|
247
248
|
<!-- 预览 -->
|
248
249
|
<th-dialog
|
249
250
|
title="预览"
|
250
|
-
|
251
|
+
v-model="dialog.preview.visible"
|
252
|
+
:modal-append-to-body="false"
|
251
253
|
@on-close="dialog.preview.visible = false"
|
252
254
|
>
|
253
255
|
<generate-form
|
@@ -278,6 +280,7 @@
|
|
278
280
|
<th-dialog
|
279
281
|
title="获取数据"
|
280
282
|
:visible="dialog.data.visible"
|
283
|
+
:modal-append-to-body="false"
|
281
284
|
@on-close="dialog.data.visible = false"
|
282
285
|
@on-fullscreen="$refs.dataCodeEditor.resize()"
|
283
286
|
>
|
@@ -300,6 +303,7 @@
|
|
300
303
|
<th-dialog
|
301
304
|
title="生成JSON"
|
302
305
|
:visible="dialog.config.visible"
|
306
|
+
:modal-append-to-body="false"
|
303
307
|
@on-close="dialog.config.visible = false"
|
304
308
|
@on-fullscreen="$refs.jsonCodeEditor.resize()"
|
305
309
|
>
|
@@ -324,6 +328,7 @@
|
|
324
328
|
title="生成代码"
|
325
329
|
:visible="dialog.code.visible"
|
326
330
|
:showFooter="false"
|
331
|
+
:modal-append-to-body="false"
|
327
332
|
@on-close="dialog.code.visible = false"
|
328
333
|
@on-fullscreen="handleDialogFullscreen"
|
329
334
|
>
|
@@ -363,8 +368,6 @@ import WidgetConfig from "./WidgetConfig";
|
|
363
368
|
import FormConfig from "./FormConfig";
|
364
369
|
import WidgetForm from "./WidgetForm";
|
365
370
|
import GenerateForm from "./GenerateForm";
|
366
|
-
import ThDialog from "ui/Dialog/index.vue";
|
367
|
-
import ThCodeEditor from "ui/CodeEditor/index.vue";
|
368
371
|
import {
|
369
372
|
basicComponents,
|
370
373
|
advanceComponents,
|
@@ -383,8 +386,6 @@ export default {
|
|
383
386
|
FormConfig,
|
384
387
|
WidgetForm,
|
385
388
|
GenerateForm,
|
386
|
-
ThDialog,
|
387
|
-
ThCodeEditor
|
388
389
|
},
|
389
390
|
props: {
|
390
391
|
preview: {
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<template>
|
2
|
-
<div v-if="show">
|
2
|
+
<div class="widgetConfig" v-if="show">
|
3
3
|
<component
|
4
4
|
:widget="data"
|
5
5
|
:config="config"
|
@@ -12,6 +12,7 @@
|
|
12
12
|
<th-dialog
|
13
13
|
title="动作设置"
|
14
14
|
v-model="eventsDialog.visible"
|
15
|
+
:modal-append-to-body="false"
|
15
16
|
@on-fullscreen="$refs.codeEditor && $refs.codeEditor.resize()"
|
16
17
|
>
|
17
18
|
<div class="eventsSetting">
|
@@ -347,127 +348,125 @@ export default {
|
|
347
348
|
</script>
|
348
349
|
|
349
350
|
<style lang="less" scoped>
|
350
|
-
.
|
351
|
-
|
352
|
-
|
351
|
+
.widgetConfig {
|
352
|
+
.remoteApis {
|
353
|
+
width: 100%;
|
354
|
+
margin-bottom: 6px;
|
353
355
|
|
354
|
-
|
355
|
-
|
356
|
-
|
356
|
+
/deep/ .el-input--prefix .el-input__inner {
|
357
|
+
padding-left: 85px;
|
358
|
+
}
|
357
359
|
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
360
|
+
/deep/ .el-input__prefix {
|
361
|
+
left: 0;
|
362
|
+
width: 75px;
|
363
|
+
color: #999;
|
364
|
+
}
|
362
365
|
}
|
363
|
-
}
|
364
366
|
|
365
|
-
|
366
|
-
|
367
|
-
}
|
368
|
-
|
369
|
-
.el-dialog__body {
|
370
|
-
padding: 20px;
|
371
|
-
}
|
367
|
+
.el-dialog__body {
|
368
|
+
padding: 20px;
|
369
|
+
}
|
372
370
|
|
373
|
-
.eventsSetting {
|
374
|
-
|
375
|
-
|
376
|
-
|
371
|
+
.eventsSetting {
|
372
|
+
height: 100%;
|
373
|
+
display: flex;
|
374
|
+
border: 1px solid #eee;
|
377
375
|
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
|
376
|
+
.list {
|
377
|
+
width: 270px;
|
378
|
+
min-height: 430px;
|
379
|
+
overflow-y: overlay;
|
380
|
+
border-right: 1px solid #eee;
|
383
381
|
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
|
382
|
+
.list-header {
|
383
|
+
position: sticky;
|
384
|
+
top: 0;
|
385
|
+
display: flex;
|
386
|
+
align-items: center;
|
387
|
+
justify-content: space-between;
|
388
|
+
padding: 5px;
|
389
|
+
line-height: 30px;
|
390
|
+
border-bottom: 1px solid #eee;
|
391
|
+
background: #f2f6fc;
|
392
|
+
}
|
395
393
|
|
396
|
-
|
397
|
-
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
|
394
|
+
.list-item {
|
395
|
+
display: flex;
|
396
|
+
// align-items: center;
|
397
|
+
margin: 5px;
|
398
|
+
padding: 10px;
|
399
|
+
border-radius: 3px;
|
400
|
+
border: 1px solid #dcdfe6;
|
401
|
+
transition: 0.25s;
|
404
402
|
|
405
|
-
|
406
|
-
|
407
|
-
|
408
|
-
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
|
403
|
+
.list-item-title {
|
404
|
+
color: var(--th-green);
|
405
|
+
}
|
406
|
+
.list-item-value {
|
407
|
+
flex: 1;
|
408
|
+
padding: 0 5px;
|
409
|
+
}
|
410
|
+
i {
|
411
|
+
cursor: pointer;
|
412
|
+
}
|
414
413
|
}
|
415
|
-
}
|
416
414
|
|
417
|
-
|
418
|
-
|
415
|
+
.list-item:hover {
|
416
|
+
background-color: #f2f6fc;
|
417
|
+
}
|
419
418
|
}
|
420
|
-
}
|
421
419
|
|
422
|
-
|
423
|
-
|
424
|
-
|
420
|
+
.detail {
|
421
|
+
flex: 1;
|
422
|
+
padding: 10px;
|
425
423
|
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
|
424
|
+
> div:nth-child(1) {
|
425
|
+
position: relative;
|
426
|
+
display: flex;
|
427
|
+
align-items: center;
|
428
|
+
margin-bottom: 20px;
|
429
|
+
padding-left: 10px;
|
432
430
|
|
433
|
-
|
434
|
-
|
435
|
-
|
431
|
+
/deep/ .el-input {
|
432
|
+
flex: 1;
|
433
|
+
margin-left: 10px;
|
434
|
+
}
|
436
435
|
}
|
437
|
-
}
|
438
|
-
|
439
|
-
> div:nth-child(1)::after {
|
440
|
-
content: "*";
|
441
|
-
position: absolute;
|
442
|
-
left: 0;
|
443
|
-
color: red;
|
444
|
-
}
|
445
436
|
|
446
|
-
|
447
|
-
|
448
|
-
|
449
|
-
|
450
|
-
color:
|
437
|
+
> div:nth-child(1)::after {
|
438
|
+
content: "*";
|
439
|
+
position: absolute;
|
440
|
+
left: 0;
|
441
|
+
color: red;
|
451
442
|
}
|
452
443
|
|
453
|
-
> div:nth-child(
|
454
|
-
|
455
|
-
|
444
|
+
> div:nth-child(2) {
|
445
|
+
height: calc(100% - 48px);
|
446
|
+
> div:nth-child(1) {
|
447
|
+
margin-bottom: 10px;
|
448
|
+
color: var(--th-blue);
|
449
|
+
}
|
450
|
+
|
451
|
+
> div:nth-child(3) {
|
452
|
+
margin-top: 10px;
|
453
|
+
color: var(--th-blue);
|
454
|
+
}
|
456
455
|
}
|
457
456
|
}
|
458
457
|
}
|
459
|
-
|
460
|
-
|
461
|
-
width: 100%;
|
458
|
+
.selectableRange {
|
459
|
+
width: 100%;
|
462
460
|
|
463
|
-
|
464
|
-
|
461
|
+
/deep/ .el-range-separator {
|
462
|
+
width: 20px;
|
463
|
+
}
|
465
464
|
}
|
466
|
-
}
|
467
465
|
|
468
|
-
.functions {
|
469
|
-
|
470
|
-
|
466
|
+
.functions {
|
467
|
+
span {
|
468
|
+
margin: 0 5px;
|
469
|
+
}
|
471
470
|
}
|
472
471
|
}
|
473
472
|
</style>
|