@tmagic/editor 1.2.13 → 1.2.14
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 +37 -6
- package/dist/tmagic-editor.js +770 -394
- package/dist/tmagic-editor.js.map +1 -1
- package/dist/tmagic-editor.umd.cjs +789 -420
- package/dist/tmagic-editor.umd.cjs.map +1 -1
- package/package.json +14 -13
- package/src/components/CodeDraftEditor.vue +20 -17
- package/src/components/ContentMenu.vue +1 -1
- package/src/components/FunctionEditor.vue +10 -10
- package/src/components/Layout.vue +1 -1
- package/src/components/ScrollViewer.vue +2 -2
- package/src/fields/CodeSelect.vue +18 -101
- package/src/fields/CodeSelectCol.vue +21 -3
- package/src/fields/EventSelect.vue +5 -3
- package/src/fields/UISelect.vue +1 -1
- package/src/icons/AppManageIcon.vue +11 -0
- package/src/icons/CodeIcon.vue +35 -0
- package/src/layouts/AddPageBox.vue +3 -3
- package/src/layouts/Framework.vue +4 -4
- package/src/layouts/NavMenu.vue +2 -2
- package/src/layouts/PropsPanel.vue +1 -1
- package/src/layouts/sidebar/ComponentListPanel.vue +3 -3
- package/src/layouts/sidebar/LayerMenu.vue +2 -2
- package/src/layouts/sidebar/LayerPanel.vue +4 -4
- package/src/layouts/sidebar/Sidebar.vue +3 -3
- package/src/layouts/sidebar/code-block/CodeBlockEditor.vue +15 -6
- package/src/layouts/sidebar/code-block/CodeBlockList.vue +26 -13
- package/src/layouts/workspace/Breadcrumb.vue +1 -1
- package/src/layouts/workspace/PageBar.vue +2 -2
- package/src/layouts/workspace/PageBarScrollContainer.vue +3 -3
- package/src/layouts/workspace/Stage.vue +3 -3
- package/src/layouts/workspace/ViewerMenu.vue +4 -4
- package/src/layouts/workspace/Workspace.vue +1 -1
- package/src/services/BaseService.ts +1 -1
- package/src/services/codeBlock.ts +3 -3
- package/src/services/componentList.ts +1 -1
- package/src/services/editor.ts +6 -6
- package/src/services/events.ts +1 -1
- package/src/services/history.ts +2 -2
- package/src/services/props.ts +2 -2
- package/src/services/ui.ts +2 -2
- package/src/theme/code-block.scss +28 -4
- package/src/theme/event.scss +12 -0
- package/src/utils/config.ts +1 -1
- package/src/utils/dep.ts +2 -2
- package/src/utils/editor.ts +1 -1
- package/src/utils/operator.ts +4 -4
- package/src/utils/stage.ts +3 -3
- package/tsconfig.build.json +4 -1
- package/types/components/CodeDraftEditor.vue.d.ts +7 -4
- package/types/components/ContentMenu.vue.d.ts +3 -3
- package/types/components/FunctionEditor.vue.d.ts +140 -8
- package/types/components/Icon.vue.d.ts +2 -2
- package/types/components/Layout.vue.d.ts +28 -113
- package/types/components/ScrollBar.vue.d.ts +2 -2
- package/types/components/ScrollViewer.vue.d.ts +32 -135
- package/types/components/ToolButton.vue.d.ts +3 -3
- package/types/fields/Code.vue.d.ts +2 -2
- package/types/fields/CodeLink.vue.d.ts +2 -2
- package/types/fields/CodeSelect.vue.d.ts +8 -27
- package/types/fields/CodeSelectCol.vue.d.ts +3 -3
- package/types/fields/EventSelect.vue.d.ts +3 -3
- package/types/fields/UISelect.vue.d.ts +2 -2
- package/types/icons/AppManageIcon.vue.d.ts +2 -0
- package/types/icons/CodeIcon.vue.d.ts +2 -0
- package/types/layouts/CodeEditor.vue.d.ts +4 -4
- package/types/layouts/Framework.vue.d.ts +23 -74
- package/types/layouts/NavMenu.vue.d.ts +3 -3
- package/types/layouts/PropsPanel.vue.d.ts +11 -60
- package/types/layouts/Resizer.vue.d.ts +9 -54
- package/types/layouts/sidebar/ComponentListPanel.vue.d.ts +11 -50
- package/types/layouts/sidebar/LayerMenu.vue.d.ts +2 -2
- package/types/layouts/sidebar/LayerPanel.vue.d.ts +17 -60
- package/types/layouts/sidebar/Sidebar.vue.d.ts +39 -104
- package/types/layouts/sidebar/code-block/CodeBlockEditor.vue.d.ts +15 -58
- package/types/layouts/sidebar/code-block/CodeBlockList.vue.d.ts +21 -66
- package/types/layouts/workspace/PageBar.vue.d.ts +13 -52
- package/types/layouts/workspace/PageBarScrollContainer.vue.d.ts +8 -48
- package/types/layouts/workspace/Stage.vue.d.ts +2 -2
- package/types/layouts/workspace/ViewerMenu.vue.d.ts +3 -3
- package/types/layouts/workspace/Workspace.vue.d.ts +20 -63
- package/types/services/codeBlock.d.ts +1 -1
- package/types/services/componentList.d.ts +1 -1
- package/types/services/dep.d.ts +2 -2
- package/types/services/editor.d.ts +1 -1
- package/types/services/events.d.ts +1 -1
- package/types/services/history.d.ts +2 -2
- package/types/services/props.d.ts +78 -1
- package/types/services/storage.d.ts +1 -1
- package/types/services/ui.d.ts +2 -2
- package/types/type.d.ts +8 -8
- package/types/utils/operator.d.ts +1 -1
- package/types/utils/props.d.ts +78 -1
package/dist/style.css
CHANGED
|
@@ -214,7 +214,7 @@
|
|
|
214
214
|
border: 0;
|
|
215
215
|
height: auto;
|
|
216
216
|
padding: 8px;
|
|
217
|
-
color:
|
|
217
|
+
color: white;
|
|
218
218
|
box-sizing: border-box;
|
|
219
219
|
}
|
|
220
220
|
.m-editor-sidebar.el-tabs--left .el-tabs__header .el-tabs__item.is-left.is-left.is-active {
|
|
@@ -235,7 +235,7 @@
|
|
|
235
235
|
color: rgba(255, 255, 255, 0.6);
|
|
236
236
|
}
|
|
237
237
|
.m-editor-sidebar.el-tabs--left .el-tabs__header i:hover {
|
|
238
|
-
color:
|
|
238
|
+
color: white;
|
|
239
239
|
}
|
|
240
240
|
.m-editor-sidebar.el-tabs--left .el-tabs__header .magic-editor-tab-panel-title {
|
|
241
241
|
font-size: 12px;
|
|
@@ -647,29 +647,48 @@
|
|
|
647
647
|
}
|
|
648
648
|
.m-editor-code-block-list .list-container .list-item {
|
|
649
649
|
display: flex;
|
|
650
|
+
align-items: center;
|
|
650
651
|
width: 100%;
|
|
652
|
+
align-items: center;
|
|
651
653
|
}
|
|
652
654
|
.m-editor-code-block-list .list-container .list-item .right-tool {
|
|
653
655
|
display: flex;
|
|
654
656
|
width: fit-content !important;
|
|
657
|
+
align-items: center;
|
|
658
|
+
margin-right: 10px;
|
|
655
659
|
}
|
|
656
660
|
.m-editor-code-block-list .list-container .list-item .right-tool .edit-icon {
|
|
657
661
|
margin: 0 5px;
|
|
658
662
|
}
|
|
663
|
+
.m-editor-code-block-list .list-container .list-item .codeIcon {
|
|
664
|
+
width: 20px;
|
|
665
|
+
height: 20px;
|
|
666
|
+
margin-right: 5px;
|
|
667
|
+
}
|
|
668
|
+
.m-editor-code-block-list .list-container .list-item .compIcon {
|
|
669
|
+
width: 15px;
|
|
670
|
+
height: 15px;
|
|
671
|
+
margin-right: 5px;
|
|
672
|
+
}
|
|
659
673
|
.m-editor-code-block-list .list-container .list-item .code-name {
|
|
660
674
|
white-space: nowrap;
|
|
661
675
|
overflow: hidden;
|
|
662
676
|
text-overflow: ellipsis;
|
|
663
677
|
width: 0 !important;
|
|
664
678
|
flex: 1;
|
|
665
|
-
line-height:
|
|
679
|
+
line-height: 22px;
|
|
680
|
+
}
|
|
681
|
+
.m-editor-code-block-list .list-container .list-item .code-name.code {
|
|
682
|
+
color: #000;
|
|
683
|
+
}
|
|
684
|
+
.m-editor-code-block-list .list-container .list-item .code-name.hook {
|
|
685
|
+
color: #909399;
|
|
666
686
|
}
|
|
667
687
|
.m-fields-code-select {
|
|
668
688
|
width: 100%;
|
|
669
689
|
}
|
|
670
|
-
.m-fields-code-select .
|
|
671
|
-
|
|
672
|
-
margin-right: 5px;
|
|
690
|
+
.m-fields-code-select .el-card__header {
|
|
691
|
+
display: none;
|
|
673
692
|
}
|
|
674
693
|
.el-dialog.is-fullscreen.code-editor-dialog {
|
|
675
694
|
overflow: hidden;
|
|
@@ -801,6 +820,18 @@
|
|
|
801
820
|
.m-fields-code-select-col {
|
|
802
821
|
width: 100%;
|
|
803
822
|
}
|
|
823
|
+
.m-fields-code-select-col .code-select-container {
|
|
824
|
+
display: flex;
|
|
825
|
+
align-items: center;
|
|
826
|
+
}
|
|
827
|
+
.m-fields-code-select-col .code-select-container .select {
|
|
828
|
+
flex: 10 0 100px;
|
|
829
|
+
}
|
|
830
|
+
.m-fields-code-select-col .code-select-container .icon {
|
|
831
|
+
flex: 1 0 20px;
|
|
832
|
+
cursor: pointer;
|
|
833
|
+
margin-right: 5px;
|
|
834
|
+
}
|
|
804
835
|
.m-editor-layout {
|
|
805
836
|
width: 100%;
|
|
806
837
|
display: flex;
|