@tmagic/editor 1.5.0-beta.9 → 1.5.1
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/dist/{style.css → tmagic-editor.css} +228 -22
- package/dist/tmagic-editor.js +1670 -1012
- package/dist/tmagic-editor.umd.cjs +1705 -1048
- package/package.json +14 -12
- package/src/Editor.vue +24 -6
- package/src/components/CodeBlockEditor.vue +14 -8
- package/src/components/CodeParams.vue +5 -5
- package/src/components/ContentMenu.vue +18 -18
- package/src/components/FloatingBox.vue +3 -3
- package/src/components/Resizer.vue +4 -4
- package/src/components/ScrollBar.vue +3 -3
- package/src/components/ScrollViewer.vue +3 -3
- package/src/components/SplitView.vue +2 -2
- package/src/components/ToolButton.vue +2 -1
- package/src/editorProps.ts +6 -2
- package/src/fields/Code.vue +1 -2
- package/src/fields/CodeSelect.vue +13 -11
- package/src/fields/CodeSelectCol.vue +32 -5
- package/src/fields/CondOpSelect.vue +5 -2
- package/src/fields/DataSourceFields.vue +31 -12
- package/src/fields/DataSourceInput.vue +2 -2
- package/src/fields/DataSourceMethods.vue +72 -14
- package/src/fields/DataSourceMocks.vue +0 -1
- package/src/fields/DisplayConds.vue +8 -3
- package/src/fields/EventSelect.vue +28 -12
- package/src/fields/KeyValue.vue +17 -12
- package/src/fields/UISelect.vue +6 -3
- package/src/hooks/index.ts +0 -1
- package/src/hooks/use-code-block-edit.ts +3 -3
- package/src/hooks/use-data-source-edit.ts +3 -2
- package/src/hooks/use-filter.ts +1 -1
- package/src/hooks/use-getso.ts +7 -7
- package/src/hooks/use-node-status.ts +2 -2
- package/src/index.ts +2 -1
- package/src/initService.ts +177 -74
- package/src/layouts/CodeEditor.vue +2 -2
- package/src/layouts/Framework.vue +13 -12
- package/src/layouts/NavMenu.vue +2 -2
- package/src/layouts/page-bar/AddButton.vue +29 -9
- package/src/layouts/page-bar/PageBar.vue +79 -66
- package/src/layouts/page-bar/PageBarScrollContainer.vue +84 -98
- package/src/layouts/page-bar/PageList.vue +5 -3
- package/src/layouts/page-bar/Search.vue +67 -0
- package/src/layouts/props-panel/FormPanel.vue +123 -0
- package/src/layouts/props-panel/PropsPanel.vue +146 -0
- package/src/layouts/props-panel/use-style-panel.ts +29 -0
- package/src/layouts/sidebar/Sidebar.vue +7 -1
- package/src/layouts/sidebar/code-block/CodeBlockList.vue +18 -2
- package/src/layouts/sidebar/code-block/CodeBlockListPanel.vue +35 -4
- package/src/layouts/sidebar/code-block/useContentMenu.ts +83 -0
- package/src/layouts/sidebar/data-source/DataSourceConfigPanel.vue +7 -5
- package/src/layouts/sidebar/data-source/DataSourceList.vue +13 -8
- package/src/layouts/sidebar/data-source/DataSourceListPanel.vue +40 -4
- package/src/layouts/sidebar/data-source/useContentMenu.ts +81 -0
- package/src/layouts/sidebar/layer/LayerMenu.vue +7 -13
- package/src/layouts/sidebar/layer/LayerPanel.vue +11 -4
- package/src/layouts/sidebar/layer/use-click.ts +2 -2
- package/src/layouts/sidebar/layer/use-keybinding.ts +2 -2
- package/src/layouts/sidebar/layer/use-node-status.ts +2 -3
- package/src/layouts/workspace/Workspace.vue +13 -3
- package/src/layouts/workspace/viewer/NodeListMenu.vue +3 -3
- package/src/layouts/workspace/viewer/Stage.vue +41 -11
- package/src/layouts/workspace/viewer/StageOverlay.vue +2 -2
- package/src/layouts/workspace/viewer/ViewerMenu.vue +4 -6
- package/src/services/dataSource.ts +12 -5
- package/src/services/dep.ts +61 -13
- package/src/services/editor.ts +46 -51
- package/src/services/storage.ts +2 -1
- package/src/services/ui.ts +1 -0
- package/src/theme/common/var.scss +12 -10
- package/src/theme/component-list-panel.scss +9 -7
- package/src/theme/content-menu.scss +7 -5
- package/src/theme/data-source.scss +3 -1
- package/src/theme/floating-box.scss +4 -2
- package/src/theme/framework.scss +7 -5
- package/src/theme/index.scss +4 -5
- package/src/theme/key-value.scss +2 -2
- package/src/theme/layer-panel.scss +3 -1
- package/src/theme/layout.scss +1 -1
- package/src/theme/nav-menu.scss +7 -5
- package/src/theme/page-bar.scss +51 -27
- package/src/theme/props-panel.scss +81 -1
- package/src/theme/resizer.scss +1 -1
- package/src/theme/search-input.scss +1 -0
- package/src/theme/sidebar.scss +4 -2
- package/src/theme/stage.scss +3 -1
- package/src/theme/theme.scss +28 -28
- package/src/theme/tree.scss +14 -12
- package/src/type.ts +10 -1
- package/src/utils/content-menu.ts +2 -2
- package/src/utils/data-source/formConfigs/http.ts +2 -0
- package/src/utils/data-source/index.ts +2 -2
- package/src/utils/editor.ts +78 -22
- package/src/utils/idle-task.ts +36 -4
- package/src/utils/props.ts +48 -6
- package/types/index.d.ts +2312 -2080
- package/src/hooks/use-data-source-method.ts +0 -100
- package/src/layouts/PropsPanel.vue +0 -131
- package/src/layouts/page-bar/SwitchTypeButton.vue +0 -45
|
@@ -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;
|
|
@@ -148,24 +162,79 @@
|
|
|
148
162
|
.m-form .el-tabs {
|
|
149
163
|
margin-bottom: 10px;
|
|
150
164
|
}
|
|
151
|
-
.m-form .el-form-item.hidden > .el-form-item__label {
|
|
165
|
+
.m-form .el-form-item.tmagic-form-hidden > .el-form-item__label {
|
|
152
166
|
display: none;
|
|
153
167
|
}
|
|
154
|
-
.m-form .t-form__item.hidden > .t-form__label {
|
|
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
|
+
|
|
183
|
+
.tmagic-form-text-popper {
|
|
184
|
+
min-width: 150px;
|
|
185
|
+
line-height: 1.4;
|
|
186
|
+
background-color: #fff;
|
|
187
|
+
box-shadow: 0px 0px 12px rgba(0, 0, 0, 0.12);
|
|
188
|
+
color: #606266;
|
|
189
|
+
border: 1px solid #e4e7ed;
|
|
190
|
+
border-radius: 4px;
|
|
191
|
+
font-size: 14px;
|
|
192
|
+
overflow-wrap: break-word;
|
|
193
|
+
box-sizing: border-box;
|
|
194
|
+
padding: 10px;
|
|
195
|
+
}
|
|
196
|
+
.tmagic-form-text-popper:focus {
|
|
197
|
+
outline: none;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.tmagic-form-text-popper[data-popper-placement^=top] > .tmagic-form-text-popper-arrow {
|
|
201
|
+
bottom: -4px;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
.tmagic-form-text-popper[data-popper-placement^=bottom] > .tmagic-form-text-popper-arrow {
|
|
205
|
+
top: -4px;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.tmagic-form-text-popper[data-popper-placement^=left] > .tmagic-form-text-popper-arrow {
|
|
209
|
+
right: -4px;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
.tmagic-form-text-popper[data-popper-placement^=right] > .tmagic-form-text-popper-arrow {
|
|
213
|
+
left: -4px;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
.tmagic-form-text-popper-arrow,
|
|
217
|
+
.tmagic-form-text-popper-arrow::before {
|
|
218
|
+
position: absolute;
|
|
219
|
+
width: 8px;
|
|
220
|
+
height: 8px;
|
|
221
|
+
background: inherit;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
.tmagic-form-text-popper-arrow {
|
|
225
|
+
visibility: hidden;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
.tmagic-form-text-popper-arrow::before {
|
|
229
|
+
visibility: visible;
|
|
230
|
+
content: "";
|
|
231
|
+
transform: rotate(45deg);
|
|
232
|
+
}
|
|
233
|
+
|
|
166
234
|
div.m-fields-link {
|
|
167
235
|
width: fit-content;
|
|
168
236
|
}
|
|
237
|
+
|
|
169
238
|
fieldset.m-fieldset {
|
|
170
239
|
position: relative;
|
|
171
240
|
border: 1px solid rgb(229, 229, 229);
|
|
@@ -191,6 +260,7 @@ fieldset.m-fieldset legend {
|
|
|
191
260
|
fieldset.m-fieldset .m-form-tip {
|
|
192
261
|
margin-left: 5px;
|
|
193
262
|
}
|
|
263
|
+
|
|
194
264
|
.m-fields-group-list .el-button--text {
|
|
195
265
|
padding: 0;
|
|
196
266
|
margin-bottom: 7px;
|
|
@@ -209,6 +279,7 @@ fieldset.m-fieldset .m-form-tip {
|
|
|
209
279
|
.m-fields-group-list .m-fields-group-list-item:last-of-type {
|
|
210
280
|
border-bottom: 0;
|
|
211
281
|
}
|
|
282
|
+
|
|
212
283
|
.m-form-panel .el-card__header:hover {
|
|
213
284
|
background: #f2f6fc;
|
|
214
285
|
}
|
|
@@ -221,12 +292,15 @@ fieldset.m-fieldset .m-form-tip {
|
|
|
221
292
|
.m-form-panel .m-form-tip {
|
|
222
293
|
margin-left: 5px;
|
|
223
294
|
}
|
|
295
|
+
|
|
224
296
|
.m-container-panel:not(:last-of-type) {
|
|
225
297
|
margin-bottom: 20px;
|
|
226
298
|
}
|
|
299
|
+
|
|
227
300
|
.m-fields-table-wrap {
|
|
228
301
|
width: 100%;
|
|
229
302
|
}
|
|
303
|
+
|
|
230
304
|
.m-fields-table {
|
|
231
305
|
width: 100%;
|
|
232
306
|
}
|
|
@@ -276,9 +350,11 @@ fieldset.m-fieldset .m-form-tip {
|
|
|
276
350
|
color: #f56c6c;
|
|
277
351
|
cursor: pointer;
|
|
278
352
|
}
|
|
353
|
+
|
|
279
354
|
.m-select {
|
|
280
355
|
width: 100%;
|
|
281
356
|
}
|
|
357
|
+
|
|
282
358
|
.magic-form-dynamic-tab .el-tabs__header.is-top {
|
|
283
359
|
padding-right: 8px;
|
|
284
360
|
}
|
|
@@ -296,12 +372,15 @@ fieldset.m-fieldset .m-form-tip {
|
|
|
296
372
|
.magic-form-dynamic-tab .el-tabs__header.is-top .el-tabs__new-tab .el-icon-plus {
|
|
297
373
|
display: none;
|
|
298
374
|
}
|
|
375
|
+
|
|
299
376
|
.magic-form-tab {
|
|
300
377
|
margin-bottom: 10px;
|
|
301
378
|
}
|
|
379
|
+
|
|
302
380
|
.diff-count-badge {
|
|
303
381
|
top: -10px;
|
|
304
382
|
}
|
|
383
|
+
|
|
305
384
|
.m-fields-number-range {
|
|
306
385
|
display: flex;
|
|
307
386
|
align-items: center;
|
|
@@ -309,6 +388,7 @@ fieldset.m-fieldset .m-form-tip {
|
|
|
309
388
|
.m-fields-number-range .split-tag {
|
|
310
389
|
margin: 0 5px;
|
|
311
390
|
}
|
|
391
|
+
|
|
312
392
|
.m-form-box {
|
|
313
393
|
display: flex;
|
|
314
394
|
flex-direction: column;
|
|
@@ -321,6 +401,7 @@ fieldset.m-fieldset .m-form-tip {
|
|
|
321
401
|
align-items: center;
|
|
322
402
|
justify-content: space-between;
|
|
323
403
|
}
|
|
404
|
+
|
|
324
405
|
.tmagic-design-input.search-input {
|
|
325
406
|
background: #fff;
|
|
326
407
|
color: #bbbbbb;
|
|
@@ -330,10 +411,12 @@ fieldset.m-fieldset .m-form-tip {
|
|
|
330
411
|
left: 0;
|
|
331
412
|
box-sizing: border-box;
|
|
332
413
|
z-index: 1;
|
|
414
|
+
background: transparent;
|
|
333
415
|
}
|
|
334
416
|
.tmagic-design-input.search-input .el-input__prefix {
|
|
335
417
|
padding: 7px;
|
|
336
418
|
}
|
|
419
|
+
|
|
337
420
|
.m-editor-nav-menu {
|
|
338
421
|
display: flex;
|
|
339
422
|
z-index: 5;
|
|
@@ -400,6 +483,7 @@ fieldset.m-fieldset .m-form-tip {
|
|
|
400
483
|
.m-editor-nav-menu .menu-item.rule .el-icon {
|
|
401
484
|
transform: rotate(-90deg);
|
|
402
485
|
}
|
|
486
|
+
|
|
403
487
|
.m-editor {
|
|
404
488
|
display: flex;
|
|
405
489
|
flex-direction: column;
|
|
@@ -457,6 +541,7 @@ fieldset.m-fieldset .m-form-tip {
|
|
|
457
541
|
border-color: #2882e0;
|
|
458
542
|
color: #2882e0;
|
|
459
543
|
}
|
|
544
|
+
|
|
460
545
|
.m-editor-sidebar {
|
|
461
546
|
display: flex;
|
|
462
547
|
height: 100%;
|
|
@@ -514,12 +599,14 @@ fieldset.m-fieldset .m-form-tip {
|
|
|
514
599
|
.m-editor-sidebar .fold-icon:hover {
|
|
515
600
|
background: rgba(0, 0, 0, 0.2);
|
|
516
601
|
}
|
|
602
|
+
|
|
517
603
|
.m-editor-slide-list-box > div:first-child {
|
|
518
604
|
min-width: 240px;
|
|
519
605
|
}
|
|
520
606
|
.m-editor-slide-list-box .m-form-box {
|
|
521
607
|
border-left: 1px solid #e0e0e0;
|
|
522
608
|
}
|
|
609
|
+
|
|
523
610
|
.m-editor-layer-panel {
|
|
524
611
|
background: #ffffff;
|
|
525
612
|
}
|
|
@@ -542,6 +629,7 @@ fieldset.m-fieldset .m-form-tip {
|
|
|
542
629
|
.m-editor-layer-panel .search-wrapper .tmagic-design-button {
|
|
543
630
|
margin-right: 10px;
|
|
544
631
|
}
|
|
632
|
+
|
|
545
633
|
.ui-component-panel.tmagic-design-collapse {
|
|
546
634
|
border-top: 0 !important;
|
|
547
635
|
margin-top: 48px;
|
|
@@ -630,6 +718,7 @@ fieldset.m-fieldset .m-form-tip {
|
|
|
630
718
|
padding-top: 48px;
|
|
631
719
|
position: relative;
|
|
632
720
|
}
|
|
721
|
+
|
|
633
722
|
.m-editor-resizer {
|
|
634
723
|
border-left: 1px solid transparent;
|
|
635
724
|
border-right: 1px solid transparent;
|
|
@@ -650,14 +739,14 @@ fieldset.m-fieldset .m-form-tip {
|
|
|
650
739
|
visibility: visible;
|
|
651
740
|
opacity: 1;
|
|
652
741
|
}
|
|
653
|
-
.m-editor-resizer.m-editor-resizer-
|
|
742
|
+
.m-editor-resizer.m-editor-resizer-dragging::after {
|
|
654
743
|
content: "";
|
|
655
744
|
position: absolute;
|
|
656
745
|
width: 600px;
|
|
657
746
|
height: 100%;
|
|
658
747
|
left: 0;
|
|
659
748
|
}
|
|
660
|
-
.m-editor-resizer.m-editor-resizer-
|
|
749
|
+
.m-editor-resizer.m-editor-resizer-dragging::before {
|
|
661
750
|
content: "";
|
|
662
751
|
position: absolute;
|
|
663
752
|
width: 600px;
|
|
@@ -689,6 +778,7 @@ fieldset.m-fieldset .m-form-tip {
|
|
|
689
778
|
color: #fff;
|
|
690
779
|
font-size: 18px;
|
|
691
780
|
}
|
|
781
|
+
|
|
692
782
|
.m-editor-workspace {
|
|
693
783
|
height: 100%;
|
|
694
784
|
width: 100%;
|
|
@@ -697,24 +787,15 @@ fieldset.m-fieldset .m-form-tip {
|
|
|
697
787
|
.m-editor-workspace:focus-visible {
|
|
698
788
|
outline: 0;
|
|
699
789
|
}
|
|
790
|
+
|
|
700
791
|
.m-editor-page-bar-tabs {
|
|
701
792
|
position: fixed;
|
|
702
793
|
bottom: 0;
|
|
703
794
|
left: 0;
|
|
704
795
|
width: 100%;
|
|
796
|
+
user-select: none;
|
|
705
797
|
}
|
|
706
|
-
|
|
707
|
-
margin-left: 10px;
|
|
708
|
-
position: relative;
|
|
709
|
-
top: 1px;
|
|
710
|
-
border-radius: 3px 3px 0 0;
|
|
711
|
-
border: 1px solid #d9dbdd;
|
|
712
|
-
border-bottom: 1px solid transparent;
|
|
713
|
-
padding: 5px 10px;
|
|
714
|
-
}
|
|
715
|
-
.m-editor-page-bar-tabs .tmagic-design-button.m-editor-page-bar-switch-type-button.active {
|
|
716
|
-
background-color: #f3f3f3;
|
|
717
|
-
}
|
|
798
|
+
|
|
718
799
|
.m-editor-page-list-item {
|
|
719
800
|
display: flex;
|
|
720
801
|
width: 100%;
|
|
@@ -727,6 +808,7 @@ fieldset.m-fieldset .m-form-tip {
|
|
|
727
808
|
.m-editor-page-list-item:hover {
|
|
728
809
|
background-color: #f3f5f9;
|
|
729
810
|
}
|
|
811
|
+
|
|
730
812
|
.m-editor-page-bar {
|
|
731
813
|
display: flex;
|
|
732
814
|
width: 100%;
|
|
@@ -763,12 +845,26 @@ fieldset.m-fieldset .m-form-tip {
|
|
|
763
845
|
position: relative;
|
|
764
846
|
z-index: 1;
|
|
765
847
|
}
|
|
848
|
+
.m-editor-page-bar-item-icon .icon-active {
|
|
849
|
+
font-weight: bold;
|
|
850
|
+
color: #2882e0;
|
|
851
|
+
}
|
|
766
852
|
.m-editor-page-bar-item-title {
|
|
767
853
|
max-width: 150px;
|
|
768
854
|
text-overflow: ellipsis;
|
|
769
855
|
white-space: nowrap;
|
|
770
856
|
overflow: hidden;
|
|
771
857
|
}
|
|
858
|
+
.m-editor-page-bar-item-left-icon, .m-editor-page-bar-item-right-icon {
|
|
859
|
+
position: absolute;
|
|
860
|
+
right: 0;
|
|
861
|
+
top: 0;
|
|
862
|
+
height: 100%;
|
|
863
|
+
}
|
|
864
|
+
.m-editor-page-bar-item-left-icon {
|
|
865
|
+
right: 34px;
|
|
866
|
+
}
|
|
867
|
+
|
|
772
868
|
.page-bar-popover.tmagic-design-popper {
|
|
773
869
|
padding: 4px 0;
|
|
774
870
|
}
|
|
@@ -777,15 +873,83 @@ fieldset.m-fieldset .m-form-tip {
|
|
|
777
873
|
transition: all 0.2s ease 0s;
|
|
778
874
|
padding: 5px 14px;
|
|
779
875
|
}
|
|
780
|
-
.page-bar-popover .menu-item .
|
|
781
|
-
.page-bar-popover .menu-item i {
|
|
876
|
+
.page-bar-popover .menu-item .tmagic-design-button {
|
|
782
877
|
color: #313a40;
|
|
783
878
|
}
|
|
784
879
|
.page-bar-popover .menu-item:hover {
|
|
785
880
|
background-color: #f3f5f9;
|
|
786
881
|
}
|
|
882
|
+
.page-bar-popover .menu-item.active .tmagic-design-button {
|
|
883
|
+
color: #2882e0;
|
|
884
|
+
}
|
|
885
|
+
|
|
886
|
+
.m-editor-page-bar-search-panel {
|
|
887
|
+
position: absolute;
|
|
888
|
+
bottom: 32px;
|
|
889
|
+
border: 1px solid #d9dbdd;
|
|
890
|
+
padding: 6px 10px;
|
|
891
|
+
width: 100%;
|
|
892
|
+
box-sizing: border-box;
|
|
893
|
+
}
|
|
894
|
+
.m-editor-page-bar-search-panel .tmagic-design-form-item {
|
|
895
|
+
margin-bottom: 0;
|
|
896
|
+
}
|
|
897
|
+
|
|
787
898
|
.m-editor-props-panel {
|
|
788
|
-
|
|
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;
|
|
789
953
|
}
|
|
790
954
|
.m-editor-props-panel .m-editor-props-panel-src-icon {
|
|
791
955
|
position: absolute;
|
|
@@ -793,6 +957,12 @@ fieldset.m-fieldset .m-form-tip {
|
|
|
793
957
|
bottom: 15px;
|
|
794
958
|
z-index: 30;
|
|
795
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
|
+
}
|
|
796
966
|
.m-editor-props-panel .m-editor-props-panel-src-code.magic-code-editor {
|
|
797
967
|
position: absolute;
|
|
798
968
|
left: 0;
|
|
@@ -814,11 +984,13 @@ fieldset.m-fieldset .m-form-tip {
|
|
|
814
984
|
.m-editor-props-panel .m-fields-group-list .tmagic-design-table th {
|
|
815
985
|
font-size: 12px;
|
|
816
986
|
}
|
|
987
|
+
|
|
817
988
|
.m-editor-props-panel-popper.small span,
|
|
818
989
|
.m-editor-props-panel-popper.small a,
|
|
819
990
|
.m-editor-props-panel-popper.small p {
|
|
820
991
|
font-size: 12px;
|
|
821
992
|
}
|
|
993
|
+
|
|
822
994
|
.magic-editor-content-menu {
|
|
823
995
|
position: fixed;
|
|
824
996
|
font-size: 12px;
|
|
@@ -883,6 +1055,7 @@ fieldset.m-fieldset .m-form-tip {
|
|
|
883
1055
|
.magic-editor-content-menu .menu-item.button.active.menu-item i {
|
|
884
1056
|
color: #fff;
|
|
885
1057
|
}
|
|
1058
|
+
|
|
886
1059
|
.m-editor-stage {
|
|
887
1060
|
position: relative;
|
|
888
1061
|
width: 100%;
|
|
@@ -895,6 +1068,7 @@ fieldset.m-fieldset .m-form-tip {
|
|
|
895
1068
|
.m-editor-stage:focus-visible {
|
|
896
1069
|
outline: none;
|
|
897
1070
|
}
|
|
1071
|
+
|
|
898
1072
|
.m-editor-stage-container {
|
|
899
1073
|
width: 100%;
|
|
900
1074
|
height: 100%;
|
|
@@ -907,6 +1081,7 @@ fieldset.m-fieldset .m-form-tip {
|
|
|
907
1081
|
.m-editor-stage-container::-webkit-scrollbar {
|
|
908
1082
|
width: 0 !important;
|
|
909
1083
|
}
|
|
1084
|
+
|
|
910
1085
|
.m-editor-stage-overlay {
|
|
911
1086
|
position: absolute;
|
|
912
1087
|
left: 0;
|
|
@@ -918,17 +1093,20 @@ fieldset.m-fieldset .m-form-tip {
|
|
|
918
1093
|
z-index: 20;
|
|
919
1094
|
overflow: auto;
|
|
920
1095
|
}
|
|
1096
|
+
|
|
921
1097
|
.m-editor-stage-overlay-container {
|
|
922
1098
|
position: relative;
|
|
923
1099
|
flex-shrink: 0;
|
|
924
1100
|
margin: auto;
|
|
925
1101
|
box-shadow: rgba(0, 0, 0, 0.04) 0px 3px 5px;
|
|
926
1102
|
}
|
|
1103
|
+
|
|
927
1104
|
.m-editor-stage-overlay-close.tmagic-design-icon {
|
|
928
1105
|
position: fixed;
|
|
929
1106
|
right: 20px;
|
|
930
1107
|
top: 10px;
|
|
931
1108
|
}
|
|
1109
|
+
|
|
932
1110
|
.m-editor-stage-float-button {
|
|
933
1111
|
cursor: pointer;
|
|
934
1112
|
transform: translateY(-50%);
|
|
@@ -944,18 +1122,22 @@ fieldset.m-fieldset .m-form-tip {
|
|
|
944
1122
|
color: rgba(0, 0, 0, 0.88);
|
|
945
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);
|
|
946
1124
|
}
|
|
1125
|
+
|
|
947
1126
|
.m-editor-node-list-menu {
|
|
948
1127
|
height: 100%;
|
|
949
1128
|
width: 100%;
|
|
950
1129
|
min-width: 300px;
|
|
951
1130
|
max-height: 500px;
|
|
952
1131
|
}
|
|
1132
|
+
|
|
953
1133
|
.m-container-vs-code .el-form-item {
|
|
954
1134
|
margin-bottom: 0;
|
|
955
1135
|
}
|
|
1136
|
+
|
|
956
1137
|
.magic-code-editor {
|
|
957
1138
|
width: 100%;
|
|
958
1139
|
}
|
|
1140
|
+
|
|
959
1141
|
.magic-code-editor-wrapper {
|
|
960
1142
|
width: 100%;
|
|
961
1143
|
height: 100%;
|
|
@@ -980,6 +1162,7 @@ fieldset.m-fieldset .m-form-tip {
|
|
|
980
1162
|
right: 0;
|
|
981
1163
|
z-index: 11;
|
|
982
1164
|
}
|
|
1165
|
+
|
|
983
1166
|
.tmagic-design-icon {
|
|
984
1167
|
--color: inherit;
|
|
985
1168
|
height: 1em;
|
|
@@ -991,12 +1174,14 @@ fieldset.m-fieldset .m-form-tip {
|
|
|
991
1174
|
max-width: 100%;
|
|
992
1175
|
max-height: 100%;
|
|
993
1176
|
}
|
|
1177
|
+
|
|
994
1178
|
.m-fields-code-select {
|
|
995
1179
|
width: 100%;
|
|
996
1180
|
}
|
|
997
1181
|
.m-fields-code-select .el-card__header {
|
|
998
1182
|
display: none;
|
|
999
1183
|
}
|
|
1184
|
+
|
|
1000
1185
|
.m-fields-event-select {
|
|
1001
1186
|
width: 100%;
|
|
1002
1187
|
}
|
|
@@ -1013,10 +1198,12 @@ fieldset.m-fieldset .m-form-tip {
|
|
|
1013
1198
|
.m-fields-event-select .el-card.is-always-shadow {
|
|
1014
1199
|
box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.12);
|
|
1015
1200
|
}
|
|
1201
|
+
|
|
1016
1202
|
.m-fields-code-select-col,
|
|
1017
1203
|
.m-fields-data-source-method-select {
|
|
1018
1204
|
width: 100%;
|
|
1019
1205
|
}
|
|
1206
|
+
|
|
1020
1207
|
.code-select-container,
|
|
1021
1208
|
.data-source-method-select-container {
|
|
1022
1209
|
display: flex;
|
|
@@ -1032,20 +1219,23 @@ fieldset.m-fieldset .m-form-tip {
|
|
|
1032
1219
|
cursor: pointer;
|
|
1033
1220
|
margin-right: 5px;
|
|
1034
1221
|
}
|
|
1222
|
+
|
|
1035
1223
|
.m-editor-layout {
|
|
1036
1224
|
width: 100%;
|
|
1037
1225
|
display: flex;
|
|
1038
1226
|
justify-self: space-between;
|
|
1039
1227
|
}
|
|
1040
|
-
.m-editor-layout:has(.m-editor-resizer-
|
|
1228
|
+
.m-editor-layout:has(.m-editor-resizer-dragging) {
|
|
1041
1229
|
overflow: hidden;
|
|
1042
1230
|
}
|
|
1231
|
+
|
|
1043
1232
|
.m-editor-breadcrumb {
|
|
1044
1233
|
position: absolute;
|
|
1045
1234
|
left: 5px;
|
|
1046
1235
|
top: 5px;
|
|
1047
1236
|
z-index: 10;
|
|
1048
1237
|
}
|
|
1238
|
+
|
|
1049
1239
|
.data-source-list-panel .list-container .list-item .codeIcon {
|
|
1050
1240
|
width: 22px;
|
|
1051
1241
|
height: 22px;
|
|
@@ -1056,6 +1246,7 @@ fieldset.m-fieldset .m-form-tip {
|
|
|
1056
1246
|
height: 22px;
|
|
1057
1247
|
margin-right: 5px;
|
|
1058
1248
|
}
|
|
1249
|
+
|
|
1059
1250
|
.data-source-list-panel-add-menu {
|
|
1060
1251
|
padding: 4px 0;
|
|
1061
1252
|
}
|
|
@@ -1067,6 +1258,7 @@ fieldset.m-fieldset .m-form-tip {
|
|
|
1067
1258
|
.data-source-list-panel-add-menu .menu-item:hover {
|
|
1068
1259
|
background-color: #f3f5f9;
|
|
1069
1260
|
}
|
|
1261
|
+
|
|
1070
1262
|
.m-editor-data-source-fields {
|
|
1071
1263
|
width: 100%;
|
|
1072
1264
|
}
|
|
@@ -1078,6 +1270,7 @@ fieldset.m-fieldset .m-form-tip {
|
|
|
1078
1270
|
justify-content: flex-end;
|
|
1079
1271
|
margin-top: 15px;
|
|
1080
1272
|
}
|
|
1273
|
+
|
|
1081
1274
|
.m-editor-data-source-methods {
|
|
1082
1275
|
width: 100%;
|
|
1083
1276
|
}
|
|
@@ -1089,6 +1282,7 @@ fieldset.m-fieldset .m-form-tip {
|
|
|
1089
1282
|
justify-content: flex-end;
|
|
1090
1283
|
margin-top: 15px;
|
|
1091
1284
|
}
|
|
1285
|
+
|
|
1092
1286
|
.tmagic-data-source-input-text .el-input__wrapper.tmagic-data-source-input-text-wrapper {
|
|
1093
1287
|
overflow: hidden;
|
|
1094
1288
|
padding-right: 30px;
|
|
@@ -1103,23 +1297,28 @@ fieldset.m-fieldset .m-form-tip {
|
|
|
1103
1297
|
position: absolute;
|
|
1104
1298
|
right: 7px;
|
|
1105
1299
|
}
|
|
1300
|
+
|
|
1106
1301
|
.m-fields-key-value {
|
|
1107
1302
|
display: flex;
|
|
1108
1303
|
justify-items: center;
|
|
1109
1304
|
align-items: top;
|
|
1110
1305
|
width: 100%;
|
|
1111
1306
|
}
|
|
1307
|
+
|
|
1112
1308
|
.m-fields-key-value-item {
|
|
1113
1309
|
display: flex;
|
|
1114
1310
|
margin-bottom: 10px;
|
|
1115
1311
|
align-items: center;
|
|
1116
1312
|
}
|
|
1117
|
-
|
|
1313
|
+
|
|
1314
|
+
.m-fields-key-value-delimiter {
|
|
1118
1315
|
margin: 0 10px;
|
|
1119
1316
|
}
|
|
1120
|
-
|
|
1317
|
+
|
|
1318
|
+
.m-fields-key-value-delete {
|
|
1121
1319
|
margin-left: 10px;
|
|
1122
1320
|
}
|
|
1321
|
+
|
|
1123
1322
|
.m-editor-tree {
|
|
1124
1323
|
color: #313a40;
|
|
1125
1324
|
font-size: 13px;
|
|
@@ -1188,6 +1387,7 @@ fieldset.m-fieldset .m-form-tip {
|
|
|
1188
1387
|
color: #909399;
|
|
1189
1388
|
font-size: 14px;
|
|
1190
1389
|
}
|
|
1390
|
+
|
|
1191
1391
|
.m-editor-float-box {
|
|
1192
1392
|
position: absolute;
|
|
1193
1393
|
background-color: #fff;
|
|
@@ -1214,9 +1414,11 @@ fieldset.m-fieldset .m-form-tip {
|
|
|
1214
1414
|
flex: 1;
|
|
1215
1415
|
padding: 0 16px;
|
|
1216
1416
|
}
|
|
1417
|
+
|
|
1217
1418
|
.m-editor-floating-box-moveable {
|
|
1218
1419
|
opacity: 0;
|
|
1219
1420
|
}
|
|
1421
|
+
|
|
1220
1422
|
.m-fields-page-fragment-select {
|
|
1221
1423
|
width: 100%;
|
|
1222
1424
|
}
|
|
@@ -1231,6 +1433,7 @@ fieldset.m-fieldset .m-form-tip {
|
|
|
1231
1433
|
.m-fields-page-fragment-select .page-fragment-select-container .icon {
|
|
1232
1434
|
margin-left: 10px;
|
|
1233
1435
|
}
|
|
1436
|
+
|
|
1234
1437
|
.m-fields-data-source-select,
|
|
1235
1438
|
.m-fields-data-source-field-select,
|
|
1236
1439
|
.m-fields-data-source-method-select .data-source-method-select-container,
|
|
@@ -1245,6 +1448,7 @@ fieldset.m-fieldset .m-form-tip {
|
|
|
1245
1448
|
.m-fields-code-select-col .code-select-container .m-fields-select-action-button {
|
|
1246
1449
|
margin-left: 5px;
|
|
1247
1450
|
}
|
|
1451
|
+
|
|
1248
1452
|
.m-fields-data-source-field-select {
|
|
1249
1453
|
width: 100%;
|
|
1250
1454
|
}
|
|
@@ -1259,10 +1463,12 @@ fieldset.m-fieldset .m-form-tip {
|
|
|
1259
1463
|
.m-fields-data-source-field-select .m-editor-data-source-field-select .tmagic-design-cascader {
|
|
1260
1464
|
flex: 2;
|
|
1261
1465
|
}
|
|
1466
|
+
|
|
1262
1467
|
.fade-enter-active,
|
|
1263
1468
|
.fade-leave-active {
|
|
1264
1469
|
transition: opacity 0.5s;
|
|
1265
1470
|
}
|
|
1471
|
+
|
|
1266
1472
|
.fade-enter, .fade-leave-to {
|
|
1267
1473
|
opacity: 0;
|
|
1268
1474
|
}
|