@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.
Files changed (76) hide show
  1. package/dist/style.css +14 -8
  2. package/dist/tmagic-editor.mjs +1112 -981
  3. package/dist/tmagic-editor.mjs.map +1 -1
  4. package/dist/tmagic-editor.umd.js +1124 -992
  5. package/dist/tmagic-editor.umd.js.map +1 -1
  6. package/package.json +11 -10
  7. package/src/Editor.vue +11 -13
  8. package/src/components/ContentMenu.vue +4 -4
  9. package/src/components/Icon.vue +7 -5
  10. package/src/{layouts → components}/Layout.vue +14 -4
  11. package/src/components/ScrollBar.vue +1 -1
  12. package/src/components/ScrollViewer.vue +10 -1
  13. package/src/components/ToolButton.vue +30 -15
  14. package/src/fields/Code.vue +5 -2
  15. package/src/fields/CodeLink.vue +20 -12
  16. package/src/fields/CodeSelect.vue +19 -27
  17. package/src/fields/UISelect.vue +9 -8
  18. package/src/index.ts +3 -1
  19. package/src/layouts/AddPageBox.vue +13 -20
  20. package/src/layouts/CodeEditor.vue +106 -120
  21. package/src/layouts/Framework.vue +62 -40
  22. package/src/layouts/NavMenu.vue +1 -1
  23. package/src/layouts/PropsPanel.vue +4 -9
  24. package/src/layouts/Resizer.vue +1 -1
  25. package/src/layouts/sidebar/ComponentListPanel.vue +15 -13
  26. package/src/layouts/sidebar/LayerMenu.vue +89 -92
  27. package/src/layouts/sidebar/LayerPanel.vue +273 -178
  28. package/src/layouts/sidebar/Sidebar.vue +126 -46
  29. package/src/layouts/sidebar/code-block/CodeBlockEditor.vue +28 -24
  30. package/src/layouts/sidebar/code-block/CodeBlockList.vue +22 -22
  31. package/src/layouts/workspace/Breadcrumb.vue +32 -0
  32. package/src/layouts/workspace/PageBar.vue +12 -11
  33. package/src/layouts/workspace/PageBarScrollContainer.vue +1 -1
  34. package/src/layouts/workspace/Stage.vue +15 -7
  35. package/src/layouts/workspace/ViewerMenu.vue +8 -7
  36. package/src/layouts/workspace/Workspace.vue +10 -3
  37. package/src/services/codeBlock.ts +16 -10
  38. package/src/services/editor.ts +12 -8
  39. package/src/theme/breadcrumb.scss +6 -0
  40. package/src/theme/component-list-panel.scss +3 -7
  41. package/src/theme/index.scss +1 -15
  42. package/src/theme/layer-panel.scss +7 -2
  43. package/src/theme/theme.scss +16 -0
  44. package/src/type.ts +2 -1
  45. package/src/utils/scroll-viewer.ts +18 -2
  46. package/src/utils/stage.ts +7 -0
  47. package/types/Editor.vue.d.ts +2 -2
  48. package/types/components/ContentMenu.vue.d.ts +1 -3
  49. package/types/components/Icon.vue.d.ts +1 -3
  50. package/types/{layouts → components}/Layout.vue.d.ts +0 -0
  51. package/types/components/ScrollBar.vue.d.ts +1 -3
  52. package/types/components/ScrollViewer.vue.d.ts +45 -1
  53. package/types/components/ToolButton.vue.d.ts +1 -3
  54. package/types/fields/Code.vue.d.ts +9 -3
  55. package/types/fields/CodeLink.vue.d.ts +5 -3
  56. package/types/fields/CodeSelect.vue.d.ts +1 -3
  57. package/types/fields/UISelect.vue.d.ts +1 -3
  58. package/types/index.d.ts +2 -0
  59. package/types/layouts/AddPageBox.vue.d.ts +43 -3
  60. package/types/layouts/CodeEditor.vue.d.ts +158 -45
  61. package/types/layouts/NavMenu.vue.d.ts +1 -3
  62. package/types/layouts/sidebar/LayerMenu.vue.d.ts +31 -63
  63. package/types/layouts/sidebar/LayerPanel.vue.d.ts +38 -1074
  64. package/types/layouts/sidebar/Sidebar.vue.d.ts +119 -17
  65. package/types/layouts/sidebar/code-block/CodeBlockList.vue.d.ts +1 -0
  66. package/types/layouts/workspace/Breadcrumb.vue.d.ts +44 -0
  67. package/types/layouts/workspace/Stage.vue.d.ts +23 -7
  68. package/types/layouts/workspace/ViewerMenu.vue.d.ts +6 -3
  69. package/types/layouts/workspace/Workspace.vue.d.ts +23 -5
  70. package/types/services/codeBlock.d.ts +1 -1
  71. package/types/services/editor.d.ts +2 -2
  72. package/types/services/ui.d.ts +1 -1
  73. package/types/type.d.ts +2 -1
  74. package/types/utils/scroll-viewer.d.ts +5 -0
  75. package/src/layouts/sidebar/TabPane.vue +0 -126
  76. 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-input__suffix {
269
- padding: 10px 5px;
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: 50px;
331
+ margin-top: 48px;
329
332
  background-color: #ffffff;
330
333
  }
331
334
  .ui-component-panel .search-input {
332
- background: #f8fbff;
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: 10px;
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
  }