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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tianheng-ui",
3
3
  "description": "A Vue.js project",
4
- "version": "0.0.71",
4
+ "version": "0.0.73",
5
5
  "author": "shu lang <403732931@qq.com>",
6
6
  "license": "MIT",
7
7
  "private": false,
@@ -112,7 +112,7 @@
112
112
  </div>
113
113
  <slot name="action"> </slot>
114
114
  <el-popover
115
- placement="top"
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
- :visible="dialog.preview.visible"
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
- .remoteApis {
351
- width: 100%;
352
- margin-bottom: 6px;
351
+ .widgetConfig {
352
+ .remoteApis {
353
+ width: 100%;
354
+ margin-bottom: 6px;
353
355
 
354
- /deep/ .el-input--prefix .el-input__inner {
355
- padding-left: 85px;
356
- }
356
+ /deep/ .el-input--prefix .el-input__inner {
357
+ padding-left: 85px;
358
+ }
357
359
 
358
- /deep/ .el-input__prefix {
359
- left: 0;
360
- width: 75px;
361
- color: #999;
360
+ /deep/ .el-input__prefix {
361
+ left: 0;
362
+ width: 75px;
363
+ color: #999;
364
+ }
362
365
  }
363
- }
364
366
 
365
- /deep/ .el-form-item__label {
366
- width: 100%;
367
- }
368
-
369
- .el-dialog__body {
370
- padding: 20px;
371
- }
367
+ .el-dialog__body {
368
+ padding: 20px;
369
+ }
372
370
 
373
- .eventsSetting {
374
- height: 100%;
375
- display: flex;
376
- border: 1px solid #eee;
371
+ .eventsSetting {
372
+ height: 100%;
373
+ display: flex;
374
+ border: 1px solid #eee;
377
375
 
378
- .list {
379
- width: 270px;
380
- min-height: 430px;
381
- overflow-y: overlay;
382
- border-right: 1px solid #eee;
376
+ .list {
377
+ width: 270px;
378
+ min-height: 430px;
379
+ overflow-y: overlay;
380
+ border-right: 1px solid #eee;
383
381
 
384
- .list-header {
385
- position: sticky;
386
- top: 0;
387
- display: flex;
388
- align-items: center;
389
- justify-content: space-between;
390
- padding: 5px;
391
- line-height: 30px;
392
- border-bottom: 1px solid #eee;
393
- background: #f2f6fc;
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
- .list-item {
397
- display: flex;
398
- // align-items: center;
399
- margin: 5px;
400
- padding: 10px;
401
- border-radius: 3px;
402
- border: 1px solid #dcdfe6;
403
- transition: 0.25s;
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
- .list-item-title {
406
- color: var(--th-green);
407
- }
408
- .list-item-value {
409
- flex: 1;
410
- padding: 0 5px;
411
- }
412
- i {
413
- cursor: pointer;
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
- .list-item:hover {
418
- background-color: #f2f6fc;
415
+ .list-item:hover {
416
+ background-color: #f2f6fc;
417
+ }
419
418
  }
420
- }
421
419
 
422
- .detail {
423
- flex: 1;
424
- padding: 10px;
420
+ .detail {
421
+ flex: 1;
422
+ padding: 10px;
425
423
 
426
- > div:nth-child(1) {
427
- position: relative;
428
- display: flex;
429
- align-items: center;
430
- margin-bottom: 20px;
431
- padding-left: 10px;
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
- /deep/ .el-input {
434
- flex: 1;
435
- margin-left: 10px;
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
- > div:nth-child(2) {
447
- height: calc(100% - 48px);
448
- > div:nth-child(1) {
449
- margin-bottom: 10px;
450
- color: var(--th-blue);
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(3) {
454
- margin-top: 10px;
455
- color: var(--th-blue);
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
- .selectableRange {
461
- width: 100%;
458
+ .selectableRange {
459
+ width: 100%;
462
460
 
463
- /deep/ .el-range-separator {
464
- width: 20px;
461
+ /deep/ .el-range-separator {
462
+ width: 20px;
463
+ }
465
464
  }
466
- }
467
465
 
468
- .functions {
469
- span {
470
- margin: 0 5px;
466
+ .functions {
467
+ span {
468
+ margin: 0 5px;
469
+ }
471
470
  }
472
471
  }
473
472
  </style>
@@ -1,6 +1,6 @@
1
1
  import "normalize.css/normalize.css";
2
2
  import "./iconfont/iconfont.css";
3
- import "./styles/cover.scss";
3
+ // import "./styles/cover.scss";
4
4
  import "./styles/index.scss";
5
5
 
6
6
  import FormMaking from "./Container.vue";
@@ -1,6 +1,6 @@
1
1
  import "normalize.css/normalize.css";
2
2
  import "./iconfont/iconfont.css";
3
- import "./styles/cover.scss";
3
+ // import "./styles/cover.scss";
4
4
  import "./styles/index.scss";
5
5
  import FormMaking from "./Container.vue";
6
6
  FormMaking.install = function(Vue) {
@@ -733,6 +733,10 @@ $primary-background-color: #ecf5ff;
733
733
  padding: 5px;
734
734
  }
735
735
  }
736
+
737
+ .el-form-item__label {
738
+ width: 100%;
739
+ }
736
740
  }
737
741
 
738
742
  .widget-actions {