@tmagic/editor 1.2.0-beta.1 → 1.2.0-beta.10
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 +14 -8
- package/dist/tmagic-editor.mjs +1112 -981
- package/dist/tmagic-editor.mjs.map +1 -1
- package/dist/tmagic-editor.umd.js +1124 -992
- package/dist/tmagic-editor.umd.js.map +1 -1
- package/package.json +11 -10
- package/src/Editor.vue +11 -13
- package/src/components/ContentMenu.vue +4 -4
- package/src/components/Icon.vue +7 -5
- package/src/{layouts → components}/Layout.vue +14 -4
- package/src/components/ScrollBar.vue +1 -1
- package/src/components/ScrollViewer.vue +10 -1
- package/src/components/ToolButton.vue +30 -15
- package/src/fields/Code.vue +5 -2
- package/src/fields/CodeLink.vue +20 -12
- package/src/fields/CodeSelect.vue +19 -27
- package/src/fields/UISelect.vue +9 -8
- package/src/index.ts +3 -1
- package/src/layouts/AddPageBox.vue +13 -20
- package/src/layouts/CodeEditor.vue +106 -120
- package/src/layouts/Framework.vue +62 -40
- package/src/layouts/NavMenu.vue +1 -1
- package/src/layouts/PropsPanel.vue +4 -9
- package/src/layouts/Resizer.vue +1 -1
- package/src/layouts/sidebar/ComponentListPanel.vue +15 -13
- package/src/layouts/sidebar/LayerMenu.vue +89 -92
- package/src/layouts/sidebar/LayerPanel.vue +273 -178
- package/src/layouts/sidebar/Sidebar.vue +126 -46
- package/src/layouts/sidebar/code-block/CodeBlockEditor.vue +28 -24
- package/src/layouts/sidebar/code-block/CodeBlockList.vue +22 -22
- package/src/layouts/workspace/Breadcrumb.vue +32 -0
- package/src/layouts/workspace/PageBar.vue +12 -11
- package/src/layouts/workspace/PageBarScrollContainer.vue +1 -1
- package/src/layouts/workspace/Stage.vue +15 -7
- package/src/layouts/workspace/ViewerMenu.vue +8 -7
- package/src/layouts/workspace/Workspace.vue +10 -3
- package/src/services/codeBlock.ts +16 -10
- package/src/services/editor.ts +12 -8
- package/src/theme/breadcrumb.scss +6 -0
- package/src/theme/component-list-panel.scss +3 -7
- package/src/theme/index.scss +1 -15
- package/src/theme/layer-panel.scss +7 -2
- package/src/theme/theme.scss +16 -0
- package/src/type.ts +2 -1
- package/src/utils/scroll-viewer.ts +18 -2
- package/src/utils/stage.ts +7 -0
- package/types/Editor.vue.d.ts +2 -2
- package/types/components/ContentMenu.vue.d.ts +1 -3
- package/types/components/Icon.vue.d.ts +1 -3
- package/types/{layouts → components}/Layout.vue.d.ts +0 -0
- package/types/components/ScrollBar.vue.d.ts +1 -3
- package/types/components/ScrollViewer.vue.d.ts +45 -1
- package/types/components/ToolButton.vue.d.ts +1 -3
- package/types/fields/Code.vue.d.ts +9 -3
- package/types/fields/CodeLink.vue.d.ts +5 -3
- package/types/fields/CodeSelect.vue.d.ts +1 -3
- package/types/fields/UISelect.vue.d.ts +1 -3
- package/types/index.d.ts +2 -0
- package/types/layouts/AddPageBox.vue.d.ts +43 -3
- package/types/layouts/CodeEditor.vue.d.ts +158 -45
- package/types/layouts/NavMenu.vue.d.ts +1 -3
- package/types/layouts/sidebar/LayerMenu.vue.d.ts +31 -63
- package/types/layouts/sidebar/LayerPanel.vue.d.ts +38 -1074
- package/types/layouts/sidebar/Sidebar.vue.d.ts +119 -17
- package/types/layouts/sidebar/code-block/CodeBlockList.vue.d.ts +1 -0
- package/types/layouts/workspace/Breadcrumb.vue.d.ts +44 -0
- package/types/layouts/workspace/Stage.vue.d.ts +23 -7
- package/types/layouts/workspace/ViewerMenu.vue.d.ts +6 -3
- package/types/layouts/workspace/Workspace.vue.d.ts +23 -5
- package/types/services/codeBlock.d.ts +1 -1
- package/types/services/editor.d.ts +2 -2
- package/types/services/ui.d.ts +1 -1
- package/types/type.d.ts +2 -1
- package/types/utils/scroll-viewer.d.ts +5 -0
- package/src/layouts/sidebar/TabPane.vue +0 -126
- package/types/layouts/sidebar/TabPane.vue.d.ts +0 -14
package/dist/style.css
CHANGED
|
@@ -265,8 +265,11 @@
|
|
|
265
265
|
left: 0;
|
|
266
266
|
z-index: 1;
|
|
267
267
|
}
|
|
268
|
-
.magic-editor-layer-panel .search-input .el-
|
|
269
|
-
padding:
|
|
268
|
+
.magic-editor-layer-panel .search-input .el-input__prefix {
|
|
269
|
+
padding: 7px;
|
|
270
|
+
}
|
|
271
|
+
.magic-editor-layer-panel .magic-editor-layer-tree {
|
|
272
|
+
padding-top: 48px;
|
|
270
273
|
}
|
|
271
274
|
.magic-editor-layer-panel .node-content {
|
|
272
275
|
flex: 1;
|
|
@@ -325,11 +328,11 @@
|
|
|
325
328
|
.ui-component-panel {
|
|
326
329
|
height: 100%;
|
|
327
330
|
border-top: 0 !important;
|
|
328
|
-
margin-top:
|
|
331
|
+
margin-top: 48px;
|
|
329
332
|
background-color: #ffffff;
|
|
330
333
|
}
|
|
331
334
|
.ui-component-panel .search-input {
|
|
332
|
-
background: #
|
|
335
|
+
background: #fff;
|
|
333
336
|
color: #bbbbbb;
|
|
334
337
|
padding: 10px;
|
|
335
338
|
position: absolute;
|
|
@@ -339,10 +342,7 @@
|
|
|
339
342
|
z-index: 1;
|
|
340
343
|
}
|
|
341
344
|
.ui-component-panel .search-input .el-input__prefix {
|
|
342
|
-
padding:
|
|
343
|
-
}
|
|
344
|
-
.ui-component-panel .search-input .el-input__suffix {
|
|
345
|
-
padding: 10px 5px;
|
|
345
|
+
padding: 7px;
|
|
346
346
|
}
|
|
347
347
|
.ui-component-panel .el-collapse-item > div:first-of-type {
|
|
348
348
|
border-bottom: 1px solid #d9dbdd;
|
|
@@ -793,4 +793,10 @@
|
|
|
793
793
|
width: 100%;
|
|
794
794
|
display: flex;
|
|
795
795
|
justify-self: space-between;
|
|
796
|
+
}
|
|
797
|
+
.m-editor-breadcrumb {
|
|
798
|
+
position: absolute;
|
|
799
|
+
left: 5px;
|
|
800
|
+
top: 5px;
|
|
801
|
+
z-index: 10;
|
|
796
802
|
}
|