@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
|
@@ -1762,7 +1762,7 @@
|
|
|
1762
1762
|
}, [
|
|
1763
1763
|
vue.createVNode(_component_el_scrollbar, null, {
|
|
1764
1764
|
default: vue.withCtx(() => [
|
|
1765
|
-
vue.renderSlot(_ctx.$slots, "
|
|
1765
|
+
vue.renderSlot(_ctx.$slots, "props-panel")
|
|
1766
1766
|
]),
|
|
1767
1767
|
_: 3
|
|
1768
1768
|
})
|
|
@@ -2244,6 +2244,7 @@
|
|
|
2244
2244
|
const _component_el_scrollbar = vue.resolveComponent("el-scrollbar");
|
|
2245
2245
|
return vue.openBlock(), vue.createBlock(_component_el_scrollbar, null, {
|
|
2246
2246
|
default: vue.withCtx(() => [
|
|
2247
|
+
vue.renderSlot(_ctx.$slots, "component-list-panel"),
|
|
2247
2248
|
vue.createVNode(_component_el_collapse, {
|
|
2248
2249
|
class: "ui-component-panel",
|
|
2249
2250
|
"model-value": _ctx.collapseValue
|
|
@@ -2301,7 +2302,7 @@
|
|
|
2301
2302
|
_: 1
|
|
2302
2303
|
}, 8, ["model-value"])
|
|
2303
2304
|
]),
|
|
2304
|
-
_:
|
|
2305
|
+
_: 3
|
|
2305
2306
|
});
|
|
2306
2307
|
}
|
|
2307
2308
|
var ComponentListPanel = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_render$b]]);
|
|
@@ -2666,6 +2667,7 @@
|
|
|
2666
2667
|
const _component_el_scrollbar = vue.resolveComponent("el-scrollbar");
|
|
2667
2668
|
return vue.openBlock(), vue.createBlock(_component_el_scrollbar, { class: "magic-editor-layer-panel" }, {
|
|
2668
2669
|
default: vue.withCtx(() => [
|
|
2670
|
+
vue.renderSlot(_ctx.$slots, "layer-panel"),
|
|
2669
2671
|
vue.createVNode(_component_el_input, {
|
|
2670
2672
|
class: "filterInput",
|
|
2671
2673
|
size: "small",
|
|
@@ -2783,6 +2785,18 @@
|
|
|
2783
2785
|
]),
|
|
2784
2786
|
default: vue.withCtx(() => [
|
|
2785
2787
|
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.config.component), vue.mergeProps(_ctx.config.props || {}, vue.toHandlers(_ctx.config?.listeners || {})), vue.createSlots({ _: 2 }, [
|
|
2788
|
+
_ctx.data === "layer" ? {
|
|
2789
|
+
name: "layer-panel",
|
|
2790
|
+
fn: vue.withCtx(() => [
|
|
2791
|
+
vue.renderSlot(_ctx.$slots, "layer-panel")
|
|
2792
|
+
])
|
|
2793
|
+
} : void 0,
|
|
2794
|
+
_ctx.data === "component-list" ? {
|
|
2795
|
+
name: "component-list-panel",
|
|
2796
|
+
fn: vue.withCtx(() => [
|
|
2797
|
+
vue.renderSlot(_ctx.$slots, "component-list-panel")
|
|
2798
|
+
])
|
|
2799
|
+
} : void 0,
|
|
2786
2800
|
_ctx.config.slots?.layerNodeContent ? {
|
|
2787
2801
|
name: "layer-node-content",
|
|
2788
2802
|
fn: vue.withCtx(({ data, node }) => [
|
|
@@ -2794,7 +2808,7 @@
|
|
|
2794
2808
|
} : void 0
|
|
2795
2809
|
]), 1040))
|
|
2796
2810
|
]),
|
|
2797
|
-
_:
|
|
2811
|
+
_: 3
|
|
2798
2812
|
}, 8, ["name"])) : vue.createCommentVNode("", true);
|
|
2799
2813
|
}
|
|
2800
2814
|
var TabPane = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render$7]]);
|
|
@@ -2834,10 +2848,23 @@
|
|
|
2834
2848
|
return vue.openBlock(), vue.createBlock(_component_tab_pane, {
|
|
2835
2849
|
key: index,
|
|
2836
2850
|
data: item
|
|
2837
|
-
},
|
|
2851
|
+
}, vue.createSlots({ _: 2 }, [
|
|
2852
|
+
item === "layer" ? {
|
|
2853
|
+
name: "layer-panel",
|
|
2854
|
+
fn: vue.withCtx(() => [
|
|
2855
|
+
vue.renderSlot(_ctx.$slots, "layer-panel")
|
|
2856
|
+
])
|
|
2857
|
+
} : void 0,
|
|
2858
|
+
item === "component-list" ? {
|
|
2859
|
+
name: "component-list-panel",
|
|
2860
|
+
fn: vue.withCtx(() => [
|
|
2861
|
+
vue.renderSlot(_ctx.$slots, "component-list-panel")
|
|
2862
|
+
])
|
|
2863
|
+
} : void 0
|
|
2864
|
+
]), 1032, ["data"]);
|
|
2838
2865
|
}), 128))
|
|
2839
2866
|
]),
|
|
2840
|
-
_:
|
|
2867
|
+
_: 3
|
|
2841
2868
|
}, 8, ["modelValue"])) : vue.createCommentVNode("", true);
|
|
2842
2869
|
}
|
|
2843
2870
|
var Sidebar = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render$6]]);
|
|
@@ -4012,7 +4039,15 @@
|
|
|
4012
4039
|
]),
|
|
4013
4040
|
sidebar: vue.withCtx(() => [
|
|
4014
4041
|
vue.renderSlot(_ctx.$slots, "sidebar", { editorService: _ctx.editorService }, () => [
|
|
4015
|
-
vue.createVNode(_component_sidebar, { data: _ctx.sidebar },
|
|
4042
|
+
vue.createVNode(_component_sidebar, { data: _ctx.sidebar }, {
|
|
4043
|
+
"layer-panel": vue.withCtx(() => [
|
|
4044
|
+
vue.renderSlot(_ctx.$slots, "layer-panel")
|
|
4045
|
+
]),
|
|
4046
|
+
"component-list-panel": vue.withCtx(() => [
|
|
4047
|
+
vue.renderSlot(_ctx.$slots, "component-list-panel")
|
|
4048
|
+
]),
|
|
4049
|
+
_: 3
|
|
4050
|
+
}, 8, ["data"])
|
|
4016
4051
|
])
|
|
4017
4052
|
]),
|
|
4018
4053
|
workspace: vue.withCtx(() => [
|
|
@@ -4031,8 +4066,8 @@
|
|
|
4031
4066
|
})
|
|
4032
4067
|
])
|
|
4033
4068
|
]),
|
|
4034
|
-
|
|
4035
|
-
vue.renderSlot(_ctx.$slots, "
|
|
4069
|
+
"props-panel": vue.withCtx(() => [
|
|
4070
|
+
vue.renderSlot(_ctx.$slots, "props-panel", {}, () => [
|
|
4036
4071
|
vue.createVNode(_component_props_panel, {
|
|
4037
4072
|
ref: "propsPanel",
|
|
4038
4073
|
onMounted: _cache[0] || (_cache[0] = (instance) => _ctx.$emit("props-panel-mounted", instance))
|