amis-editor-core 5.2.0-beta.0

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 (105) hide show
  1. package/lib/cebfe0bc5a1dbde02da1.svg +10 -0
  2. package/lib/compat.d.ts +30 -0
  3. package/lib/component/Breadcrumb.d.ts +33 -0
  4. package/lib/component/ClassNameControl.d.ts +31 -0
  5. package/lib/component/CommonConfigWrapper.d.ts +6 -0
  6. package/lib/component/ContainerWrapper.d.ts +12 -0
  7. package/lib/component/Editor.d.ts +99 -0
  8. package/lib/component/HighlightBox.d.ts +29 -0
  9. package/lib/component/IFrameBridge.d.ts +32 -0
  10. package/lib/component/IFramePreview.d.ts +38 -0
  11. package/lib/component/MiniEditor.d.ts +9 -0
  12. package/lib/component/NodeWrapper.d.ts +20 -0
  13. package/lib/component/Panel/AMisCodeEditor.d.ts +37 -0
  14. package/lib/component/Panel/AvailableRenderersPanel.d.ts +10 -0
  15. package/lib/component/Panel/CodeEditorPanel.d.ts +6 -0
  16. package/lib/component/Panel/ContextMenuPanel.d.ts +8 -0
  17. package/lib/component/Panel/DrawerPanel.d.ts +15 -0
  18. package/lib/component/Panel/DrawerRendererPanel.d.ts +15 -0
  19. package/lib/component/Panel/InsertSubRendererPanel.d.ts +11 -0
  20. package/lib/component/Panel/LeftPanels.d.ts +20 -0
  21. package/lib/component/Panel/Outline.d.ts +18 -0
  22. package/lib/component/Panel/RenderersPanel.d.ts +31 -0
  23. package/lib/component/Panel/RightPanels.d.ts +21 -0
  24. package/lib/component/Panel/TargetNamePanel.d.ts +7 -0
  25. package/lib/component/PopOverForm.d.ts +22 -0
  26. package/lib/component/Preview.d.ts +67 -0
  27. package/lib/component/RegionHLBox.d.ts +20 -0
  28. package/lib/component/RegionWrapper.d.ts +206 -0
  29. package/lib/component/RendererThumb.d.ts +22 -0
  30. package/lib/component/ScaffoldModal.d.ts +24 -0
  31. package/lib/component/SubEditor.d.ts +67 -0
  32. package/lib/component/VRenderer.d.ts +191 -0
  33. package/lib/component/base/BackTop.d.ts +26 -0
  34. package/lib/component/base/ErrorRenderer.d.ts +4 -0
  35. package/lib/component/base/SearchCustomRendererPanel.d.ts +15 -0
  36. package/lib/component/base/SearchPanel.d.ts +83 -0
  37. package/lib/component/base/SearchRendererPanel.d.ts +19 -0
  38. package/lib/component/base/WidthDraggableBtn.d.ts +16 -0
  39. package/lib/component/base/WidthDraggableContainer.d.ts +2 -0
  40. package/lib/component/factory.d.ts +19 -0
  41. package/lib/dnd/default.d.ts +47 -0
  42. package/lib/dnd/index.d.ts +119 -0
  43. package/lib/dnd/interface.d.ts +14 -0
  44. package/lib/dnd/position-h.d.ts +7 -0
  45. package/lib/env.d.ts +5 -0
  46. package/lib/icons/index.d.ts +2 -0
  47. package/lib/index.d.ts +36 -0
  48. package/lib/index.min.js +1 -0
  49. package/lib/manager.d.ts +509 -0
  50. package/lib/mocker.d.ts +1 -0
  51. package/lib/plugin/AvailableRenderers.d.ts +8 -0
  52. package/lib/plugin/BasicToolbar.d.ts +11 -0
  53. package/lib/plugin/Code.d.ts +9 -0
  54. package/lib/plugin/DataDebug.d.ts +19 -0
  55. package/lib/plugin/ErrorRenderer.d.ts +7 -0
  56. package/lib/plugin/Name.d.ts +8 -0
  57. package/lib/plugin/Outline.d.ts +8 -0
  58. package/lib/plugin/Unknown.d.ts +5 -0
  59. package/lib/plugin.d.ts +639 -0
  60. package/lib/store/editor.d.ts +1048 -0
  61. package/lib/store/node.d.ts +281 -0
  62. package/lib/style.css +1 -0
  63. package/lib/tpl.d.ts +5 -0
  64. package/lib/util.d.ts +80 -0
  65. package/package.json +102 -0
  66. package/scss/_backTop.scss +55 -0
  67. package/scss/_bcn.scss +157 -0
  68. package/scss/_classname-picker.scss +57 -0
  69. package/scss/_context-menu-setting.scss +109 -0
  70. package/scss/_data-chain.scss +39 -0
  71. package/scss/_leftPanel.scss +237 -0
  72. package/scss/_mixin.scss +95 -0
  73. package/scss/_outline.scss +206 -0
  74. package/scss/_renderers.scss +536 -0
  75. package/scss/_rightPanel.scss +424 -0
  76. package/scss/_searchRendererPanel.scss +244 -0
  77. package/scss/_selection.scss +6 -0
  78. package/scss/_tableview.scss +53 -0
  79. package/scss/_targetname.scss +30 -0
  80. package/scss/_tooltip.scss +111 -0
  81. package/scss/_variables.scss +41 -0
  82. package/scss/control/_api-control.scss +61 -0
  83. package/scss/control/_badge-control.scss +46 -0
  84. package/scss/control/_dateshortcut-control.scss +108 -0
  85. package/scss/control/_formItem-control.scss +121 -0
  86. package/scss/control/_formula-control.scss +108 -0
  87. package/scss/control/_option-control.scss +170 -0
  88. package/scss/control/_switch-more-control.scss +121 -0
  89. package/scss/control/_validation-control.scss +101 -0
  90. package/scss/editor.scss +1563 -0
  91. package/scss/style-control/_background.scss +204 -0
  92. package/scss/style-control/_border.scss +105 -0
  93. package/scss/style-control/_box-model.scss +100 -0
  94. package/scss/style-control/_box-shadow.scss +12 -0
  95. package/scss/style-control/_font.scss +28 -0
  96. package/scss/style-control/_size.scss +40 -0
  97. package/scss/style-control/_style-common.scss +22 -0
  98. package/static/Code-hover.png +0 -0
  99. package/static/Code.png +0 -0
  100. package/static/Outline-hover.png +0 -0
  101. package/static/Outline.png +0 -0
  102. package/static/Renderers-hover.png +0 -0
  103. package/static/Renderers.png +0 -0
  104. package/static/empty.png +0 -0
  105. package/static/side_hide_left.svg +10 -0
