@tmagic/editor 1.4.6 → 1.4.8

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 (158) hide show
  1. package/dist/style.css +1 -1
  2. package/dist/tmagic-editor.js +636 -589
  3. package/dist/tmagic-editor.umd.cjs +634 -586
  4. package/package.json +15 -11
  5. package/types/editorProps.d.ts +0 -7
  6. package/types/layouts/PropsPanel.vue.d.ts +9 -9
  7. package/types/layouts/sidebar/layer/use-click.d.ts +1 -1
  8. package/types/services/codeBlock.d.ts +2 -1
  9. package/types/services/dataSource.d.ts +2 -1
  10. package/types/services/dep.d.ts +12 -2
  11. package/types/services/editor.d.ts +22 -4
  12. package/types/services/props.d.ts +7 -6
  13. package/types/type.d.ts +6 -0
  14. package/types/utils/editor.d.ts +1 -0
  15. package/types/utils/idle-task.d.ts +14 -0
  16. package/types/utils/operator.d.ts +2 -2
  17. package/src/Editor.vue +0 -211
  18. package/src/components/CodeBlockEditor.vue +0 -268
  19. package/src/components/CodeParams.vue +0 -60
  20. package/src/components/ContentMenu.vue +0 -193
  21. package/src/components/FloatingBox.vue +0 -178
  22. package/src/components/Icon.vue +0 -27
  23. package/src/components/Resizer.vue +0 -23
  24. package/src/components/ScrollBar.vue +0 -151
  25. package/src/components/ScrollViewer.vue +0 -128
  26. package/src/components/SearchInput.vue +0 -37
  27. package/src/components/SplitView.vue +0 -186
  28. package/src/components/ToolButton.vue +0 -138
  29. package/src/components/Tree.vue +0 -71
  30. package/src/components/TreeNode.vue +0 -148
  31. package/src/editorProps.ts +0 -124
  32. package/src/fields/Code.vue +0 -50
  33. package/src/fields/CodeLink.vue +0 -80
  34. package/src/fields/CodeSelect.vue +0 -132
  35. package/src/fields/CodeSelectCol.vue +0 -139
  36. package/src/fields/DataSourceFieldSelect.vue +0 -149
  37. package/src/fields/DataSourceFields.vue +0 -323
  38. package/src/fields/DataSourceInput.vue +0 -325
  39. package/src/fields/DataSourceMethodSelect.vue +0 -153
  40. package/src/fields/DataSourceMethods.vue +0 -104
  41. package/src/fields/DataSourceMocks.vue +0 -255
  42. package/src/fields/DataSourceSelect.vue +0 -98
  43. package/src/fields/EventSelect.vue +0 -301
  44. package/src/fields/KeyValue.vue +0 -137
  45. package/src/fields/PageFragmentSelect.vue +0 -63
  46. package/src/fields/UISelect.vue +0 -135
  47. package/src/hooks/index.ts +0 -24
  48. package/src/hooks/use-code-block-edit.ts +0 -83
  49. package/src/hooks/use-data-source-edit.ts +0 -46
  50. package/src/hooks/use-data-source-method.ts +0 -100
  51. package/src/hooks/use-editor-content-height.ts +0 -26
  52. package/src/hooks/use-filter.ts +0 -55
  53. package/src/hooks/use-float-box.ts +0 -76
  54. package/src/hooks/use-getso.ts +0 -35
  55. package/src/hooks/use-next-float-box-position.ts +0 -29
  56. package/src/hooks/use-node-status.ts +0 -48
  57. package/src/hooks/use-stage.ts +0 -129
  58. package/src/hooks/use-window-rect.ts +0 -20
  59. package/src/icons/AppManageIcon.vue +0 -15
  60. package/src/icons/CenterIcon.vue +0 -13
  61. package/src/icons/CodeIcon.vue +0 -28
  62. package/src/icons/FolderMinusIcon.vue +0 -22
  63. package/src/icons/PinIcon.vue +0 -25
  64. package/src/icons/PinnedIcon.vue +0 -25
  65. package/src/index.ts +0 -118
  66. package/src/initService.ts +0 -447
  67. package/src/layouts/AddPageBox.vue +0 -55
  68. package/src/layouts/CodeEditor.vue +0 -226
  69. package/src/layouts/Framework.vue +0 -163
  70. package/src/layouts/NavMenu.vue +0 -200
  71. package/src/layouts/PropsPanel.vue +0 -130
  72. package/src/layouts/page-bar/AddButton.vue +0 -48
  73. package/src/layouts/page-bar/PageBar.vue +0 -159
  74. package/src/layouts/page-bar/PageBarScrollContainer.vue +0 -156
  75. package/src/layouts/page-bar/SwitchTypeButton.vue +0 -45
  76. package/src/layouts/sidebar/ComponentListPanel.vue +0 -134
  77. package/src/layouts/sidebar/Sidebar.vue +0 -278
  78. package/src/layouts/sidebar/code-block/CodeBlockList.vue +0 -142
  79. package/src/layouts/sidebar/code-block/CodeBlockListPanel.vue +0 -70
  80. package/src/layouts/sidebar/data-source/DataSourceConfigPanel.vue +0 -84
  81. package/src/layouts/sidebar/data-source/DataSourceList.vue +0 -160
  82. package/src/layouts/sidebar/data-source/DataSourceListPanel.vue +0 -106
  83. package/src/layouts/sidebar/layer/LayerMenu.vue +0 -128
  84. package/src/layouts/sidebar/layer/LayerNodeTool.vue +0 -32
  85. package/src/layouts/sidebar/layer/LayerPanel.vue +0 -119
  86. package/src/layouts/sidebar/layer/use-click.ts +0 -110
  87. package/src/layouts/sidebar/layer/use-drag.ts +0 -161
  88. package/src/layouts/sidebar/layer/use-keybinding.ts +0 -54
  89. package/src/layouts/sidebar/layer/use-node-status.ts +0 -114
  90. package/src/layouts/workspace/Breadcrumb.vue +0 -35
  91. package/src/layouts/workspace/Workspace.vue +0 -46
  92. package/src/layouts/workspace/viewer/NodeListMenu.vue +0 -115
  93. package/src/layouts/workspace/viewer/Stage.vue +0 -246
  94. package/src/layouts/workspace/viewer/StageOverlay.vue +0 -68
  95. package/src/layouts/workspace/viewer/ViewerMenu.vue +0 -145
  96. package/src/services/BaseService.ts +0 -230
  97. package/src/services/codeBlock.ts +0 -324
  98. package/src/services/componentList.ts +0 -58
  99. package/src/services/dataSource.ts +0 -209
  100. package/src/services/dep.ts +0 -80
  101. package/src/services/editor.ts +0 -1087
  102. package/src/services/events.ts +0 -93
  103. package/src/services/history.ts +0 -126
  104. package/src/services/keybinding.ts +0 -220
  105. package/src/services/props.ts +0 -265
  106. package/src/services/stageOverlay.ts +0 -212
  107. package/src/services/storage.ts +0 -155
  108. package/src/services/ui.ts +0 -156
  109. package/src/shims-vue.d.ts +0 -6
  110. package/src/theme/breadcrumb.scss +0 -6
  111. package/src/theme/code-block.scss +0 -6
  112. package/src/theme/code-editor.scss +0 -38
  113. package/src/theme/common/var.scss +0 -14
  114. package/src/theme/component-list-panel.scss +0 -95
  115. package/src/theme/content-menu.scss +0 -76
  116. package/src/theme/data-source-field.scss +0 -12
  117. package/src/theme/data-source-fields.scss +0 -13
  118. package/src/theme/data-source-input.scss +0 -18
  119. package/src/theme/data-source-methods.scss +0 -13
  120. package/src/theme/data-source.scss +0 -28
  121. package/src/theme/event.scss +0 -37
  122. package/src/theme/floating-box.scss +0 -32
  123. package/src/theme/framework.scss +0 -69
  124. package/src/theme/icon.scss +0 -12
  125. package/src/theme/index.scss +0 -10
  126. package/src/theme/key-value.scss +0 -20
  127. package/src/theme/layer-panel.scss +0 -26
  128. package/src/theme/layout.scss +0 -9
  129. package/src/theme/nav-menu.scss +0 -78
  130. package/src/theme/page-bar.scss +0 -89
  131. package/src/theme/page-fragment-select.scss +0 -14
  132. package/src/theme/props-panel.scss +0 -55
  133. package/src/theme/resizer.scss +0 -66
  134. package/src/theme/ruler.scss +0 -38
  135. package/src/theme/search-input.scss +0 -14
  136. package/src/theme/sidebar.scss +0 -79
  137. package/src/theme/stage.scss +0 -76
  138. package/src/theme/theme.scss +0 -27
  139. package/src/theme/tree.scss +0 -89
  140. package/src/theme/workspace.scss +0 -9
  141. package/src/type.ts +0 -746
  142. package/src/utils/compose.ts +0 -52
  143. package/src/utils/config.ts +0 -29
  144. package/src/utils/content-menu.ts +0 -95
  145. package/src/utils/data-source/formConfigs/base.ts +0 -30
  146. package/src/utils/data-source/formConfigs/http.ts +0 -60
  147. package/src/utils/data-source/index.ts +0 -236
  148. package/src/utils/editor.ts +0 -294
  149. package/src/utils/index.ts +0 -24
  150. package/src/utils/keybinding-config.ts +0 -125
  151. package/src/utils/logger.ts +0 -47
  152. package/src/utils/monaco-editor.ts +0 -8
  153. package/src/utils/operator.ts +0 -106
  154. package/src/utils/props.ts +0 -504
  155. package/src/utils/scroll-viewer.ts +0 -165
  156. package/src/utils/tree.ts +0 -15
  157. package/src/utils/undo-redo.ts +0 -76
  158. package/tsconfig.build.json +0 -16
