@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.
@@ -3416,13 +3416,18 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
3416
3416
  _ctx.data === "layer" ? renderSlot(_ctx.$slots, "layer-panel-header", { key: 0 }) : _ctx.config.slots?.layerPanelHeader ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.config.slots.layerPanelHeader), { key: 1 })) : createCommentVNode("", true)
3417
3417
  ])
3418
3418
  } : void 0,
3419
- _ctx.config.slots?.layerNodeContent ? {
3419
+ _ctx.data === "layer" || _ctx.config.slots?.layerNodeContent ? {
3420
3420
  name: "layer-node-content",
3421
- fn: withCtx(({ data, node }) => [
3422
- (openBlock(), createBlock(resolveDynamicComponent(_ctx.config.slots?.layerNodeContent), {
3423
- data,
3421
+ fn: withCtx(({ data: nodeData, node }) => [
3422
+ _ctx.data === "layer" ? renderSlot(_ctx.$slots, "layer-node-content", {
3423
+ key: 0,
3424
+ data: nodeData,
3425
+ node
3426
+ }) : _ctx.config.slots?.layerNodeContent ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.config.slots.layerNodeContent), {
3427
+ key: 1,
3428
+ data: nodeData,
3424
3429
  node
3425
- }, null, 8, ["data", "node"]))
3430
+ }, null, 8, ["data", "node"])) : createCommentVNode("", true)
3426
3431
  ])
3427
3432
  } : void 0
3428
3433
  ]), 1040))
@@ -3478,6 +3483,15 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
3478
3483
  renderSlot(_ctx.$slots, "layer-panel-header")
3479
3484
  ])
3480
3485
  } : void 0,
3486
+ item === "layer" ? {
3487
+ name: "layer-node-content",
3488
+ fn: withCtx(({ node, data }) => [
3489
+ renderSlot(_ctx.$slots, "layer-node-content", {
3490
+ data,
3491
+ node
3492
+ })
3493
+ ])
3494
+ } : void 0,
3481
3495
  item === "component-list" ? {
3482
3496
  name: "component-list-panel-header",
3483
3497
  fn: withCtx(() => [
@@ -4673,6 +4687,12 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
4673
4687
  "layer-panel-header": withCtx(() => [
4674
4688
  renderSlot(_ctx.$slots, "layer-panel-header")
4675
4689
  ]),
4690
+ "layer-node-content": withCtx(({ node, data }) => [
4691
+ renderSlot(_ctx.$slots, "layer-node-content", {
4692
+ data,
4693
+ node
4694
+ })
4695
+ ]),
4676
4696
  "component-list-panel-header": withCtx(() => [
4677
4697
  renderSlot(_ctx.$slots, "component-list-panel-header")
4678
4698
  ]),