@tmagic/editor 1.4.3 → 1.4.4

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 (33) hide show
  1. package/dist/style.css +15 -1
  2. package/dist/tmagic-editor.js +1236 -1162
  3. package/dist/tmagic-editor.umd.cjs +1254 -1179
  4. package/package.json +11 -11
  5. package/src/Editor.vue +6 -1
  6. package/src/editorProps.ts +3 -0
  7. package/src/fields/CodeSelectCol.vue +26 -18
  8. package/src/fields/DataSourceFieldSelect.vue +20 -20
  9. package/src/fields/DataSourceMethodSelect.vue +25 -31
  10. package/src/fields/DataSourceSelect.vue +49 -13
  11. package/src/fields/EventSelect.vue +8 -6
  12. package/src/hooks/use-editor-content-height.ts +11 -5
  13. package/src/layouts/PropsPanel.vue +3 -1
  14. package/src/layouts/sidebar/Sidebar.vue +24 -8
  15. package/src/layouts/sidebar/code-block/CodeBlockListPanel.vue +6 -1
  16. package/src/layouts/sidebar/data-source/DataSourceListPanel.vue +6 -1
  17. package/src/services/ui.ts +1 -0
  18. package/src/theme/data-source-field.scss +12 -0
  19. package/src/theme/props-panel.scss +1 -1
  20. package/src/theme/theme.scss +1 -0
  21. package/src/type.ts +31 -2
  22. package/types/components/ContentMenu.vue.d.ts +3 -3
  23. package/types/components/ToolButton.vue.d.ts +2 -2
  24. package/types/editorProps.d.ts +3 -0
  25. package/types/layouts/PropsPanel.vue.d.ts +2 -0
  26. package/types/layouts/sidebar/Sidebar.vue.d.ts +7 -7
  27. package/types/layouts/sidebar/layer/LayerMenu.vue.d.ts +2 -2
  28. package/types/layouts/sidebar/layer/LayerPanel.vue.d.ts +4 -4
  29. package/types/layouts/sidebar/layer/use-click.d.ts +13 -13
  30. package/types/layouts/workspace/Workspace.vue.d.ts +4 -4
  31. package/types/layouts/workspace/viewer/ViewerMenu.vue.d.ts +2 -2
  32. package/types/services/ui.d.ts +18 -0
  33. package/types/type.d.ts +26 -2
package/dist/style.css CHANGED
@@ -500,7 +500,7 @@
500
500
  background-color: #f3f5f9;
501
501
  }
502
502
  .m-editor-props-panel {
503
- padding: 0 10px;
503
+ padding: 0 10px 50px 10px;
504
504
  }
505
505
  .m-editor-props-panel .m-editor-props-panel-src-icon {
506
506
  position: absolute;
@@ -942,6 +942,20 @@
942
942
  .m-fields-page-fragment-select .page-fragment-select-container .icon {
943
943
  margin-left: 10px;
944
944
  }
945
+ .m-fields-data-source-select,
946
+ .m-fields-data-source-field-select,
947
+ .m-fields-data-source-method-select .data-source-method-select-container,
948
+ .m-fields-code-select-col .code-select-container {
949
+ width: 100%;
950
+ display: flex;
951
+ align-items: center;
952
+ }
953
+ .m-fields-data-source-select .m-fields-select-action-button,
954
+ .m-fields-data-source-field-select .m-fields-select-action-button,
955
+ .m-fields-data-source-method-select .data-source-method-select-container .m-fields-select-action-button,
956
+ .m-fields-code-select-col .code-select-container .m-fields-select-action-button {
957
+ margin-left: 5px;
958
+ }
945
959
  .fade-enter-active,
946
960
  .fade-leave-active {
947
961
  transition: opacity 0.5s;