@@ -1,76 +0,0 @@
1
- .magic-editor-content-menu {
2
- position: fixed;
3
- font-size: 12px;
4
- background: #fff;
5
- box-shadow: 0 2px 8px 2px rgba(68, 73, 77, 0.16);
6
- z-index: 1000;
7
- transform-origin: 0% 0%;
8
- font-weight: 600;
9
- padding: 4px 0px;
10
- overflow: auto;
11
- max-height: 80%;
12
- min-width: 180px;
13
-
14
- .menu-item {
15
- color: #333;
16
- display: flex;
17
- -webkit-box-align: center;
18
- align-items: center;
19
- cursor: pointer;
20
- min-width: 140px;
21
- transition: all 0.2s ease 0s;
22
- padding: 5px 14px;
23
- border-left: 2px solid transparent;
24
-
25
- .el-button {
26
- width: 100%;
27
- justify-content: flex-start;
28
- }
29
-
30
- .el-button--text,
31
- i {
32
- color: $--font-color;
33
- }
34
-
35
- .magic-editor-icon {
36
- margin-right: 5px;
37
- }
38
-
39
- &.divider {
40
- padding: 0 14px;
41
-
42
- .el-divider {
43
- margin: 0;
44
- }
45
- }
46
-
47
- &.button {
48
- &:hover {
49
- background-color: $--hover-color;
50
- .tmagic-design-button,
51
- .tmagic-design-button:active,
52
- .tmagic-design-button:focus {
53
- color: $--font-color;
54
- }
55
-
56
- &.menu-item i {
57
- color: $--font-color;
58
- }
59
- }
60
-
61
- &.active {
62
- background-color: $--theme-color;
63
- .tmagic-design-button,
64
- .tmagic-design-button:active,
65
- .tmagic-design-button:focus {
66
- color: #fff;
67
- background-color: transparent;
68
- }
69
-
70
- &.menu-item i {
71
- color: #fff;
72
- }
73
- }
74
- }
75
- }
76
- }
@@ -1,12 +0,0 @@
1
- .m-fields-data-source-select,
2
- .m-fields-data-source-field-select,
3
- .m-fields-data-source-method-select .data-source-method-select-container,
4
- .m-fields-code-select-col .code-select-container {
5
- width: 100%;
6
- display: flex;
7
- align-items: center;
8
-
9
- .m-fields-select-action-button {
10
- margin-left: 5px;
11
- }
12
- }
@@ -1,13 +0,0 @@
1
- .m-editor-data-source-fields {
2
- width: 100%;
3
-
4
- .tmagic-design-table {
5
- width: 100%;
6
- }
7
-
8
- .m-editor-data-source-fields-footer {
9
- display: flex;
10
- justify-content: flex-end;
11
- margin-top: 15px;
12
- }
13
- }
@@ -1,18 +0,0 @@
1
- .tmagic-data-source-input-text {
2
- .el-input__wrapper.tmagic-data-source-input-text-wrapper {
3
- overflow: hidden;
4
- padding-right: 30px;
5
- }
6
-
7
- .el-input__inner {
8
- display: flex;
9
- align-items: center;
10
- overflow: hidden;
11
- white-space: nowrap;
12
- }
13
-
14
- .tmagic-data-source-input-icon {
15
- position: absolute;
16
- right: 7px;
17
- }
18
- }
@@ -1,13 +0,0 @@
1
- .m-editor-data-source-methods {
2
- width: 100%;
3
-
4
- .tmagic-design-table {
5
- width: 100%;
6
- }
7
-
8
- .m-editor-data-source-methods-footer {
9
- display: flex;
10
- justify-content: flex-end;
11
- margin-top: 15px;
12
- }
13
- }
@@ -1,28 +0,0 @@
1
- .data-source-list-panel {
2
- .list-container {
3
- .list-item {
4
- .codeIcon {
5
- width: 22px;
6
- height: 22px;
7
- margin-right: 5px;
8
- }
9
-
10
- .compIcon {
11
- width: 22px;
12
- height: 22px;
13
- margin-right: 5px;
14
- }
15
- }
16
- }
17
- }
18
-
19
- .data-source-list-panel-add-menu {
20
- .tmagic-design-button {
21
- width: 100%;
22
- text-align: left;
23
-
24
- span {
25
- width: 100%;
26
- }
27
- }
28
- }
@@ -1,37 +0,0 @@
1
- .m-fields-event-select {
2
- width: 100%;
3
- .fullWidth {
4
- width: 100%;
5
- }
6
-
7
- .event-select-code {
8
- margin-left: 20px;
9
- width: auto;
10
- }
11
-
12
- .m-form-panel {
13
- margin: 10px 0px;
14
- }
15
-
16
- .el-card.is-always-shadow {
17
- box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.12);
18
- }
19
- }
20
- .m-fields-code-select-col,
21
- .m-fields-data-source-method-select {
22
- width: 100%;
23
- }
24
-
25
- .code-select-container,
26
- .data-source-method-select-container {
27
- display: flex;
28
- align-items: center;
29
- .select {
30
- flex: 10 0 100px;
31
- }
32
- .icon {
33
- flex: 1 0 20px;
34
- cursor: pointer;
35
- margin-right: 5px;
36
- }
37
- }
@@ -1,32 +0,0 @@
1
- .m-editor-float-box {
2
- position: absolute;
3
- background-color: #fff;
4
- z-index: 100;
5
- border: 1px solid $--border-color;
6
- display: flex;
7
- flex-direction: column;
8
- max-height: 100%;
9
- max-width: 100%;
10
-
11
- .m-editor-float-box-title {
12
- text-align: center;
13
- font-size: 14px;
14
- font-weight: 600;
15
- padding: 5px;
16
- cursor: move;
17
- display: flex;
18
- justify-content: space-between;
19
- align-items: center;
20
- border-bottom: 1px solid $--border-color;
21
- }
22
-
23
- .m-editor-float-box-body {
24
- overflow: auto;
25
- flex: 1;
26
- padding: 0 16px;
27
- }
28
- }
29
-
30
- .m-editor-floating-box-moveable {
31
- opacity: 0;
32
- }
@@ -1,69 +0,0 @@
1
- .m-editor {
2
- display: flex;
3
- flex-direction: column;
4
- width: 100%;
5
-
6
- &-content {
7
- height: calc(100% - #{$--nav-height});
8
- }
9
-
10
- &-framework-center {
11
- position: relative;
12
- transform: translateZ(0);
13
- flex: 1;
14
- }
15
-
16
- &-framework-left {
17
- background-color: $--sidebar-content-background-color;
18
- }
19
-
20
- &-framework-center .el-scrollbar__view {
21
- height: 100%;
22
- min-height: 100%;
23
- display: flex;
24
- justify-content: center;
25
- align-items: center;
26
- }
27
-
28
- &-empty {
29
- &-panel {
30
- display: flex;
31
- flex: 1;
32
- justify-content: center;
33
- align-items: center;
34
- flex-direction: column;
35
- height: calc(100% - #{$--page-bar-height});
36
- }
37
-
38
- &-content {
39
- display: flex;
40
- justify-content: space-evenly;
41
- flex-direction: row;
42
- width: 100%;
43
- }
44
-
45
- &-button {
46
- border: 3px solid rgba(0, 0, 0, 0.2);
47
- padding: 10px 40px;
48
- color: rgba(0, 0, 0, 0.6);
49
- cursor: pointer;
50
-
51
- i {
52
- height: 180px;
53
- line-height: 180px;
54
- font-size: 100px;
55
- }
56
-
57
- p {
58
- text-align: center;
59
- font-size: 20px;
60
- margin-top: 5px;
61
- }
62
-
63
- &:hover {
64
- border-color: $--theme-color;
65
- color: $--theme-color;
66
- }
67
- }
68
- }
69
- }
@@ -1,12 +0,0 @@
1
- .tmagic-design-icon {
2
- --color: inherit;
3
- height: 1em;
4
- width: 1em;
5
- position: relative;
6
- fill: currentColor;
7
-
8
- img {
9
- max-width: 100%;
10
- max-height: 100%;
11
- }
12
- }
@@ -1,10 +0,0 @@
1
- @import "./common/var.scss";
2
- @import "./theme.scss";
3
-
4
- .fade-enter-active,
5
- .fade-leave-active {
6
- transition: opacity 0.5s;
7
- }
8
- .fade-enter, .fade-leave-to /* .fade-leave-active below version 2.1.8 */ {
9
- opacity: 0;
10
- }
@@ -1,20 +0,0 @@
1
- .m-fields-key-value {
2
- display: flex;
3
- justify-items: center;
4
- align-items: top;
5
- width: 100%;
6
- }
7
-
8
- .m-fields-key-value-item {
9
- display: flex;
10
- margin-bottom: 10px;
11
- align-items: center;
12
- }
13
-
14
- .m-fileds-key-value-delimiter {
15
- margin: 0 10px;
16
- }
17
-
18
- .m-fileds-key-value-delete {
19
- margin-left: 10px;
20
- }
@@ -1,26 +0,0 @@
1
- .m-editor-layer-panel {
2
- background: $--sidebar-content-background-color;
3
-
4
- .m-editor-tree {
5
- padding-top: 48px;
6
- }
7
-
8
- .search-wrapper {
9
- display: flex;
10
- align-items: center;
11
- justify-content: center;
12
- position: absolute;
13
- top: 0;
14
- width: 100%;
15
- z-index: 1;
16
-
17
- .search-input {
18
- flex: 1;
19
- position: relative;
20
- }
21
-
22
- .tmagic-design-button {
23
- margin-right: 10px;
24
- }
25
- }
26
- }
@@ -1,9 +0,0 @@
1
- .m-editor-layout {
2
- width: 100%;
3
- display: flex;
4
- justify-self: space-between;
5
-
6
- &:has(.m-editor-resizer-draging) {
7
- overflow: hidden;
8
- }
9
- }
@@ -1,78 +0,0 @@
1
- .m-editor-nav-menu {
2
- display: flex;
3
- z-index: 5;
4
- -webkit-box-pack: justify;
5
- justify-content: space-between;
6
- -webkit-box-align: center;
7
- align-items: center;
8
- background-color: $--nav--background-color;
9
- font-size: 19.2px;
10
- color: $--nav-color;
11
- font-weight: 400;
12
- box-sizing: border-box;
13
- margin: 0px;
14
- flex: 0 0 $--nav-height;
15
- border-bottom: 1px solid #d8dee8;
16
-
17
- > div {
18
- display: flex;
19
- height: 100%;
20
- z-index: 1;
21
- align-items: center;
22
- }
23
-
24
- .menu-center {
25
- justify-content: center;
26
- }
27
-
28
- .menu-right {
29
- justify-content: flex-end;
30
- }
31
-
32
- .menu-item {
33
- flex-direction: row;
34
- -webkit-box-align: center;
35
- align-items: center;
36
- vertical-align: middle;
37
- font-size: 14px;
38
- line-height: 1;
39
- height: 100%;
40
- color: rgba(255, 255, 255, 0.7);
41
- box-sizing: inherit;
42
- z-index: 1;
43
- display: flex !important;
44
- transition: all 0.3s ease 0s;
45
- border-bottom: 2px solid transparent;
46
- margin: 0;
47
-
48
- .is-disabled {
49
- opacity: 0.5;
50
- }
51
-
52
- .is-text {
53
- padding: 5px;
54
- }
55
-
56
- .is-text > i {
57
- color: $--font-color;
58
- }
59
-
60
- .icon {
61
- display: flex;
62
- -webkit-box-align: center;
63
- align-items: center;
64
- height: 100%;
65
- padding: 0px 8px;
66
- }
67
-
68
- .menu-item-text {
69
- color: $--nav-color;
70
- }
71
-
72
- &.rule {
73
- .el-icon {
74
- transform: rotate(-90deg);
75
- }
76
- }
77
- }
78
- }
@@ -1,89 +0,0 @@
1
- .m-editor-page-bar-tabs {
2
- position: fixed;
3
- bottom: 0;
4
- left: 0;
5
- width: 100%;
6
-
7
- .tmagic-design-button.m-editor-page-bar-switch-type-button {
8
- margin-left: 7px;
9
- position: relative;
10
- top: 1px;
11
- border-radius: 3px 3px 0 0;
12
- border: 1px solid $--border-color;
13
- border-bottom: 1px solid transparent;
14
-
15
- &.active {
16
- background-color: #f3f3f3;
17
- }
18
- }
19
- }
20
-
21
- .m-editor-page-bar {
22
- display: flex;
23
- width: 100%;
24
- height: $--page-bar-height;
25
- line-height: $--page-bar-height;
26
- color: $--font-color;
27
- background-color: #f3f3f3;
28
- border-top: 1px solid $--border-color;
29
- z-index: 2;
30
- overflow: hidden;
31
-
32
- &-items {
33
- display: flex;
34
- transition: transform 0.3s;
35
- }
36
-
37
- &-item {
38
- padding: 0 10px;
39
- cursor: pointer;
40
- border-right: 1px solid $--border-color;
41
- display: flex;
42
- justify-items: center;
43
- align-items: center;
44
- background-color: #f3f3f3;
45
- white-space: nowrap;
46
-
47
- &.active {
48
- background-color: #fff;
49
- cursor: text;
50
-
51
- .m-editor-page-bar-menu-icon {
52
- cursor: pointer;
53
- }
54
- }
55
-
56
- &-icon {
57
- position: relative;
58
- z-index: 1;
59
- }
60
-
61
- &-title {
62
- max-width: 150px;
63
- text-overflow: ellipsis;
64
- white-space: nowrap;
65
- overflow: hidden;
66
- }
67
- }
68
- }
69
-
70
- .page-bar-popover {
71
- &.el-popper.el-popover {
72
- padding: 10px 0;
73
- }
74
-
75
- .menu-item {
76
- cursor: pointer;
77
- transition: all 0.2s ease 0s;
78
- padding: 5px 14px;
79
-
80
- .el-button--text,
81
- i {
82
- color: $--font-color;
83
- }
84
-
85
- &:hover {
86
- background-color: $--hover-color;
87
- }
88
- }
89
- }
@@ -1,14 +0,0 @@
1
- .m-fields-page-fragment-select {
2
- width: 100%;
3
- .page-fragment-select-container {
4
- width: 100%;
5
- display: flex;
6
- align-items: center;
7
- .select {
8
- flex: 1;
9
- }
10
- .icon {
11
- margin-left: 10px;
12
- }
13
- }
14
- }
@@ -1,55 +0,0 @@
1
- .m-editor-props-panel {
2
- padding: 0 10px 50px 10px;
3
-
4
- .m-editor-props-panel-src-icon {
5
- position: absolute;
6
- right: 15px;
7
- bottom: 15px;
8
- z-index: 30;
9
- }
10
-
11
- .magic-code-editor {
12
- position: absolute;
13
- left: 0;
14
- top: 0;
15
- z-index: 10;
16
- }
17
-
18
- &.small {
19
- .el-form-item__label {
20
- font-size: 12px;
21
- }
22
-
23
- .m-fieldset {
24
- legend {
25
- font-size: 12px;
26
- }
27
- }
28
-
29
- .el-tabs__item {
30
- font-size: 12px;
31
- }
32
- }
33
-
34
- .el-input__wrapper {
35
- border-radius: 0;
36
- }
37
-
38
- .m-fields-group-list {
39
- .tmagic-design-table {
40
- th {
41
- font-size: 12px;
42
- }
43
- }
44
- }
45
- }
46
-
47
- .m-editor-props-panel-popper {
48
- &.small {
49
- span,
50
- a,
51
- p {
52
- font-size: 12px;
53
- }
54
- }
55
- }
@@ -1,66 +0,0 @@
1
- .m-editor-resizer {
2
- border-left: 1px solid transparent;
3
- border-right: 1px solid transparent;
4
- width: 8px;
5
- margin: 0 -5px;
6
- height: 100%;
7
- opacity: 0.8;
8
- background: padding-box #d8dee8;
9
- box-sizing: border-box;
10
- cursor: col-resize;
11
- z-index: 1;
12
- position: relative;
13
-
14
- &:hover {
15
- border-color: #d8dee8;
16
-
17
- .icon-container {
18
- visibility: visible;
19
- opacity: 1;
20
- }
21
- }
22
-
23
- &.m-editor-resizer-draging {
24
- &::after {
25
- content: "";
26
- position: absolute;
27
- width: 600px;
28
- height: 100%;
29
- left: 0;
30
- }
31
-
32
- &::before {
33
- content: "";
34
- position: absolute;
35
- width: 600px;
36
- height: 100%;
37
- right: 0;
38
- }
39
- }
40
-
41
- .icon-container {
42
- visibility: hidden;
43
- opacity: 0;
44
- transition: opacity 0.4s;
45
- width: 20px;
46
- height: 120px;
47
- line-height: 120px;
48
- text-align: center;
49
- background: #d8dee8;
50
- position: absolute;
51
- top: 50%;
52
- left: 50%;
53
- transform: translate(-50%, -50%);
54
- cursor: pointer;
55
- &.position-left {
56
- transform: translate(calc(-100% - 4px), -50%);
57
- }
58
- &.position-right {
59
- transform: translate(calc(100% + 4px), -50%);
60
- }
61
- }
62
- .icon {
63
- color: #fff;
64
- font-size: 18px;
65
- }
66
- }