@tmagic/editor 1.5.0 → 1.5.2

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.
Files changed (73) hide show
  1. package/dist/style.css +153 -6
  2. package/dist/tmagic-editor.js +907 -528
  3. package/dist/tmagic-editor.umd.cjs +932 -552
  4. package/package.json +10 -10
  5. package/src/Editor.vue +18 -5
  6. package/src/components/CodeBlockEditor.vue +3 -3
  7. package/src/components/CodeParams.vue +2 -2
  8. package/src/components/ContentMenu.vue +18 -18
  9. package/src/components/FloatingBox.vue +3 -3
  10. package/src/components/Resizer.vue +4 -4
  11. package/src/components/ScrollBar.vue +3 -3
  12. package/src/components/ScrollViewer.vue +3 -3
  13. package/src/components/SplitView.vue +2 -2
  14. package/src/components/ToolButton.vue +2 -1
  15. package/src/editorProps.ts +3 -1
  16. package/src/fields/DataSourceFieldSelect/Index.vue +6 -6
  17. package/src/fields/DataSourceInput.vue +2 -2
  18. package/src/fields/DataSourceMethods.vue +2 -2
  19. package/src/fields/DataSourceMocks.vue +0 -1
  20. package/src/fields/EventSelect.vue +0 -1
  21. package/src/fields/KeyValue.vue +2 -2
  22. package/src/hooks/use-code-block-edit.ts +2 -2
  23. package/src/hooks/use-getso.ts +7 -7
  24. package/src/index.ts +2 -1
  25. package/src/layouts/CodeEditor.vue +2 -2
  26. package/src/layouts/Framework.vue +5 -8
  27. package/src/layouts/NavMenu.vue +2 -2
  28. package/src/layouts/page-bar/PageBar.vue +3 -3
  29. package/src/layouts/page-bar/PageBarScrollContainer.vue +3 -3
  30. package/src/layouts/props-panel/FormPanel.vue +123 -0
  31. package/src/layouts/props-panel/PropsPanel.vue +146 -0
  32. package/src/layouts/props-panel/use-style-panel.ts +29 -0
  33. package/src/layouts/sidebar/Sidebar.vue +4 -1
  34. package/src/layouts/sidebar/code-block/CodeBlockList.vue +12 -1
  35. package/src/layouts/sidebar/code-block/CodeBlockListPanel.vue +35 -4
  36. package/src/layouts/sidebar/code-block/useContentMenu.ts +83 -0
  37. package/src/layouts/sidebar/data-source/DataSourceList.vue +8 -8
  38. package/src/layouts/sidebar/data-source/DataSourceListPanel.vue +40 -4
  39. package/src/layouts/sidebar/data-source/useContentMenu.ts +81 -0
  40. package/src/layouts/sidebar/layer/LayerMenu.vue +7 -13
  41. package/src/layouts/sidebar/layer/LayerPanel.vue +11 -4
  42. package/src/layouts/sidebar/layer/use-click.ts +2 -2
  43. package/src/layouts/sidebar/layer/use-keybinding.ts +2 -2
  44. package/src/layouts/workspace/Workspace.vue +9 -2
  45. package/src/layouts/workspace/viewer/NodeListMenu.vue +3 -3
  46. package/src/layouts/workspace/viewer/Stage.vue +18 -6
  47. package/src/layouts/workspace/viewer/StageOverlay.vue +2 -2
  48. package/src/layouts/workspace/viewer/ViewerMenu.vue +4 -6
  49. package/src/services/storage.ts +2 -1
  50. package/src/services/ui.ts +1 -0
  51. package/src/theme/common/var.scss +12 -10
  52. package/src/theme/component-list-panel.scss +9 -7
  53. package/src/theme/content-menu.scss +7 -5
  54. package/src/theme/data-source.scss +3 -1
  55. package/src/theme/floating-box.scss +4 -2
  56. package/src/theme/framework.scss +7 -5
  57. package/src/theme/index.scss +4 -5
  58. package/src/theme/key-value.scss +2 -2
  59. package/src/theme/layer-panel.scss +3 -1
  60. package/src/theme/layout.scss +1 -1
  61. package/src/theme/nav-menu.scss +7 -5
  62. package/src/theme/page-bar.scss +17 -15
  63. package/src/theme/props-panel.scss +81 -1
  64. package/src/theme/resizer.scss +1 -1
  65. package/src/theme/sidebar.scss +4 -2
  66. package/src/theme/stage.scss +3 -1
  67. package/src/theme/theme.scss +28 -28
  68. package/src/theme/tree.scss +14 -12
  69. package/src/type.ts +8 -0
  70. package/src/utils/content-menu.ts +2 -2
  71. package/src/utils/props.ts +45 -3
  72. package/types/index.d.ts +1796 -1230
  73. package/src/layouts/PropsPanel.vue +0 -131