@@ -0,0 +1,1563 @@
1
+ @import 'amis-ui/scss/functions';
2
+ @import 'amis-ui/scss/variables';
3
+ @import 'amis-ui/scss/mixins';
4
+ @import './_mixin';
5
+ @import './_variables';
6
+ @import './_backTop';
7
+ @import './_context-menu-setting';
8
+ @import './_outline';
9
+ @import './_leftPanel';
10
+ @import './_rightPanel';
11
+ @import './_bcn';
12
+ @import './_classname-picker';
13
+ @import './_renderers';
14
+ @import './_searchRendererPanel';
15
+ @import './_tableview';
16
+ @import './_targetname';
17
+ @import './_selection';
18
+ @import './_data-chain';
19
+ @import './_tooltip';
20
+ @import './control/option-control';
21
+ @import './control/api-control';
22
+ @import './control/switch-more-control';
23
+ @import './control/validation-control';
24
+ @import './control/formItem-control';
25
+ @import './control/formula-control';
26
+ @import './control/dateshortcut-control';
27
+ @import './control/badge-control';
28
+
29
+ /* 样式控件 */
30
+ @import './style-control/box-model';
31
+ @import './style-control/font';
32
+ @import './style-control/border';
33
+ @import './style-control/box-shadow';
34
+ @import './style-control/background';
35
+ @import './style-control/size';
36
+ @import './style-control/style-common';
37
+
38
+ @keyframes growing {
39
+ 0% {
40
+ box-shadow: 0 0 10px rgba(#23b7e5, 0) inset;
41
+ border: 1px solid rgba($Editor-hlbox-bg, 0);
42
+ }
43
+
44
+ 50% {
45
+ box-shadow: 0 0 10px rgba(#23b7e5, 0.6) inset;
46
+ border: 1px solid $Editor-hlbox-bg;
47
+ }
48
+
49
+ 100% {
50
+ box-shadow: 0 0 10px rgba(#23b7e5, 0.2) inset;
51
+ border: 1px solid rgba($Editor-hlbox-bg, 0.1);
52
+ }
53
+ }
54
+
55
+ .ae-Editor {
56
+ display: block;
57
+ min-height: 450px;
58
+ min-width: 980px;
59
+ overflow: hidden;
60
+
61
+ // 覆盖amis默认top值,避免导致未垂直居中
62
+ .ae-Editor-toolbar svg.icon {
63
+ top: 0 !important;
64
+ }
65
+
66
+ &.is-fixed {
67
+ position: absolute;
68
+ top: 0;
69
+ left: 0;
70
+ right: 0;
71
+ bottom: 0;
72
+ }
73
+
74
+ .ae-Editor-inner {
75
+ transform: scale(1); // 此后内部元素的fixed会相对此dom定位
76
+ transform-origin: center top;
77
+ display: flex;
78
+ height: 100%;
79
+ width: 100%;
80
+ flex-direction: row;
81
+ }
82
+ }
83
+
84
+ // 公共组件专有样式
85
+ .ae-Editor-common-config {
86
+ outline: 2px solid rgba($Editor-hlbox--onActiveConfig-bg, 0.2);
87
+ }
88
+
89
+ // 弹窗编辑器面板
90
+ .subEditor-dialog {
91
+ overflow: hidden;
92
+ border: 1px solid #e6e6e8;
93
+ margin: 5px;
94
+ padding: 0;
95
+ }
96
+
97
+ .ae-Main {
98
+ flex: 1 1 auto;
99
+ min-width: 0; // 防止撑开
100
+ transform: scale(1); // 此后内部元素的fixed会相对此dom定位
101
+ transform-origin: center top;
102
+ background-color: $default-bg-color;
103
+ display: flex;
104
+ flex-direction: column;
105
+
106
+ .ant-back-top {
107
+ bottom: 96px;
108
+ right: 39px;
109
+ width: 45px;
110
+ height: 45px;
111
+ z-index: 20000;
112
+
113
+ svg.ant-fade-leave {
114
+ visibility: hidden;
115
+ }
116
+
117
+ svg.ant-fade-enter {
118
+ visibility: visible;
119
+ }
120
+ }
121
+ }
122
+
123
+ .ae-Preview {
124
+ position: relative;
125
+ flex-grow: 1;
126
+ background-color: $default-bg-color;
127
+ overflow: hidden;
128
+
129
+ .ae-Preview-body {
130
+ position: relative;
131
+ height: 100%;
132
+ width: 100%;
133
+ padding: 24px 16px 16px;
134
+ min-width: 300px;
135
+ background-color: $default-bg-color;
136
+ overflow: auto;
137
+
138
+ @include minScrollBar();
139
+
140
+ &::-webkit-scrollbar {
141
+ background-color: $default-bg-color;
142
+ }
143
+
144
+ &::-webkit-scrollbar-thumb {
145
+ border: 2px solid $default-bg-color;
146
+ background-color: #dadbdd; // #babac0;
147
+
148
+ &:hover {
149
+ background-color: #cecfd1;
150
+ width: 10px !important;
151
+ height: 10px !important;
152
+ }
153
+ }
154
+
155
+ .ae-Preview-inner {
156
+ position: relative;
157
+ display: flex;
158
+ min-height: 100%;
159
+ background: #fff;
160
+ box-shadow: 0 2px 6px 0 rgba(211, 211, 211, 0.5);
161
+ border-radius: 4px;
162
+
163
+ > *:first-child {
164
+ min-width: 100%;
165
+ position: relative;
166
+ min-height: 100%;
167
+ height: auto;
168
+ background: white;
169
+ box-shadow: 0 10px 10px -10px rgba(0, 0, 0, 0.2);
170
+ }
171
+ }
172
+
173
+ &:focus {
174
+ outline: none;
175
+ }
176
+
177
+ &.is-edting {
178
+ input,
179
+ textarea,
180
+ select,
181
+ iframe {
182
+ pointer-events: none;
183
+ }
184
+ }
185
+
186
+ &.is-mobile {
187
+ position: relative;
188
+ border-width: 64px 22px;
189
+ border-color: #ddd;
190
+ border-style: solid;
191
+ border-radius: 40px;
192
+ width: 419px;
193
+ height: 798px;
194
+ flex-grow: unset;
195
+ min-height: unset;
196
+ margin: 40px auto;
197
+ min-width: unset;
198
+ padding: 0;
199
+ overflow: visible;
200
+
201
+ > .ae-Preview-inner {
202
+ min-height: 100%;
203
+ height: 100%;
204
+ width: 100%;
205
+ overflow-x: hidden;
206
+ overflow-y: auto;
207
+ padding: 0;
208
+
209
+ &::-webkit-scrollbar {
210
+ display: none;
211
+ }
212
+ }
213
+
214
+ // 移动端预览设备装饰
215
+ .mobile-sound,
216
+ .mobile-receiver,
217
+ .mobile-left-btn,
218
+ .mobile-right-btn,
219
+ .mobile-open-btn {
220
+ position: absolute;
221
+ background: #cdcdcd;
222
+ border-radius: 3px;
223
+ z-index: 100;
224
+ }
225
+ // 音响
226
+ .mobile-sound {
227
+ top: -35px; // 29px - 64px;
228
+ left: 142px; // 164px - 22px;
229
+ width: 58px;
230
+ height: 6px;
231
+ }
232
+ // 听筒
233
+ .mobile-receiver {
234
+ top: -37px; // 27px - 64px;
235
+ left: 224px; // 246px - 22px;
236
+ width: 10px;
237
+ height: 10px;
238
+ border-radius: 5px;
239
+ }
240
+ // 左侧按钮
241
+ .mobile-left-btn {
242
+ top: 162px; // 226px - 64px;
243
+ left: -27px; // -5px - 22px;
244
+ width: 6px;
245
+ height: 50px;
246
+ }
247
+ // 右侧按钮(长条)
248
+ .mobile-right-btn {
249
+ top: 61px; // 125px - 64px;
250
+ right: -27px;
251
+ width: 6px;
252
+ height: 100px;
253
+ }
254
+ // 开机键
255
+ .mobile-open-btn {
256
+ top: 211px; // 275px - 64px;
257
+ right: -27px;
258
+ width: 6px;
259
+ height: 50px;
260
+ }
261
+ }
262
+ }
263
+
264
+ // 移动端需要上下滚动,避免设备背景被遮挡
265
+ &.is-mobile-body {
266
+ overflow-x: hidden;
267
+
268
+ &::-webkit-scrollbar {
269
+ background-color: $default-bg-color;
270
+ }
271
+
272
+ &::-webkit-scrollbar-thumb {
273
+ border: 2px solid $default-bg-color;
274
+ background-color: #dadbdd; // #babac0;
275
+
276
+ &:hover {
277
+ background-color: #cecfd1;
278
+ width: 10px !important;
279
+ height: 10px !important;
280
+ }
281
+ }
282
+ }
283
+ }
284
+
285
+ .ae-PreviewFrame {
286
+ pointer-events: all !important;
287
+ border: 0;
288
+ width: 100%;
289
+ }
290
+
291
+ .ae-IframeMask {
292
+ position: absolute;
293
+ z-index: 100;
294
+ top: 0;
295
+ left: 0;
296
+ right: 0;
297
+ bottom: 0;
298
+ }
299
+
300
+ .ae-IFramePreview {
301
+ > *:first-child {
302
+ min-width: 100%;
303
+ position: relative;
304
+ min-height: 100%;
305
+ background: white;
306
+ }
307
+
308
+ &.is-edting {
309
+ input,
310
+ textarea,
311
+ select,
312
+ iframe {
313
+ pointer-events: none;
314
+ }
315
+ }
316
+ }
317
+ // 头部工具栏
318
+ .ae-Editor-toolbarPopover {
319
+ position: absolute;
320
+ top: -24px;
321
+ left: -2px;
322
+ z-index: 20;
323
+ border: 0;
324
+ padding-right: 8px;
325
+ white-space: nowrap;
326
+ background: $Editor-hlbox--onActive-bg;
327
+ // border-radius: 3px 3px 0px 0px;
328
+ // box-shadow: 0 -2px 5px rgba(255, 255, 255, 0.5);
329
+ height: 24px;
330
+ font-family: PingFangSC-Regular;
331
+ font-size: 12px;
332
+ font-weight: 400;
333
+ color: #fff;
334
+ line-height: 24px;
335
+ color: #fff;
336
+ line-height: 24px;
337
+
338
+ display: inline-flex;
339
+ justify-content: flex-start;
340
+ align-items: center;
341
+
342
+ &.is-right-elem {
343
+ left: auto;
344
+ right: -2px;
345
+ }
346
+
347
+ .ae-Editor-toolbar {
348
+ z-index: 10;
349
+ }
350
+ }
351
+
352
+ .ae-Editor-nav {
353
+ pointer-events: all;
354
+ display: inline-block;
355
+
356
+ .ae-Editor-tip {
357
+ opacity: 0;
358
+ display: block;
359
+ background: rgba($Editor-hlbox-bg, 0.8);
360
+
361
+ &.current {
362
+ opacity: 1;
363
+ }
364
+ }
365
+
366
+ &:hover {
367
+ .ae-Editor-tip {
368
+ // transform-origin: 20px 9px;
369
+ opacity: 1;
370
+ // transform: skewY(-15deg);
371
+
372
+ &.parent {
373
+ // transform: skewY(-15deg) translate(-15px, -20px);
374
+ transform: translate(0, -25px);
375
+ }
376
+
377
+ &.child {
378
+ // transform: skewY(-15deg) translate(15px, 20px);
379
+ transform: translate(0, 25px);
380
+ }
381
+
382
+ &:hover,
383
+ &.current {
384
+ background: rgba($Editor-hlbox-bg, 1);
385
+ }
386
+ }
387
+ }
388
+ }
389
+
390
+ .ae-Editor-toolbar {
391
+ position: relative;
392
+ padding-left: 8px;
393
+ display: inline-flex !important;
394
+ pointer-events: all;
395
+ align-items: center;
396
+ justify-content: flex-start;
397
+
398
+ &::before {
399
+ position: absolute;
400
+ top: -4px;
401
+ left: 0;
402
+ content: '|';
403
+ opacity: 0.4;
404
+ color: #fff;
405
+ height: 10px;
406
+ width: 1px;
407
+ }
408
+
409
+ &.sencondary {
410
+ padding-left: 0 !important;
411
+
412
+ &::before {
413
+ display: none;
414
+ }
415
+ }
416
+
417
+ button {
418
+ margin: 0 4px;
419
+ cursor: pointer;
420
+ display: inline-flex;
421
+ align-items: center;
422
+ justify-content: center;
423
+ width: 16px;
424
+ padding: 0;
425
+ text-align: center;
426
+ color: #fff;
427
+ opacity: 0.8;
428
+ background: transparent;
429
+ border: none;
430
+ outline: none;
431
+ font-size: 12px;
432
+
433
+ svg {
434
+ fill: currentColor;
435
+ }
436
+
437
+ &:hover {
438
+ opacity: 1;
439
+ }
440
+ fa &[draggable] {
441
+ cursor: move;
442
+ }
443
+ }
444
+ }
445
+
446
+ .ae-WResizer,
447
+ .ae-HResizer,
448
+ .ae-Resizer {
449
+ width: 10px;
450
+ height: 10px;
451
+ border: 2px solid $Editor-theme;
452
+ background-color: #fff;
453
+ transform: translate(-50%, -50%);
454
+ position: absolute;
455
+ pointer-events: all;
456
+ display: none;
457
+ }
458
+
459
+ .ae-WResizer {
460
+ left: 100%;
461
+ top: 50%;
462
+ cursor: ew-resize;
463
+
464
+ &[data-value]:after {
465
+ position: absolute;
466
+ content: attr(data-value);
467
+ background-color: $Editor-theme;
468
+ right: 15px;
469
+ top: 50%;
470
+ transform: translate(0, -50%);
471
+ padding: 2px 8px;
472
+ color: #fff;
473
+ }
474
+ }
475
+
476
+ .ae-HResizer {
477
+ left: 50%;
478
+ top: 100%;
479
+ cursor: ns-resize;
480
+
481
+ &[data-value]:after {
482
+ position: absolute;
483
+ content: attr(data-value);
484
+ background-color: $Editor-theme;
485
+ bottom: 15px;
486
+ left: 50%;
487
+ transform: translate(-50%, 0);
488
+ padding: 2px 8px;
489
+ color: #fff;
490
+ }
491
+ }
492
+
493
+ .ae-Resizer {
494
+ left: 100%;
495
+ top: 100%;
496
+ cursor: nwse-resize;
497
+
498
+ &[data-value]:after {
499
+ position: absolute;
500
+ content: attr(data-value);
501
+ background-color: $Editor-theme;
502
+ bottom: 15px;
503
+ right: 15px;
504
+ padding: 2px 8px;
505
+ color: #fff;
506
+ text-align: center;
507
+ }
508
+ }
509
+
510
+ .ae-Editor-hlbox {
511
+ position: absolute;
512
+ z-index: 1;
513
+ border: 1px dashed $Editor-hlbox-bg;
514
+ box-sizing: border-box;
515
+ pointer-events: none;
516
+ transition: all ease-out 0.15s;
517
+
518
+ &:hover {
519
+ z-index: 3;
520
+ }
521
+
522
+ &.selected {
523
+ background: rgba($Editor-hlbox--onActive-bg, 0.05);
524
+ border: 2px solid $Editor-hlbox--onActive-bg;
525
+
526
+ .ae-Editor-toolbar {
527
+ background: $Editor-hlbox--onActive-bg;
528
+
529
+ button.ae-InsertBefore,
530
+ button.ae-InsertAfter {
531
+ background: $Editor-hlbox--onActive-bg;
532
+ }
533
+ }
534
+
535
+ .ae-WResizer,
536
+ .ae-HResizer,
537
+ .ae-Resizer {
538
+ display: block;
539
+ }
540
+ }
541
+
542
+ &.regionOn {
543
+ background: transparent;
544
+ z-index: 5;
545
+ }
546
+
547
+ .ae-Editor-toolbar {
548
+ display: none;
549
+ background: $Editor-hlbox-bg;
550
+
551
+ &.sencondary {
552
+ position: absolute;
553
+ top: -1px;
554
+ right: -1px;
555
+ border-radius: 0 0 3px 3px;
556
+ height: 20px;
557
+ line-height: 20px;
558
+
559
+ > button {
560
+ font-size: 12px;
561
+ width: 16px;
562
+ }
563
+ }
564
+
565
+ // 选中元素前后插入功能icon
566
+ &.special {
567
+ position: absolute;
568
+ top: 0;
569
+ left: 0;
570
+ right: 0;
571
+ bottom: 0;
572
+ background: transparent !important;
573
+ height: auto;
574
+ width: auto;
575
+ pointer-events: none;
576
+ }
577
+
578
+ button {
579
+ &.ae-InsertBefore,
580
+ &.ae-InsertAfter {
581
+ pointer-events: all;
582
+ position: absolute;
583
+ background: $Editor-hlbox-bg;
584
+ width: 20px;
585
+ height: 20px;
586
+ line-height: 20px;
587
+ border-radius: 500px;
588
+ top: 20%;
589
+
590
+ > span > svg {
591
+ width: 12px;
592
+ height: 12px;
593
+ position: absolute;
594
+ top: 50%;
595
+ left: 50%;
596
+ transform: translate(-50%, -50%);
597
+ transition: transform ease-out 0.3s;
598
+ }
599
+
600
+ &.is-vertical {
601
+ left: 50%;
602
+ transform: translate(-50%, 0);
603
+ }
604
+
605
+ &:hover {
606
+ > span > svg {
607
+ transform: translate(-50%, -50%) rotate(90deg);
608
+ }
609
+ box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.12),
610
+ 0 2px 4px 0 rgba(0, 0, 0, 0.08);
611
+ }
612
+ }
613
+
614
+ &.ae-InsertBefore {
615
+ left: -25px;
616
+
617
+ &.is-vertical {
618
+ top: -25px;
619
+ }
620
+ }
621
+
622
+ &.ae-InsertAfter {
623
+ right: -25px;
624
+
625
+ &.is-vertical {
626
+ top: auto;
627
+ bottom: -25px;
628
+ }
629
+ }
630
+ }
631
+ }
632
+
633
+ &.selected .ae-Editor-toolbar {
634
+ display: block;
635
+ background: $Editor-hlbox--onActive-bg;
636
+ }
637
+ }
638
+
639
+ .ae-Editor-renderer-error {
640
+ padding: 5px;
641
+ font-family: PingFangSC-Medium;
642
+ font-size: 14px;
643
+ color: #cf1322;
644
+ border: 1px dashed #cf1322;
645
+ }
646
+
647
+ .ae-Editor-tip {
648
+ user-select: none;
649
+ max-width: 100px;
650
+ padding: 0 8px;
651
+ overflow: hidden;
652
+ text-overflow: ellipsis;
653
+ color: #fff;
654
+ font-size: 12px;
655
+ line-height: 24px;
656
+ height: 24px;
657
+ display: inline-flex;
658
+ align-items: center;
659
+ white-space: nowrap;
660
+ position: relative;
661
+ transition: all ease-out 0.3s;
662
+ cursor: pointer;
663
+ z-index: 2;
664
+
665
+ &.parent,
666
+ &.child {
667
+ position: absolute;
668
+ top: 0;
669
+ left: 0;
670
+ background: $Editor-hlbox--onActive-bg;
671
+ z-index: 1;
672
+ }
673
+
674
+ &.child {
675
+ z-index: 3;
676
+ }
677
+ }
678
+
679
+ .ae-Preview-widgets {
680
+ position: absolute;
681
+ top: 0;
682
+ left: 0;
683
+ width: 100%;
684
+ height: 100%;
685
+ box-sizing: border-box;
686
+ z-index: 100;
687
+ pointer-events: none;
688
+ }
689
+
690
+ .ae-Editor-rendererCol {
691
+ width: 140px;
692
+ padding: 0 20px 0 0;
693
+ vertical-align: middle !important;
694
+ text-align: center;
695
+ }
696
+
697
+ .ae-Editor-rendererThumbOuter {
698
+ position: absolute;
699
+ top: 0;
700
+ left: 0;
701
+ min-width: 210px;
702
+ min-height: 90px;
703
+ padding: 10px;
704
+ display: flex;
705
+ justify-content: center;
706
+ align-items: center;
707
+ text-align: center;
708
+ vertical-align: middle;
709
+ }
710
+
711
+ .ae-Settings-content {
712
+ height: 100%;
713
+ }
714
+
715
+ .width-draggable-icon {
716
+ position: absolute;
717
+ width: 4px;
718
+ height: 100%;
719
+ top: 0;
720
+ right: -2px;
721
+ background-color: transparent;
722
+ cursor: col-resize;
723
+ z-index: 99;
724
+ }
725
+
726
+ .width-draggable-icon.leftBtn {
727
+ left: -2px;
728
+ right: auto;
729
+ }
730
+
731
+ .ae-DialogToolbar {
732
+ height: 100%;
733
+ flex: 1 auto;
734
+
735
+ > button {
736
+ background: 0 0;
737
+ color: #222;
738
+ outline: 0;
739
+ border: 0;
740
+ line-height: 1;
741
+ cursor: pointer;
742
+ margin: 0 2px;
743
+ transition: background-color 0.2s ease 0s;
744
+ border-radius: 0;
745
+ background-clip: padding-box;
746
+ z-index: 2;
747
+ position: relative;
748
+ box-sizing: border-box;
749
+ text-decoration: none;
750
+
751
+ float: left;
752
+ padding: 0;
753
+ width: 30px;
754
+ height: 30px;
755
+ text-align: left;
756
+
757
+ > i {
758
+ display: block;
759
+ font-size: 14px;
760
+ width: 14px;
761
+ margin: 8px;
762
+ text-align: center;
763
+ float: none;
764
+ }
765
+
766
+ &:hover {
767
+ background-color: #f2f2f2;
768
+ }
769
+
770
+ &.acitve {
771
+ background: #d6d6d6 !important;
772
+ color: #222 !important;
773
+ }
774
+
775
+ &[disabled] {
776
+ color: #bdbdbd;
777
+ cursor: default;
778
+ pointer-events: none;
779
+ }
780
+ }
781
+ }
782
+
783
+ .ae-disable-mask {
784
+ position: absolute;
785
+ top: 0;
786
+ right: 0;
787
+ bottom: 0;
788
+ left: 0;
789
+ z-index: 1100;
790
+ }
791
+
792
+ .ae-RenderersPicker-thumb {
793
+ width: 100%;
794
+ padding: 10px;
795
+ user-select: none;
796
+
797
+ &.is-scaled {
798
+ width: 140px;
799
+ }
800
+
801
+ .ae-Editor-rendererThumbWrap {
802
+ position: relative;
803
+ width: 100%;
804
+ min-height: 60px;
805
+ max-height: 150px;
806
+ padding: 10px;
807
+ text-align: left;
808
+ z-index: 100;
809
+ background: $body-bg;
810
+ overflow: hidden;
811
+ display: flex;
812
+ justify-content: center;
813
+ align-items: center;
814
+ }
815
+
816
+ .ae-Editor-rendererThumbIcon {
817
+ position: absolute;
818
+ top: 50%;
819
+ left: 50%;
820
+ z-index: 110;
821
+ background: rgba(0, 0, 0, 0.6);
822
+ border-radius: 5px;
823
+ width: 30px;
824
+ height: 30px;
825
+ color: #fff;
826
+ text-align: center;
827
+ vertical-align: middle;
828
+ line-height: 30px;
829
+ transform: translate(-50%, -50%);
830
+ opacity: 0;
831
+
832
+ &:hover {
833
+ opacity: 1 !important;
834
+ }
835
+
836
+ > svg {
837
+ position: relative;
838
+ top: 4px;
839
+ width: 16px;
840
+ height: 16px;
841
+ }
842
+ }
843
+
844
+ .ae-Editor-rendererThumbWrap:hover > .ae-Editor-rendererThumbIcon {
845
+ opacity: 0.4;
846
+ }
847
+
848
+ .ae-Editor-rendererThumbIcon i {
849
+ display: block;
850
+ position: absolute;
851
+ bottom: 0;
852
+ right: 0;
853
+ color: #dcdcdc;
854
+ }
855
+
856
+ .ae-Editor-rendererThumb {
857
+ display: inline-block;
858
+ width: 100%;
859
+ }
860
+
861
+ .ae-Editor-rendererThumbInner {
862
+ margin: 0;
863
+ width: 100%;
864
+ transform-origin: 0% 0%;
865
+ transform: scale(1);
866
+ pointer-events: none;
867
+ text-align: center;
868
+
869
+ > * {
870
+ text-align: left;
871
+ margin-bottom: 0;
872
+ }
873
+ }
874
+
875
+ &.is-scaled .ae-Editor-rendererThumbInner {
876
+ margin: 0;
877
+ width: 200%;
878
+ transform-origin: 0% 0%;
879
+ transform: scale(0.5);
880
+ pointer-events: none;
881
+ text-align: center;
882
+ }
883
+ }
884
+
885
+ .ae-Editor-rendererPlaceholder {
886
+ position: relative;
887
+ text-align: center;
888
+ }
889
+ // 左侧 组件面板 和 Code 面板
890
+ .ae-RendererPanel,
891
+ .ae-CodePanel {
892
+ display: flex;
893
+ flex-direction: column;
894
+ height: 100%;
895
+
896
+ .ae-RendererPanel-content,
897
+ .ae-CodePanel-content {
898
+ flex: 1 1 auto;
899
+ overflow: hidden;
900
+ }
901
+ }
902
+ /* 左侧大纲和组件面板的公用样式 */
903
+ .ae-RendererPanel,
904
+ .ae-Outline-panel,
905
+ .ae-InsertPanel,
906
+ .ae-CodePanel {
907
+ // 左侧面板Header
908
+ .panel-header {
909
+ margin: 12px 0;
910
+ flex: 0 0 22px;
911
+ padding: 0 12px;
912
+ font-family: PingFangSC-Medium;
913
+ font-size: 14px;
914
+ color: #141a25;
915
+ letter-spacing: 0;
916
+ line-height: 22px;
917
+ font-weight: 500;
918
+ display: flex;
919
+ justify-content: space-between;
920
+ align-items: center;
921
+ }
922
+
923
+ // 搜索框样式
924
+ .editor-InputSearch {
925
+ margin: 0 12px;
926
+ background: #fff !important;
927
+ border: 1px solid $editor-border-color !important;
928
+ border-radius: 4px !important;
929
+ display: flex;
930
+ justify-content: flex-start;
931
+ align-items: center;
932
+
933
+ &:hover {
934
+ border-color: $editor-active-color !important;
935
+ }
936
+
937
+ &.is-focused {
938
+ border-color: #144bcc !important;
939
+ }
940
+
941
+ svg.icon-search,
942
+ svg.icon-editor-search,
943
+ svg.delete-btn-icon {
944
+ top: 0 !important;
945
+ width: 16px;
946
+ height: 16px;
947
+ color: #d4d6d9;
948
+ fill: #d4d6d9;
949
+ cursor: pointer;
950
+
951
+ &:hover {
952
+ color: $editor-active-color;
953
+ fill: $editor-active-color;
954
+ }
955
+
956
+ &.margin-right {
957
+ right: 4px !important;
958
+ }
959
+ }
960
+
961
+ // clear 和 search 同时显示
962
+ svg.delete-btn-icon {
963
+ width: 14px;
964
+ height: 14px;
965
+ }
966
+ }
967
+
968
+ // 间隔线样式
969
+ hr.margin-top {
970
+ margin: 12px 6px 3px 6px;
971
+ height: 1px;
972
+ border: none;
973
+ border-top: 1px solid $editor-border-color !important;
974
+ }
975
+ }
976
+
977
+ // 组件插入和替换面板的搜索框
978
+ .ae-InsertPanel .editor-InputSearch {
979
+ margin: 0;
980
+ }
981
+
982
+ .ae-Widget-iframe {
983
+ position: relative;
984
+
985
+ &:after {
986
+ position: absolute;
987
+ top: 0;
988
+ left: 0;
989
+ width: 100%;
990
+ height: 100%;
991
+ z-index: 1210;
992
+ content: '';
993
+ }
994
+ }
995
+
996
+ .ae-Drawer-preview {
997
+ display: flex;
998
+ flex-direction: column;
999
+ }
1000
+
1001
+ .ae-Drawer-preview .panel-footer {
1002
+ .btn + .btn {
1003
+ margin-left: 5px;
1004
+ }
1005
+ }
1006
+
1007
+ .ae-Drawer-preview {
1008
+ .resize-ctrl {
1009
+ display: none;
1010
+ }
1011
+ }
1012
+
1013
+ .dropdown-menu.preview {
1014
+ display: block;
1015
+ position: static;
1016
+ }
1017
+
1018
+ [data-editor-id][draggable] {
1019
+ cursor: move;
1020
+ }
1021
+
1022
+ [data-editor-id].ae-is-draging,
1023
+ .ae-is-draging {
1024
+ display: none !important;
1025
+ }
1026
+
1027
+ [data-editor-id][data-visible='false'] {
1028
+ opacity: 0.6;
1029
+ position: relative;
1030
+
1031
+ &:before {
1032
+ pointer-events: none;
1033
+ font-size: 12px;
1034
+ content: '<隐藏状态>';
1035
+ z-index: 10;
1036
+ color: rgb(108, 113, 124);
1037
+ border: 1px dashed rgb(206, 208, 211);
1038
+ background: rgba(10, 19, 37, 0.05);
1039
+ position: absolute;
1040
+ top: 0;
1041
+ left: 0;
1042
+ width: 100%;
1043
+ height: 100%;
1044
+ display: flex;
1045
+ align-items: center;
1046
+ justify-content: center;
1047
+ }
1048
+ }
1049
+
1050
+ .ae-Region-placeholder {
1051
+ display: none;
1052
+
1053
+ // &:first-child {
1054
+ // position: relative;
1055
+ // display: flex;
1056
+ // flex: 1;
1057
+ // flex-direction: column;
1058
+ // justify-content: center;
1059
+ // min-width: 60px;
1060
+ // padding: 0 5px;
1061
+ // -webkit-user-select: none;
1062
+ // user-select: none;
1063
+ // text-align: center;
1064
+ // text-transform: uppercase;
1065
+ // color: var(--text--muted-color);
1066
+ // // border: 1px dashed rgb(206, 208, 211);
1067
+ // background: rgba(10, 19, 37, 0.05);
1068
+ // }
1069
+ }
1070
+
1071
+ [data-region] {
1072
+ position: relative;
1073
+ min-height: 34px;
1074
+
1075
+ &:empty {
1076
+ min-width: 20px;
1077
+
1078
+ &:before {
1079
+ height: 100%;
1080
+ content: attr(data-region-placeholder);
1081
+ position: relative;
1082
+ display: flex;
1083
+ flex: 1;
1084
+ flex-direction: column;
1085
+ justify-content: center;
1086
+
1087
+ padding: 0 5px;
1088
+ -webkit-user-select: none;
1089
+ user-select: none;
1090
+ text-align: center;
1091
+ text-transform: uppercase;
1092
+ color: rgb(108, 113, 124);
1093
+ border: 1px dashed rgb(206, 208, 211);
1094
+ background: rgba(10, 19, 37, 0.05);
1095
+ }
1096
+ }
1097
+ // &.is-region-active {
1098
+ // min-height: 34px;
1099
+ // }
1100
+
1101
+ &.is-dragenter {
1102
+ background-color: #fff;
1103
+ }
1104
+
1105
+ &.is-dragenter .ae-AddBtn {
1106
+ display: none;
1107
+ }
1108
+
1109
+ &.is-dragenter > [data-editor-id],
1110
+ &.is-dragenter > *:not([data-editor-id]) > [data-editor-id] {
1111
+ position: relative;
1112
+
1113
+ &::before {
1114
+ position: absolute;
1115
+ content: '';
1116
+ pointer-events: none;
1117
+ top: -1px;
1118
+ left: -1px;
1119
+ right: -1px;
1120
+ bottom: -1px;
1121
+ z-index: 10;
1122
+ background: rgba($Editor-rgion-bg, 0.05);
1123
+ border: 1px solid rgba($Editor-rgion-bg, 0.2);
1124
+ }
1125
+ }
1126
+
1127
+ &.is-dragenter > span[data-editor-id] {
1128
+ display: inline-block;
1129
+ }
1130
+
1131
+ &.is-entering:not(.is-dragenter) {
1132
+ position: relative;
1133
+
1134
+ &::before {
1135
+ z-index: 10;
1136
+ content: '';
1137
+ position: absolute;
1138
+ pointer-events: none;
1139
+ left: 0;
1140
+ top: 0;
1141
+ right: 0;
1142
+ bottom: 0;
1143
+ animation: growing 1s infinite linear;
1144
+ // transform: translate3d(0, 0, 0);
1145
+ }
1146
+
1147
+ &::after {
1148
+ z-index: 20;
1149
+ content: '保持3s不动切换';
1150
+ pointer-events: none;
1151
+ position: absolute;
1152
+ left: 50%;
1153
+ transform: translateX(-50%);
1154
+ top: 10%;
1155
+ background: $Editor-theme;
1156
+ border-radius: 5px;
1157
+ font-size: 12px;
1158
+ color: #fff;
1159
+ padding: 2px 5px;
1160
+ }
1161
+ }
1162
+ }
1163
+
1164
+ .ae-Editor-rhlbox {
1165
+ position: absolute;
1166
+ left: -1px;
1167
+ top: -1px;
1168
+ display: block;
1169
+ box-sizing: content-box;
1170
+ border-style: solid;
1171
+ border-color: transparent;
1172
+ // background: rgba($Editor-rgion-bg, 0.05);
1173
+ pointer-events: none;
1174
+ z-index: 2;
1175
+ transition: all ease-out 0.15s;
1176
+
1177
+ &:before {
1178
+ position: absolute;
1179
+ top: 0;
1180
+ right: 0;
1181
+ bottom: 0;
1182
+ left: 0;
1183
+ z-index: -1;
1184
+ content: '';
1185
+ border: 1px dotted lighten($Editor-rgion-bg, 15%);
1186
+ visibility: hidden;
1187
+ }
1188
+
1189
+ > .region-tip {
1190
+ position: absolute;
1191
+ right: 50%;
1192
+ top: -19px;
1193
+ transform: translateX(50%);
1194
+ background: $Editor-rgion-bg; // $Editor-rgion-bg;
1195
+ color: #fff;
1196
+ padding: 3px 8px;
1197
+ font-size: 11px;
1198
+ line-height: 12px;
1199
+ white-space: nowrap;
1200
+ border-radius: 3px 3px 0 0;
1201
+ // box-shadow: 0 2px 5px rgba(255, 255, 255, 0.5);
1202
+ pointer-events: all;
1203
+ display: flex;
1204
+ justify-content: center;
1205
+ align-items: center;
1206
+ visibility: hidden;
1207
+
1208
+ // 只有一个region时不显示头部标签
1209
+ &.is-only-child-region {
1210
+ visibility: hidden !important;
1211
+ }
1212
+
1213
+ button {
1214
+ cursor: pointer;
1215
+ display: inline-flex;
1216
+ align-items: center;
1217
+ justify-content: center;
1218
+ background: transparent;
1219
+ border: none;
1220
+ outline: none;
1221
+ font-size: 11px;
1222
+ line-height: 12px;
1223
+ }
1224
+
1225
+ button.clear-icon-btn {
1226
+ padding: 0 !important;
1227
+ }
1228
+
1229
+ svg {
1230
+ width: 12px;
1231
+ height: 12px;
1232
+ fill: #fff;
1233
+ opacity: 0.8;
1234
+ cursor: pointer;
1235
+
1236
+ &:hover {
1237
+ opacity: 1;
1238
+ }
1239
+ }
1240
+
1241
+ // 头部工具栏/分割线样式
1242
+ .margin-space {
1243
+ opacity: 0.8;
1244
+ margin: 0 6px;
1245
+ }
1246
+ }
1247
+
1248
+ // 兼容方案,避免便签被遮挡
1249
+ &.region-label-within > .region-tip {
1250
+ top: 1px;
1251
+ border-radius: 0 0 3px 3px;
1252
+ }
1253
+
1254
+ // 高亮区域hover态
1255
+ &.region-hover {
1256
+ &:before,
1257
+ > .region-tip {
1258
+ visibility: visible;
1259
+ }
1260
+ }
1261
+
1262
+ // 高亮区域选中态
1263
+ &.is-highlight {
1264
+ border-color: rgba($Editor-hlbox--onActive-bg, 0.05);
1265
+ background: transparent;
1266
+
1267
+ &:before {
1268
+ visibility: visible;
1269
+ // box-shadow: 0 1px 7px rgba(0, 0, 0, 0.2);
1270
+ border: 1px solid lighten($Editor-rgion-bg, 5%);
1271
+ }
1272
+
1273
+ > .region-tip {
1274
+ visibility: visible;
1275
+ }
1276
+ }
1277
+
1278
+ &.is-dragenter {
1279
+ &[data-renderer='form'][data-region='controls'] {
1280
+ margin: -12px;
1281
+ padding: 12px;
1282
+ }
1283
+
1284
+ &[data-renderer='form'][data-region='body'] {
1285
+ margin: -12px;
1286
+ padding: 12px;
1287
+ }
1288
+ }
1289
+ }
1290
+
1291
+ .ae-Editor-hlbox.selected > .ae-Editor-rhlbox {
1292
+ left: -2px;
1293
+ top: -2px;
1294
+ }
1295
+
1296
+ [data-region='columns'] > .ae-AddBtn,
1297
+ [data-renderer='card'][data-region='actions'] > .ae-AddBtn {
1298
+ position: absolute;
1299
+ left: -30px;
1300
+ top: 5px;
1301
+ }
1302
+
1303
+ div.ae-DragImage {
1304
+ position: absolute;
1305
+ top: 0;
1306
+ left: 0;
1307
+ background: rgba(66, 133, 244, 0.1);
1308
+ border: 1px solid $Editor-hlbox-bg;
1309
+ white-space: nowrap;
1310
+ width: 50px;
1311
+ height: 30px;
1312
+ z-index: 100000;
1313
+
1314
+ > span {
1315
+ position: absolute;
1316
+ left: -1px;
1317
+ top: -16px;
1318
+ background: $Editor-hlbox-bg;
1319
+ color: #fff;
1320
+ padding: 2px 5px;
1321
+ font-size: 11px;
1322
+ border-radius: 3px 3px 0 0;
1323
+ line-height: 12px;
1324
+ z-index: 1204;
1325
+ display: block;
1326
+ white-space: nowrap;
1327
+ box-shadow: 0 -2px 5px rgba(255, 255, 255, 0.5);
1328
+ }
1329
+ }
1330
+
1331
+ .ae-DragGhost {
1332
+ margin-bottom: 12px;
1333
+
1334
+ > * {
1335
+ // opacity: 0.6;
1336
+ position: relative;
1337
+
1338
+ &::before {
1339
+ content: '';
1340
+ position: absolute;
1341
+ z-index: 10;
1342
+ top: -1px;
1343
+ left: -1px;
1344
+ right: -1px;
1345
+ bottom: -1px;
1346
+ min-width: 100%;
1347
+ min-height: 100%;
1348
+ background: rgba($Editor-rgion-bg, 0.2);
1349
+ border: 1px solid $Editor-rgion-bg;
1350
+ }
1351
+ }
1352
+
1353
+ &.use-position {
1354
+ display: inline-block;
1355
+ position: absolute;
1356
+ background: $Editor-rgion-bg;
1357
+ height: 5px;
1358
+ width: 100%;
1359
+ z-index: 5;
1360
+
1361
+ &::before {
1362
+ content: ' ';
1363
+ }
1364
+
1365
+ &.is-horizontal {
1366
+ width: 5px;
1367
+ height: 100%;
1368
+ }
1369
+ }
1370
+ }
1371
+
1372
+ @media (min-width: 768px) {
1373
+ .ae-BulkActions-control {
1374
+ .col-edit {
1375
+ width: 30px;
1376
+ flex-grow: 0;
1377
+
1378
+ > button {
1379
+ border: 0;
1380
+ background-color: transparent;
1381
+ outline: none;
1382
+ }
1383
+ }
1384
+ }
1385
+ }
1386
+
1387
+ .ae-Editor-rendererItem {
1388
+ display: block;
1389
+ max-width: unset;
1390
+ margin-bottom: 10px;
1391
+
1392
+ &:hover {
1393
+ background: rgba(66, 133, 244, 0.1);
1394
+ color: #58666e;
1395
+ }
1396
+
1397
+ &.is-active,
1398
+ &:hover:active {
1399
+ background: rgba(66, 133, 244, 0.1);
1400
+ border: 1px solid $Editor-theme;
1401
+ color: #58666e;
1402
+
1403
+ &:after {
1404
+ border-color: $Editor-theme;
1405
+ }
1406
+ }
1407
+ }
1408
+
1409
+ // Pagination配置面板里的layout字段样式
1410
+ .ae-pagination-layout-item {
1411
+ input+div {
1412
+ >div:nth-child(1) {
1413
+ flex-basis: px2rem(32px);
1414
+ flex-grow: 0;
1415
+ padding-right: 0;
1416
+ }
1417
+ }
1418
+ }
1419
+
1420
+ .ae-dialog {
1421
+ padding: 0 !important;
1422
+ position: relative;
1423
+
1424
+ > div {
1425
+ position: absolute;
1426
+ width: 100%;
1427
+ height: 100%;
1428
+ padding: 0;
1429
+ overflow: auto;
1430
+
1431
+ > div {
1432
+ height: 100%;
1433
+ margin-bottom: 0;
1434
+
1435
+ > .ae-Editor {
1436
+ position: relative;
1437
+ height: 100%;
1438
+ }
1439
+ }
1440
+ }
1441
+ }
1442
+
1443
+ .ae-Dialog-footerRegion {
1444
+ text-align: right;
1445
+ }
1446
+
1447
+ .ae-InlineModel {
1448
+ display: flex;
1449
+ flex-direction: column;
1450
+ height: auto;
1451
+ width: 100%;
1452
+ border: 1px solid $borderColor;
1453
+ }
1454
+
1455
+ .ae-EditableRenderers {
1456
+ padding: 5px 10px;
1457
+ background: rgba(#27c24c, 0.2);
1458
+ border: 1px solid darken(rgba(#27c24c, 0.2), 20%);
1459
+ margin-bottom: 10px;
1460
+
1461
+ &-tip {
1462
+ display: block;
1463
+ color: #27c24c;
1464
+ }
1465
+ }
1466
+
1467
+ .ae-EditableRender {
1468
+ display: flex;
1469
+ flex-direction: row;
1470
+ align-items: center;
1471
+
1472
+ &-title {
1473
+ font-size: 12px;
1474
+ color: #333;
1475
+ padding-right: 10px;
1476
+ }
1477
+
1478
+ &-body {
1479
+ flex-grow: 1;
1480
+ width: 0;
1481
+
1482
+ margin: -3px;
1483
+ > * {
1484
+ margin: 3px;
1485
+ }
1486
+ }
1487
+
1488
+ margin-top: 10px;
1489
+ }
1490
+
1491
+ .ae-ErrorRenderer {
1492
+ display: flex;
1493
+ align-items: center;
1494
+ justify-content: center;
1495
+ color: #a94442;
1496
+ background: #f2dede;
1497
+ border: 1px solid darken(adjust-hue(#f2dede, -10), 5%);
1498
+ min-height: 30px;
1499
+ padding: 0 10px;
1500
+ }
1501
+
1502
+ .ae-ApiSample {
1503
+ min-width: 200px;
1504
+
1505
+ > pre {
1506
+ overflow: auto;
1507
+ border: 1px solid #999;
1508
+ page-break-inside: avoid;
1509
+ display: block;
1510
+ padding: 9.5px;
1511
+ margin: 0 0 10px;
1512
+ font-size: 13px;
1513
+ line-height: 1.42857143;
1514
+ color: #333;
1515
+ word-break: break-all;
1516
+ word-wrap: break-word;
1517
+ background-color: #f5f5f5;
1518
+ border: 1px solid #ccc;
1519
+ border-radius: 4px;
1520
+
1521
+ > code {
1522
+ white-space: pre;
1523
+ }
1524
+ }
1525
+
1526
+ &-tooltip {
1527
+ max-width: 360px;
1528
+ }
1529
+ }
1530
+
1531
+ .ae-JsonEditor {
1532
+ height: 400px;
1533
+ border: 1px solid $borderColor;
1534
+ }
1535
+
1536
+ .ae-Editor-popOverForm {
1537
+ min-width: 300px;
1538
+ max-width: 600px;
1539
+ padding: 10px 20px;
1540
+ }
1541
+
1542
+ // hover时才显示滚动条
1543
+ .hoverShowScrollBar {
1544
+ overflow: auto !important;
1545
+
1546
+ @include minScrollBar();
1547
+
1548
+ &::-webkit-scrollbar-thumb {
1549
+ visibility: hidden !important;
1550
+ }
1551
+
1552
+ &:hover {
1553
+ &::-webkit-scrollbar-thumb {
1554
+ visibility: visible !important;
1555
+ }
1556
+ }
1557
+ }
1558
+
1559
+ .ae-collapse-checkbox{
1560
+ label{
1561
+ margin-right: 0;
1562
+ }
1563
+ }