@sepveneto/dnde 0.5.7 → 0.5.8

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 (2) hide show
  1. package/dist/editor.js +17 -18
  2. package/package.json +1 -1
package/dist/editor.js CHANGED
@@ -80552,7 +80552,7 @@ const _hoisted_2$6 = /* @__PURE__ */ createBaseVNode(
80552
80552
  -1
80553
80553
  /* HOISTED */
80554
80554
  );
80555
- const _hoisted_3$4 = /* @__PURE__ */ createBaseVNode(
80555
+ const _hoisted_3$3 = /* @__PURE__ */ createBaseVNode(
80556
80556
  "br",
80557
80557
  null,
80558
80558
  null,
@@ -80607,7 +80607,7 @@ function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
80607
80607
  default: withCtx(() => [
80608
80608
  createBaseVNode("div", _hoisted_1$d, [
80609
80609
  _hoisted_2$6,
80610
- _hoisted_3$4,
80610
+ _hoisted_3$3,
80611
80611
  createVNode(_component_el_link, {
80612
80612
  type: "primary",
80613
80613
  onClick: _ctx.handleDownloadTemplate
@@ -81196,7 +81196,7 @@ const _hoisted_2$5 = {
81196
81196
  key: 2,
81197
81197
  class: "placeholder"
81198
81198
  };
81199
- const _hoisted_3$3 = {
81199
+ const _hoisted_3$2 = {
81200
81200
  key: 3,
81201
81201
  class: "svg-badge"
81202
81202
  };
@@ -81238,7 +81238,7 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
81238
81238
  !_ctx.icon ? (openBlock(), createElementBlock("span", _hoisted_2$5)) : createCommentVNode("v-if", true),
81239
81239
  _ctx.badge ? (openBlock(), createElementBlock(
81240
81240
  "div",
81241
- _hoisted_3$3,
81241
+ _hoisted_3$2,
81242
81242
  toDisplayString(_ctx.badge),
81243
81243
  1
81244
81244
  /* TEXT */
@@ -105815,7 +105815,7 @@ const _hoisted_2$4 = {
105815
105815
  class: "mpd-flex mpd-items-center",
105816
105816
  style: { "color": "#fff" }
105817
105817
  };
105818
- const _hoisted_3$2 = { class: "icon-wrap" };
105818
+ const _hoisted_3$1 = { class: "icon-wrap" };
105819
105819
  const _hoisted_4 = { class: "icon-wrap" };
105820
105820
  const _sfc_main$c = /* @__PURE__ */ defineComponent({
105821
105821
  __name: "NodeOperate",
@@ -105865,7 +105865,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
105865
105865
  ]),
105866
105866
  default: withCtx(() => [
105867
105867
  createBaseVNode("div", _hoisted_2$4, [
105868
- createBaseVNode("i", _hoisted_3$2, [
105868
+ createBaseVNode("i", _hoisted_3$1, [
105869
105869
  _ctx.node.isContainer ? (openBlock(), createBlock(IconContainer, { key: 0 })) : (openBlock(), createBlock(IconItem, { key: 1 }))
105870
105870
  ]),
105871
105871
  createBaseVNode("span", null, toDisplayString(_ctx.node.name), 1)
@@ -105884,9 +105884,8 @@ const _style_0$5 = ".node-operate[data-v-d8fd7781] {\n display: flex;\n -moz-c
105884
105884
 
105885
105885
  const NodeOperate = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["styles", [_style_0$5]], ["__scopeId", "data-v-d8fd7781"]]);
105886
105886
 
105887
- const _hoisted_1$6 = ["data-id"];
105888
- const _hoisted_2$3 = ["data-name"];
105889
- const _hoisted_3$1 = {
105887
+ const _hoisted_1$6 = ["data-id", "data-name"];
105888
+ const _hoisted_2$3 = {
105890
105889
  key: 1,
105891
105890
  class: "hidden-mask mpd-absolute mpd-left-0 mpd-top-0 mpd-right-0 mpd-bottom-0 mpd-pointer-events-none mpd-flex mpd-justify-center mpd-items-center",
105892
105891
  style: { "background": "#33333333" }
@@ -105909,13 +105908,13 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
105909
105908
  return (_ctx, _cache) => {
105910
105909
  const _component_ElIcon = resolveComponent("ElIcon");
105911
105910
  return openBlock(), createElementBlock("div", {
105912
- class: "mpd-node mpd-relative",
105911
+ class: normalizeClass(["mpd-node mpd-relative", [isActive.value && "selected", isDraggable.value && "draggable", isHover.value && "hover"]]),
105913
105912
  "data-id": _ctx.node.wid,
105914
- style: normalizeStyle$1(unref(normalizeStyle)(_ctx.node.style))
105913
+ style: normalizeStyle$1(unref(normalizeStyle)(_ctx.node.style)),
105914
+ "data-name": _ctx.node.name
105915
105915
  }, [
105916
105916
  createBaseVNode("div", {
105917
- class: normalizeClass(["node-wrap", [isActive.value && "selected", isDraggable.value && "draggable", isHover.value && "hover"]]),
105918
- "data-name": _ctx.node.name,
105917
+ class: "node-wrap",
105919
105918
  onMouseenter: _cache[0] || (_cache[0] = withModifiers(($event) => unref(editor).hovering = _ctx.node.wid, ["stop"])),
105920
105919
  onMouseleave: _cache[1] || (_cache[1] = withModifiers(($event) => unref(editor).hovering = void 0, ["stop"])),
105921
105920
  onClick: _cache[2] || (_cache[2] = withModifiers(($event) => unref(editor).selected = _ctx.node.wid, ["stop"]))
@@ -105927,12 +105926,12 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
105927
105926
  }, null, 8, ["data-id", "node"])) : renderSlot(_ctx.$slots, "default", { key: 1 }, () => [
105928
105927
  _cache[3] || (_cache[3] = createBaseVNode("div", null, "拖曳组件", -1))
105929
105928
  ], true)
105930
- ], 42, _hoisted_2$3),
105929
+ ], 32),
105931
105930
  isActive.value ? (openBlock(), createBlock(NodeOperate, {
105932
105931
  key: 0,
105933
105932
  node: _ctx.node
105934
105933
  }, null, 8, ["node"])) : createCommentVNode("", true),
105935
- _ctx.node.visible === false ? (openBlock(), createElementBlock("div", _hoisted_3$1, [
105934
+ _ctx.node.visible === false ? (openBlock(), createElementBlock("div", _hoisted_2$3, [
105936
105935
  createVNode(_component_ElIcon, { size: 48 }, {
105937
105936
  default: withCtx(() => [
105938
105937
  createVNode(unref(hide_default))
@@ -105940,14 +105939,14 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
105940
105939
  _: 1
105941
105940
  })
105942
105941
  ])) : createCommentVNode("", true)
105943
- ], 12, _hoisted_1$6);
105942
+ ], 14, _hoisted_1$6);
105944
105943
  };
105945
105944
  }
105946
105945
  });
105947
105946
 
105948
- const _style_0$4 = ".node-wrap[data-v-744d25bf] {\n position: relative;\n width: 100%;\n height: 100%;\n min-height: inherit;\n cursor: default;\n}\n.node-wrap.draggable[data-v-744d25bf] {\n cursor: grab;\n}\n.node-wrap.draggable[data-v-744d25bf]:active {\n cursor: grabbing;\n}\n.node-wrap.selected[data-v-744d25bf]::after {\n border: 1px solid #4089Ef;\n}\n.node-wrap.hover[data-v-744d25bf]::after {\n border: 1px dashed #4089Ef;\n}\n.node-wrap.hover[data-v-744d25bf]::before {\n content: attr(data-name);\n position: absolute;\n top: 0;\n font-size: 14px;\n color: #fff;\n background: #4089Ef;\n padding: 4px;\n z-index: 1;\n}\n.node-wrap[data-v-744d25bf]::after {\n content: \"\";\n display: block;\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n pointer-events: none;\n z-index: 1;\n}";
105947
+ const _style_0$4 = ".mpd-node.draggable[data-v-d5036eca] {\n cursor: grab;\n}\n.mpd-node.draggable[data-v-d5036eca]:active {\n cursor: grabbing;\n}\n.mpd-node.selected[data-v-d5036eca]::after {\n border: 1px solid #4089Ef;\n}\n.mpd-node.hover[data-v-d5036eca]::after {\n border: 1px dashed #4089Ef;\n}\n.mpd-node.hover[data-v-d5036eca]::before {\n content: attr(data-name);\n position: absolute;\n top: 0;\n font-size: 14px;\n color: #fff;\n background: #4089Ef;\n padding: 4px;\n z-index: 1;\n}\n.mpd-node[data-v-d5036eca]::after {\n content: \"\";\n display: block;\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n pointer-events: none;\n z-index: 1;\n}\n.node-wrap[data-v-d5036eca] {\n position: relative;\n width: 100%;\n height: 100%;\n min-height: inherit;\n cursor: default;\n}";
105949
105948
 
105950
- const NodeWrap = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["styles", [_style_0$4]], ["__scopeId", "data-v-744d25bf"]]);
105949
+ const NodeWrap = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["styles", [_style_0$4]], ["__scopeId", "data-v-d5036eca"]]);
105951
105950
 
105952
105951
  const _hoisted_1$5 = {
105953
105952
  class: "mpd-color-picker",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sepveneto/dnde",
3
3
  "type": "module",
4
- "version": "0.5.7",
4
+ "version": "0.5.8",
5
5
  "description": "",
6
6
  "author": "",
7
7
  "license": "GPL",