package/dist/style.css CHANGED
@@ -66,18 +66,23 @@
66
66
  .tmagic-design-popper:focus {
67
67
  outline: none;
68
68
  }
69
+
69
70
  .tmagic-design-popper[data-popper-placement^=top] > .tmagic-design-popper-arrow {
70
71
  bottom: -4px;
71
72
  }
73
+
72
74
  .tmagic-design-popper[data-popper-placement^=bottom] > .tmagic-design-popper-arrow {
73
75
  top: -4px;
74
76
  }
77
+
75
78
  .tmagic-design-popper[data-popper-placement^=left] > .tmagic-design-popper-arrow {
76
79
  right: -4px;
77
80
  }
81
+
78
82
  .tmagic-design-popper[data-popper-placement^=right] > .tmagic-design-popper-arrow {
79
83
  left: -4px;
80
84
  }
85
+
81
86
  .tmagic-design-popper-arrow,
82
87
  .tmagic-design-popper-arrow::before {
83
88
  position: absolute;
@@ -85,14 +90,17 @@
85
90
  height: 8px;
86
91
  background: inherit;
87
92
  }
93
+
88
94
  .tmagic-design-popper-arrow {
89
95
  visibility: hidden;
90
96
  }
97
+
91
98
  .tmagic-design-popper-arrow::before {
92
99
  visibility: visible;
93
100
  content: "";
94
101
  transform: rotate(45deg);
95
102
  }
103
+
96
104
  .m-table .el-button.action-btn + .el-button.action-btn {
97
105
  margin-left: 0;
98
106
  }
@@ -106,9 +114,11 @@
106
114
  .m-table .el-table__row.el-table__row--level-1 {
107
115
  color: #999;
108
116
  }
117
+
109
118
  .tmagic-design-form-inline .m-form-container {
110
119
  display: inline-flex;
111
120
  }
121
+
112
122
  .m-form-dialog .el-dialog__body {
113
123
  padding: 0 !important;
114
124
  }
@@ -118,6 +128,7 @@
118
128
  .m-form-dialog .el-table .m-form-item .el-form-item {
119
129
  margin-bottom: 0;
120
130
  }
131
+
121
132
  .m-form-drawer .el-drawer__header {
122
133
  margin: 0;
123
134
  }
@@ -126,13 +137,16 @@
126
137
  overflow-y: auto;
127
138
  overflow-x: hidden;
128
139
  }
140
+
129
141
  .fade-enter-active,
130
142
  .fade-leave-active {
131
143
  transition: opacity 0.5s;
132
144
  }
145
+
133
146
  .fade-enter, .fade-leave-to {
134
147
  opacity: 0;
135
148
  }
