@tmagic/editor 1.1.5 → 1.1.6
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.mjs +25 -5
- package/dist/tmagic-editor.mjs.map +1 -1
- package/dist/tmagic-editor.umd.js +25 -5
- package/dist/tmagic-editor.umd.js.map +1 -1
- package/package.json +9 -9
- package/src/Editor.vue +4 -0
- package/src/layouts/sidebar/Sidebar.vue +4 -0
- package/src/layouts/sidebar/TabPane.vue +11 -2
- package/types/layouts/sidebar/LayerPanel.vue.d.ts +15 -9
|
@@ -3434,13 +3434,18 @@
|
|
|
3434
3434
|
_ctx.data === "layer" ? vue.renderSlot(_ctx.$slots, "layer-panel-header", { key: 0 }) : _ctx.config.slots?.layerPanelHeader ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.config.slots.layerPanelHeader), { key: 1 })) : vue.createCommentVNode("", true)
|
|
3435
3435
|
])
|
|
3436
3436
|
} : void 0,
|
|
3437
|
-
_ctx.config.slots?.layerNodeContent ? {
|
|
3437
|
+
_ctx.data === "layer" || _ctx.config.slots?.layerNodeContent ? {
|
|
3438
3438
|
name: "layer-node-content",
|
|
3439
|
-
fn: vue.withCtx(({ data, node }) => [
|
|
3440
|
-
|
|
3441
|
-
|
|
3439
|
+
fn: vue.withCtx(({ data: nodeData, node }) => [
|
|
3440
|
+
_ctx.data === "layer" ? vue.renderSlot(_ctx.$slots, "layer-node-content", {
|
|
3441
|
+
key: 0,
|
|
3442
|
+
data: nodeData,
|
|
3443
|
+
node
|
|
3444
|
+
}) : _ctx.config.slots?.layerNodeContent ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.config.slots.layerNodeContent), {
|
|
3445
|
+
key: 1,
|
|
3446
|
+
data: nodeData,
|
|
3442
3447
|
node
|
|
3443
|
-
}, null, 8, ["data", "node"]))
|
|
3448
|
+
}, null, 8, ["data", "node"])) : vue.createCommentVNode("", true)
|
|
3444
3449
|
])
|
|
3445
3450
|
} : void 0
|
|
3446
3451
|
]), 1040))
|
|
@@ -3496,6 +3501,15 @@
|
|
|
3496
3501
|
vue.renderSlot(_ctx.$slots, "layer-panel-header")
|
|
3497
3502
|
])
|
|
3498
3503
|
} : void 0,
|
|
3504
|
+
item === "layer" ? {
|
|
3505
|
+
name: "layer-node-content",
|
|
3506
|
+
fn: vue.withCtx(({ node, data }) => [
|
|
3507
|
+
vue.renderSlot(_ctx.$slots, "layer-node-content", {
|
|
3508
|
+
data,
|
|
3509
|
+
node
|
|
3510
|
+
})
|
|
3511
|
+
])
|
|
3512
|
+
} : void 0,
|
|
3499
3513
|
item === "component-list" ? {
|
|
3500
3514
|
name: "component-list-panel-header",
|
|
3501
3515
|
fn: vue.withCtx(() => [
|
|
@@ -4691,6 +4705,12 @@
|
|
|
4691
4705
|
"layer-panel-header": vue.withCtx(() => [
|
|
4692
4706
|
vue.renderSlot(_ctx.$slots, "layer-panel-header")
|
|
4693
4707
|
]),
|
|
4708
|
+
"layer-node-content": vue.withCtx(({ node, data }) => [
|
|
4709
|
+
vue.renderSlot(_ctx.$slots, "layer-node-content", {
|
|
4710
|
+
data,
|
|
4711
|
+
node
|
|
4712
|
+
})
|
|
4713
|
+
]),
|
|
4694
4714
|
"component-list-panel-header": vue.withCtx(() => [
|
|
4695
4715
|
vue.renderSlot(_ctx.$slots, "component-list-panel-header")
|
|
4696
4716
|
]),
|