@tmagic/editor 1.0.3 → 1.0.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.
- package/dist/tmagic-editor.es.js +43 -8
- package/dist/tmagic-editor.es.js.map +1 -1
- package/dist/tmagic-editor.umd.js +43 -8
- package/dist/tmagic-editor.umd.js.map +1 -1
- package/package.json +7 -7
- package/src/Editor.vue +11 -3
- package/src/layouts/Framework.vue +1 -1
- package/src/layouts/sidebar/ComponentListPanel.vue +1 -0
- package/src/layouts/sidebar/LayerPanel.vue +2 -0
- package/src/layouts/sidebar/Sidebar.vue +9 -1
- package/src/layouts/sidebar/TabPane.vue +8 -0
package/dist/tmagic-editor.es.js
CHANGED
|
@@ -1744,7 +1744,7 @@ function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1744
1744
|
}, [
|
|
1745
1745
|
createVNode(_component_el_scrollbar, null, {
|
|
1746
1746
|
default: withCtx(() => [
|
|
1747
|
-
renderSlot(_ctx.$slots, "
|
|
1747
|
+
renderSlot(_ctx.$slots, "props-panel")
|
|
1748
1748
|
]),
|
|
1749
1749
|
_: 3
|
|
1750
1750
|
})
|
|
@@ -2226,6 +2226,7 @@ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2226
2226
|
const _component_el_scrollbar = resolveComponent("el-scrollbar");
|
|
2227
2227
|
return openBlock(), createBlock(_component_el_scrollbar, null, {
|
|
2228
2228
|
default: withCtx(() => [
|
|
2229
|
+
renderSlot(_ctx.$slots, "component-list-panel"),
|
|
2229
2230
|
createVNode(_component_el_collapse, {
|
|
2230
2231
|
class: "ui-component-panel",
|
|
2231
2232
|
"model-value": _ctx.collapseValue
|
|
@@ -2283,7 +2284,7 @@ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2283
2284
|
_: 1
|
|
2284
2285
|
}, 8, ["model-value"])
|
|
2285
2286
|
]),
|
|
2286
|
-
_:
|
|
2287
|
+
_: 3
|
|
2287
2288
|
});
|
|
2288
2289
|
}
|
|
2289
2290
|
var ComponentListPanel = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_render$b]]);
|
|
@@ -2648,6 +2649,7 @@ function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2648
2649
|
const _component_el_scrollbar = resolveComponent("el-scrollbar");
|
|
2649
2650
|
return openBlock(), createBlock(_component_el_scrollbar, { class: "magic-editor-layer-panel" }, {
|
|
2650
2651
|
default: withCtx(() => [
|
|
2652
|
+
renderSlot(_ctx.$slots, "layer-panel"),
|
|
2651
2653
|
createVNode(_component_el_input, {
|
|
2652
2654
|
class: "filterInput",
|
|
2653
2655
|
size: "small",
|
|
@@ -2765,6 +2767,18 @@ function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2765
2767
|
]),
|
|
2766
2768
|
default: withCtx(() => [
|
|
2767
2769
|
(openBlock(), createBlock(resolveDynamicComponent(_ctx.config.component), mergeProps(_ctx.config.props || {}, toHandlers(_ctx.config?.listeners || {})), createSlots({ _: 2 }, [
|
|
2770
|
+
_ctx.data === "layer" ? {
|
|
2771
|
+
name: "layer-panel",
|
|
2772
|
+
fn: withCtx(() => [
|
|
2773
|
+
renderSlot(_ctx.$slots, "layer-panel")
|
|
2774
|
+
])
|
|
2775
|
+
} : void 0,
|
|
2776
|
+
_ctx.data === "component-list" ? {
|
|
2777
|
+
name: "component-list-panel",
|
|
2778
|
+
fn: withCtx(() => [
|
|
2779
|
+
renderSlot(_ctx.$slots, "component-list-panel")
|
|
2780
|
+
])
|
|
2781
|
+
} : void 0,
|
|
2768
2782
|
_ctx.config.slots?.layerNodeContent ? {
|
|
2769
2783
|
name: "layer-node-content",
|
|
2770
2784
|
fn: withCtx(({ data, node }) => [
|
|
@@ -2776,7 +2790,7 @@ function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2776
2790
|
} : void 0
|
|
2777
2791
|
]), 1040))
|
|
2778
2792
|
]),
|
|
2779
|
-
_:
|
|
2793
|
+
_: 3
|
|
2780
2794
|
}, 8, ["name"])) : createCommentVNode("", true);
|
|
2781
2795
|
}
|
|
2782
2796
|
var TabPane = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render$7]]);
|
|
@@ -2816,10 +2830,23 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2816
2830
|
return openBlock(), createBlock(_component_tab_pane, {
|
|
2817
2831
|
key: index,
|
|
2818
2832
|
data: item
|
|
2819
|
-
},
|
|
2833
|
+
}, createSlots({ _: 2 }, [
|
|
2834
|
+
item === "layer" ? {
|
|
2835
|
+
name: "layer-panel",
|
|
2836
|
+
fn: withCtx(() => [
|
|
2837
|
+
renderSlot(_ctx.$slots, "layer-panel")
|
|
2838
|
+
])
|
|
2839
|
+
} : void 0,
|
|
2840
|
+
item === "component-list" ? {
|
|
2841
|
+
name: "component-list-panel",
|
|
2842
|
+
fn: withCtx(() => [
|
|
2843
|
+
renderSlot(_ctx.$slots, "component-list-panel")
|
|
2844
|
+
])
|
|
2845
|
+
} : void 0
|
|
2846
|
+
]), 1032, ["data"]);
|
|
2820
2847
|
}), 128))
|
|
2821
2848
|
]),
|
|
2822
|
-
_:
|
|
2849
|
+
_: 3
|
|
2823
2850
|
}, 8, ["modelValue"])) : createCommentVNode("", true);
|
|
2824
2851
|
}
|
|
2825
2852
|
var Sidebar = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render$6]]);
|
|
@@ -3994,7 +4021,15 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3994
4021
|
]),
|
|
3995
4022
|
sidebar: withCtx(() => [
|
|
3996
4023
|
renderSlot(_ctx.$slots, "sidebar", { editorService: _ctx.editorService }, () => [
|
|
3997
|
-
createVNode(_component_sidebar, { data: _ctx.sidebar },
|
|
4024
|
+
createVNode(_component_sidebar, { data: _ctx.sidebar }, {
|
|
4025
|
+
"layer-panel": withCtx(() => [
|
|
4026
|
+
renderSlot(_ctx.$slots, "layer-panel")
|
|
4027
|
+
]),
|
|
4028
|
+
"component-list-panel": withCtx(() => [
|
|
4029
|
+
renderSlot(_ctx.$slots, "component-list-panel")
|
|
4030
|
+
]),
|
|
4031
|
+
_: 3
|
|
4032
|
+
}, 8, ["data"])
|
|
3998
4033
|
])
|
|
3999
4034
|
]),
|
|
4000
4035
|
workspace: withCtx(() => [
|
|
@@ -4013,8 +4048,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4013
4048
|
})
|
|
4014
4049
|
])
|
|
4015
4050
|
]),
|
|
4016
|
-
|
|
4017
|
-
renderSlot(_ctx.$slots, "
|
|
4051
|
+
"props-panel": withCtx(() => [
|
|
4052
|
+
renderSlot(_ctx.$slots, "props-panel", {}, () => [
|
|
4018
4053
|
createVNode(_component_props_panel, {
|
|
4019
4054
|
ref: "propsPanel",
|
|
4020
4055
|
onMounted: _cache[0] || (_cache[0] = (instance) => _ctx.$emit("props-panel-mounted", instance))
|