149
+
136
150
  .m-form .m-form-tip {
137
151
  color: rgba(0, 0, 0, 0.45);
138
152
  font-size: 12px;
@@ -154,15 +168,18 @@
154
168
  .m-form .t-form__item.tmagic-form-hidden > .t-form__label {
155
169
  display: none;
156
170
  }
171
+
157
172
  .magic-datetime-picker-popper .el-picker-panel__footer button:first-child {
158
173
  display: none;
159
174
  }
175
+
160
176
  .m-form-validate__warning {
161
177
  color: var(--el-color-warning);
162
178
  font-size: 12px;
163
179
  width: 100%;
164
180
  line-height: 1.4;
165
181
  }
182
+
166
183
  .tmagic-form-text-popper {
167
184
  min-width: 150px;
168
185
  line-height: 1.4;
@@ -179,18 +196,23 @@
179
196
  .tmagic-form-text-popper:focus {
180
197
  outline: none;
181
198
  }
199
+
182
200
  .tmagic-form-text-popper[data-popper-placement^=top] > .tmagic-form-text-popper-arrow {
183
201
  bottom: -4px;
184
202
  }
203
+
185
204
  .tmagic-form-text-popper[data-popper-placement^=bottom] > .tmagic-form-text-popper-arrow {
186
205
  top: -4px;
187
206
  }
207
+
188
208
  .tmagic-form-text-popper[data-popper-placement^=left] > .tmagic-form-text-popper-arrow {
189
209
  right: -4px;
190
210
  }
211
+
191
212
  .tmagic-form-text-popper[data-popper-placement^=right] > .tmagic-form-text-popper-arrow {
192
213
  left: -4px;
193
214
  }
215
+
194
216
  .tmagic-form-text-popper-arrow,
195
217
  .tmagic-form-text-popper-arrow::before {
196
218
  position: absolute;
@@ -198,17 +220,21 @@
198
220
  height: 8px;
199
221
  background: inherit;
200
222
  }
223
+
201
224
  .tmagic-form-text-popper-arrow {
202
225
  visibility: hidden;
203
226
  }
227
+
204
228
  .tmagic-form-text-popper-arrow::before {
205
229
  visibility: visible;
206
230
  content: "";
207
231
  transform: rotate(45deg);
208
232
  }
233
+
209
234
  div.m-fields-link {
210
235
  width: fit-content;
211
236
  }
237
+
212
238
  fieldset.m-fieldset {
213
239
  position: relative;
214
240
  border: 1px solid rgb(229, 229, 229);
@@ -234,6 +260,7 @@ fieldset.m-fieldset legend {
234
260
  fieldset.m-fieldset .m-form-tip {
235
261
  margin-left: 5px;
236
262
  }
263
+
237
264
  .m-fields-group-list .el-button--text {
238
265
  padding: 0;
239
266
  margin-bottom: 7px;
@@ -252,6 +279,7 @@ fieldset.m-fieldset .m-form-tip {
252
279
  .m-fields-group-list .m-fields-group-list-item:last-of-type {
253
280
  border-bottom: 0;
254
281
  }
282
+
255
283
  .m-form-panel .el-card__header:hover {
256
284
  background: #f2f6fc;
257
285
  }
@@ -264,12 +292,15 @@ fieldset.m-fieldset .m-form-tip {
264
292
  .m-form-panel .m-form-tip {
265
293
  margin-left: 5px;
266
294
  }
295
+
267
296
  .m-container-panel:not(:last-of-type) {
268
297
  margin-bottom: 20px;
269
298
  }
299
+
270
300
  .m-fields-table-wrap {
271
301
  width: 100%;
272
302
  }
303
+
273
304
  .m-fields-table {
274
305
  width: 100%;
275
306
  }
@@ -319,9 +350,11 @@ fieldset.m-fieldset .m-form-tip {
319
350
  color: #f56c6c;
320
351
  cursor: pointer;
321
352
  }
353
+
322
354
  .m-select {
323
355
  width: 100%;
324
356
  }
357
+
325
358
  .magic-form-dynamic-tab .el-tabs__header.is-top {
326
359
  padding-right: 8px;
327
360
  }
@@ -339,12 +372,15 @@ fieldset.m-fieldset .m-form-tip {
339
372
  .magic-form-dynamic-tab .el-tabs__header.is-top .el-tabs__new-tab .el-icon-plus {
340
373
  display: none;
341
374
  }
375
+
342
376
  .magic-form-tab {
343
377
  margin-bottom: 10px;
344
378
  }
379
+
345
380
  .diff-count-badge {
346
381
  top: -10px;
347
382
  }
383
+
348
384
  .m-fields-number-range {
349
385
  display: flex;
350
386
  align-items: center;
@@ -352,6 +388,7 @@ fieldset.m-fieldset .m-form-tip {
352
388
  .m-fields-number-range .split-tag {
353
389
  margin: 0 5px;
354
390
  }
391
+
355
392
  .m-form-box {
356
393
  display: flex;
357
394
  flex-direction: column;
@@ -364,6 +401,7 @@ fieldset.m-fieldset .m-form-tip {
364
401
  align-items: center;
365
402
  justify-content: space-between;
366
403
  }
404
+
367
405
  .tmagic-design-input.search-input {
368
406
  background: #fff;
369
407
  color: #bbbbbb;
@@ -378,6 +416,7 @@ fieldset.m-fieldset .m-form-tip {
378
416
  .tmagic-design-input.search-input .el-input__prefix {
379
417
  padding: 7px;
380
418
  }
419
+
381
420
  .m-editor-nav-menu {
382
421
  display: flex;
383
422
  z-index: 5;
@@ -444,6 +483,7 @@ fieldset.m-fieldset .m-form-tip {
444
483
  .m-editor-nav-menu .menu-item.rule .el-icon {
445
484
  transform: rotate(-90deg);
446
485
  }
486
+
447
487
  .m-editor {
448
488
  display: flex;
449
489
  flex-direction: column;
@@ -501,6 +541,7 @@ fieldset.m-fieldset .m-form-tip {
501
541
  border-color: #2882e0;
502
542
  color: #2882e0;
503
543
  }
544
+
504
545
  .m-editor-sidebar {
505
546
  display: flex;
506
547
  height: 100%;
@@ -558,12 +599,14 @@ fieldset.m-fieldset .m-form-tip {
558
599
  .m-editor-sidebar .fold-icon:hover {
559
600
  background: rgba(0, 0, 0, 0.2);
560
601
  }
602
+
561
603
  .m-editor-slide-list-box > div:first-child {
562
604
  min-width: 240px;
563
605
  }
564
606
  .m-editor-slide-list-box .m-form-box {
565
607
  border-left: 1px solid #e0e0e0;
566
608
  }
609
+
567
610
  .m-editor-layer-panel {
568
611
  background: #ffffff;
569
612
  }
@@ -586,6 +629,7 @@ fieldset.m-fieldset .m-form-tip {
586
629
  .m-editor-layer-panel .search-wrapper .tmagic-design-button {
587
630
  margin-right: 10px;
588
631
  }
632
+
589
633
  .ui-component-panel.tmagic-design-collapse {
590
634
  border-top: 0 !important;
591
635
  margin-top: 48px;
@@ -674,6 +718,7 @@ fieldset.m-fieldset .m-form-tip {
674
718
  padding-top: 48px;
675
719
  position: relative;
676
720
  }
721
+
677
722
  .m-editor-resizer {
678
723
  border-left: 1px solid transparent;
679
724
  border-right: 1px solid transparent;
@@ -694,14 +739,14 @@ fieldset.m-fieldset .m-form-tip {
694
739
  visibility: visible;
695
740
  opacity: 1;
696
741
  }
697
- .m-editor-resizer.m-editor-resizer-draging::after {
742
+ .m-editor-resizer.m-editor-resizer-dragging::after {
698
743
  content: "";
699
744
  position: absolute;
700
745
  width: 600px;
701
746
  height: 100%;
702
747
  left: 0;
703
748
  }
704
- .m-editor-resizer.m-editor-resizer-draging::before {
749
+ .m-editor-resizer.m-editor-resizer-dragging::before {
705
750
  content: "";
706
751
  position: absolute;
707
752
  width: 600px;
@@ -733,6 +778,7 @@ fieldset.m-fieldset .m-form-tip {
733
778
  color: #fff;
734
779
  font-size: 18px;
735
780
  }
781
+
736
782
  .m-editor-workspace {
737
783
  height: 100%;
738
784
  width: 100%;
@@ -741,6 +787,7 @@ fieldset.m-fieldset .m-form-tip {
741
787
  .m-editor-workspace:focus-visible {
742
788
  outline: 0;
743
789
  }
790
+
744
791
  .m-editor-page-bar-tabs {
745
792
  position: fixed;
746
793
  bottom: 0;
@@ -748,6 +795,7 @@ fieldset.m-fieldset .m-form-tip {
748
795
  width: 100%;
749
796
  user-select: none;
750
797
  }
798
+
751
799
  .m-editor-page-list-item {
752
800
  display: flex;
753
801
  width: 100%;
@@ -760,6 +808,7 @@ fieldset.m-fieldset .m-form-tip {
760
808
  .m-editor-page-list-item:hover {
761
809
  background-color: #f3f5f9;
762
810
  }
811
+
763
812
  .m-editor-page-bar {
764
813
  display: flex;
765
814
  width: 100%;
@@ -815,6 +864,7 @@ fieldset.m-fieldset .m-form-tip {
815
864
  .m-editor-page-bar-item-left-icon {
816
865
  right: 34px;
817
866
  }
867
+
818
868
  .page-bar-popover.tmagic-design-popper {
819
869
  padding: 4px 0;
820
870
  }
@@ -832,6 +882,7 @@ fieldset.m-fieldset .m-form-tip {
832
882
  .page-bar-popover .menu-item.active .tmagic-design-button {
833
883
  color: #2882e0;
834
884
  }
885
+
835
886
  .m-editor-page-bar-search-panel {
836
887
  position: absolute;
837
888
  bottom: 32px;
@@ -843,8 +894,62 @@ fieldset.m-fieldset .m-form-tip {
843
894
  .m-editor-page-bar-search-panel .tmagic-design-form-item {
844
895
  margin-bottom: 0;
845
896
  }
897
+
846
898
  .m-editor-props-panel {
847
- padding: 0 10px 50px 10px;
899
+ height: 100%;
900
+ position: relative;
901
+ --props-style-panel-width: 300px;
902
+ }
903
+ .m-editor-props-panel .m-editor-props-form-panel {
904
+ padding-bottom: 10px;
905
+ position: relative;
906
+ height: 100%;
907
+ box-sizing: border-box;
908
+ }
909
+ .m-editor-props-panel .m-editor-props-form-panel .tmagic-design-scrollbar {
910
+ height: 100%;
911
+ }
912
+ .m-editor-props-panel .m-editor-props-property-panel.show-style-panel {
913
+ padding-right: var(--props-style-panel-width);
914
+ }
915
+ .m-editor-props-panel .m-editor-props-property-panel.show-style-panel .m-editor-props-panel-src-icon {
916
+ right: calc(15px + var(--props-style-panel-width));
917
+ }
918
+ .m-editor-props-panel .m-editor-props-property-panel .tmagic-design-form {
919
+ padding-right: 10px;
920
+ padding-left: 10px;
921
+ }
922
+ .m-editor-props-panel .m-editor-props-property-panel .tmagic-design-form > .m-container-tab > .tmagic-design-tabs > .el-tabs__content {
923
+ padding-top: 55px;
924
+ }
925
+ .m-editor-props-panel .m-editor-props-property-panel .tmagic-design-form > .m-container-tab > .tmagic-design-tabs > .el-tabs__header.is-top {
926
+ position: absolute;
927
+ top: 0;
928
+ width: 100%;
929
+ background: #fff;
930
+ z-index: 2;
931
+ }
932
+ .m-editor-props-panel .m-editor-props-style-panel {
933
+ position: absolute;
934
+ width: var(--props-style-panel-width);
935
+ right: 0;
936
+ top: 0;
937
+ background: #fff;
938
+ z-index: 12;
939
+ }
940
+ .m-editor-props-panel .m-editor-props-style-panel .tmagic-design-scrollbar {
941
+ height: calc(100% - 38px - 1px);
942
+ }
943
+ .m-editor-props-panel .m-editor-props-style-panel .m-editor-props-style-panel-title {
944
+ text-align: center;
945
+ font-size: 14px;
946
+ font-weight: 600;
947
+ padding: 0 5px;
948
+ height: 38px;
949
+ display: flex;
950
+ justify-content: space-between;
951
+ align-items: center;
952
+ border-bottom: 2px solid #d9dbdd;
848
953
  }
849
954
  .m-editor-props-panel .m-editor-props-panel-src-icon {
850
955
  position: absolute;
@@ -852,6 +957,12 @@ fieldset.m-fieldset .m-form-tip {
852
957
  bottom: 15px;
853
958
  z-index: 30;
854
959
  }
960
+ .m-editor-props-panel .m-editor-props-panel-style-icon {
961
+ position: absolute;
962
+ right: 15px;
963
+ bottom: 60px;
964
+ z-index: 30;
965
+ }
855
966
  .m-editor-props-panel .m-editor-props-panel-src-code.magic-code-editor {
856
967
  position: absolute;
857
968
  left: 0;
@@ -873,11 +984,13 @@ fieldset.m-fieldset .m-form-tip {
873
984
  .m-editor-props-panel .m-fields-group-list .tmagic-design-table th {
874
985
  font-size: 12px;
875
986
  }
987
+
876
988
  .m-editor-props-panel-popper.small span,
877
989
  .m-editor-props-panel-popper.small a,
878
990
  .m-editor-props-panel-popper.small p {
879
991
  font-size: 12px;
880
992
  }
993
+
881
994
  .magic-editor-content-menu {
882
995
  position: fixed;
883
996
  font-size: 12px;
@@ -942,6 +1055,7 @@ fieldset.m-fieldset .m-form-tip {
942
1055
  .magic-editor-content-menu .menu-item.button.active.menu-item i {
943
1056
  color: #fff;
944
1057
  }
1058
+
945
1059
  .m-editor-stage {
946
1060
  position: relative;
947
1061
  width: 100%;
@@ -954,6 +1068,7 @@ fieldset.m-fieldset .m-form-tip {
954
1068
  .m-editor-stage:focus-visible {
955
1069
  outline: none;
956
1070
  }
1071
+
957
1072
  .m-editor-stage-container {
958
1073
  width: 100%;
959
1074
  height: 100%;
@@ -966,6 +1081,7 @@ fieldset.m-fieldset .m-form-tip {
966
1081
  .m-editor-stage-container::-webkit-scrollbar {
967
1082
  width: 0 !important;
968
1083
  }
1084
+
969
1085
  .m-editor-stage-overlay {
970
1086
  position: absolute;
971
1087
  left: 0;
@@ -977,17 +1093,20 @@ fieldset.m-fieldset .m-form-tip {
977
1093
  z-index: 20;
978
1094
  overflow: auto;
979
1095
  }
1096
+
980
1097
  .m-editor-stage-overlay-container {
981
1098
  position: relative;
982
1099
  flex-shrink: 0;
983
1100
  margin: auto;
984
1101
  box-shadow: rgba(0, 0, 0, 0.04) 0px 3px 5px;
985
1102
  }
1103
+
986
1104
  .m-editor-stage-overlay-close.tmagic-design-icon {
987
1105
  position: fixed;
988
1106
  right: 20px;
989
1107
  top: 10px;
990
1108
  }
1109
+
991
1110
  .m-editor-stage-float-button {
992
1111
  cursor: pointer;
993
1112
  transform: translateY(-50%);
@@ -1003,18 +1122,22 @@ fieldset.m-fieldset .m-form-tip {
1003
1122
  color: rgba(0, 0, 0, 0.88);
1004
1123
  box-shadow: 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05);
1005
1124
  }
1125
+
1006
1126
  .m-editor-node-list-menu {
1007
1127
  height: 100%;
1008
1128
  width: 100%;
1009
1129
  min-width: 300px;
1010
1130
  max-height: 500px;
1011
1131
  }
1132
+
1012
1133
  .m-container-vs-code .el-form-item {
1013
1134
  margin-bottom: 0;
1014
1135
  }
1136
+
1015
1137
  .magic-code-editor {
1016
1138
  width: 100%;
1017
1139
  }
1140
+
1018
1141
  .magic-code-editor-wrapper {
1019
1142
  width: 100%;
1020
1143
  height: 100%;
@@ -1039,6 +1162,7 @@ fieldset.m-fieldset .m-form-tip {
1039
1162
  right: 0;
1040
1163
  z-index: 11;
1041
1164
  }
1165
+
1042
1166
  .tmagic-design-icon {
1043
1167
  --color: inherit;
1044
1168
  height: 1em;
@@ -1050,12 +1174,14 @@ fieldset.m-fieldset .m-form-tip {
1050
1174
  max-width: 100%;
1051
1175
  max-height: 100%;
1052
1176
  }
1177
+
1053
1178
  .m-fields-code-select {
1054
1179
  width: 100%;
1055
1180
  }
1056
1181
  .m-fields-code-select .el-card__header {
1057
1182
  display: none;
1058
1183
  }
1184
+
1059
1185
  .m-fields-event-select {
1060
1186
  width: 100%;
1061
1187
  }
@@ -1072,10 +1198,12 @@ fieldset.m-fieldset .m-form-tip {
1072
1198
  .m-fields-event-select .el-card.is-always-shadow {
1073
1199
  box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.12);
1074
1200
  }
1201
+
1075
1202
  .m-fields-code-select-col,
1076
1203
  .m-fields-data-source-method-select {
1077
1204
  width: 100%;
1078
1205
  }
1206
+
1079
1207
  .code-select-container,
1080
1208
  .data-source-method-select-container {
1081
1209
  display: flex;
@@ -1091,20 +1219,23 @@ fieldset.m-fieldset .m-form-tip {
1091
1219
  cursor: pointer;
1092
1220
  margin-right: 5px;
1093
1221
  }
1222
+
1094
1223
  .m-editor-layout {
1095
1224
  width: 100%;
1096
1225
  display: flex;
1097
1226
  justify-self: space-between;
1098
1227
  }
1099
- .m-editor-layout:has(.m-editor-resizer-draging) {
1228
+ .m-editor-layout:has(.m-editor-resizer-dragging) {
1100
1229
  overflow: hidden;
1101
1230
  }
1231
+
1102
1232
  .m-editor-breadcrumb {
1103
1233
  position: absolute;
1104
1234
  left: 5px;
1105
1235
  top: 5px;
1106
1236
  z-index: 10;
1107
1237
  }
1238
+
1108
1239
  .data-source-list-panel .list-container .list-item .codeIcon {
1109
1240
  width: 22px;
1110
1241
  height: 22px;
@@ -1115,6 +1246,7 @@ fieldset.m-fieldset .m-form-tip {
1115
1246
  height: 22px;
1116
1247
  margin-right: 5px;
1117
1248
  }
1249
+
1118
1250
  .data-source-list-panel-add-menu {
1119
1251
  padding: 4px 0;
1120
1252
  }
@@ -1126,6 +1258,7 @@ fieldset.m-fieldset .m-form-tip {
1126
1258
  .data-source-list-panel-add-menu .menu-item:hover {
1127
1259
  background-color: #f3f5f9;
1128
1260
  }
1261
+
1129
1262
  .m-editor-data-source-fields {
1130
1263
  width: 100%;
1131
1264
  }
@@ -1137,6 +1270,7 @@ fieldset.m-fieldset .m-form-tip {
1137
1270
  justify-content: flex-end;
1138
1271
  margin-top: 15px;
1139
1272
  }
1273
+
1140
1274
  .m-editor-data-source-methods {
1141
1275
  width: 100%;
1142
1276
  }
@@ -1148,6 +1282,7 @@ fieldset.m-fieldset .m-form-tip {
1148
1282
  justify-content: flex-end;
1149
1283
  margin-top: 15px;
1150
1284
  }
1285
+
1151
1286
  .tmagic-data-source-input-text .el-input__wrapper.tmagic-data-source-input-text-wrapper {
1152
1287
  overflow: hidden;
1153
1288
  padding-right: 30px;
@@ -1162,23 +1297,28 @@ fieldset.m-fieldset .m-form-tip {
1162
1297
  position: absolute;
1163
1298
  right: 7px;
1164
1299
  }
1300
+
1165
1301
  .m-fields-key-value {
1166
1302
  display: flex;
1167
1303
  justify-items: center;
1168
1304
  align-items: top;
1169
1305
  width: 100%;
1170
1306
  }
1307
+
1171
1308
  .m-fields-key-value-item {
1172
1309
  display: flex;
1173
1310
  margin-bottom: 10px;
1174
1311
  align-items: center;
1175
1312
  }
1176
- .m-fileds-key-value-delimiter {
1313
+
1314
+ .m-fields-key-value-delimiter {
1177
1315
  margin: 0 10px;
1178
1316
  }
1179
- .m-fileds-key-value-delete {
1317
+
1318
+ .m-fields-key-value-delete {
1180
1319
  margin-left: 10px;
1181
1320
  }
1321
+
1182
1322
  .m-editor-tree {
1183
1323
  color: #313a40;
1184
1324
  font-size: 13px;
@@ -1247,6 +1387,7 @@ fieldset.m-fieldset .m-form-tip {
1247
1387
  color: #909399;
1248
1388
  font-size: 14px;
1249
1389
  }
1390
+
1250
1391
  .m-editor-float-box {
1251
1392
  position: absolute;
1252
1393
  background-color: #fff;
@@ -1273,9 +1414,11 @@ fieldset.m-fieldset .m-form-tip {
1273
1414
  flex: 1;
1274
1415
  padding: 0 16px;
1275
1416
  }
1417
+
1276
1418
  .m-editor-floating-box-moveable {
1277
1419
  opacity: 0;
1278
1420
  }
1421
+
1279
1422
  .m-fields-page-fragment-select {
1280
1423
  width: 100%;
1281
1424
  }
@@ -1290,6 +1433,7 @@ fieldset.m-fieldset .m-form-tip {
1290
1433
  .m-fields-page-fragment-select .page-fragment-select-container .icon {
1291
1434
  margin-left: 10px;
1292
1435
  }
1436
+
1293
1437
  .m-fields-data-source-select,
1294
1438
  .m-fields-data-source-field-select,
1295
1439
  .m-fields-data-source-method-select .data-source-method-select-container,
@@ -1304,6 +1448,7 @@ fieldset.m-fieldset .m-form-tip {
1304
1448
  .m-fields-code-select-col .code-select-container .m-fields-select-action-button {
1305
1449
  margin-left: 5px;
1306
1450
  }
1451
+
1307
1452
  .m-fields-data-source-field-select {
1308
1453
  width: 100%;
1309
1454
  }
@@ -1318,10 +1463,12 @@ fieldset.m-fieldset .m-form-tip {
1318
1463
  .m-fields-data-source-field-select .m-editor-data-source-field-select .tmagic-design-cascader {
1319
1464
  flex: 2;
1320
1465
  }
1466
+
1321
1467
  .fade-enter-active,
1322
1468
  .fade-leave-active {
1323
1469
  transition: opacity 0.5s;
1324
1470
  }
1471
+
1325
1472
  .fade-enter, .fade-leave-to {
1326
1473
  opacity: 0;
1327
1474
  }