@sepveneto/dnde 0.5.9 → 0.5.11
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/editor.js +10 -9
- package/package.json +2 -2
package/dist/editor.js
CHANGED
|
@@ -104450,7 +104450,7 @@ var Node$1 = class _Node {
|
|
|
104450
104450
|
this.hovering = false;
|
|
104451
104451
|
this.dragging = false;
|
|
104452
104452
|
this.widget = widget;
|
|
104453
|
-
this.wid = v4();
|
|
104453
|
+
this.wid = (info == null ? void 0 : info.uuid) || v4();
|
|
104454
104454
|
this.list = (info == null ? void 0 : info.list) || [];
|
|
104455
104455
|
this.data = (info == null ? void 0 : info.props) || {};
|
|
104456
104456
|
this.style = (info == null ? void 0 : info.style) || {};
|
|
@@ -105540,8 +105540,9 @@ const useEditor = defineStore("editor", () => {
|
|
|
105540
105540
|
const widget2 = app.widgetMap.get(item._view);
|
|
105541
105541
|
if (!widget2)
|
|
105542
105542
|
return;
|
|
105543
|
-
const { style, list, data: data2 } = item;
|
|
105543
|
+
const { _uuid, style, list, data: data2 } = item;
|
|
105544
105544
|
const info = {
|
|
105545
|
+
uuid: _uuid,
|
|
105545
105546
|
props: data2,
|
|
105546
105547
|
style,
|
|
105547
105548
|
list: []
|
|
@@ -105555,8 +105556,9 @@ const useEditor = defineStore("editor", () => {
|
|
|
105555
105556
|
}
|
|
105556
105557
|
function setData(data) {
|
|
105557
105558
|
const widget2 = app.widgetMap.get(data._view) || defaultPage;
|
|
105558
|
-
const { style, list = [], data: props } = data;
|
|
105559
|
+
const { _uuid, style, list = [], data: props } = data;
|
|
105559
105560
|
const info = {
|
|
105561
|
+
uuid: _uuid,
|
|
105560
105562
|
props,
|
|
105561
105563
|
style,
|
|
105562
105564
|
list: []
|
|
@@ -106290,13 +106292,12 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
106290
106292
|
}, {
|
|
106291
106293
|
default: withCtx(() => [
|
|
106292
106294
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.list, (item) => {
|
|
106293
|
-
return openBlock(), createBlock(_component_ElFormItem, {
|
|
106295
|
+
return openBlock(), createBlock(_component_ElFormItem, mergeProps({
|
|
106294
106296
|
key: item.key,
|
|
106295
106297
|
label: item.label,
|
|
106296
106298
|
prop: item.key,
|
|
106297
|
-
rules: item.rules
|
|
106298
|
-
|
|
106299
|
-
}, {
|
|
106299
|
+
rules: item.rules
|
|
106300
|
+
}, { ref_for: true }, item.formItem), {
|
|
106300
106301
|
default: withCtx(() => [
|
|
106301
106302
|
createVNode(_sfc_main$8, {
|
|
106302
106303
|
"model-value": getData(form.value, item.key),
|
|
@@ -106307,7 +106308,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
106307
106308
|
}, null, 8, ["model-value", "config", "data", "onUpdate:modelValue"])
|
|
106308
106309
|
]),
|
|
106309
106310
|
_: 2
|
|
106310
|
-
},
|
|
106311
|
+
}, 1040, ["label", "prop", "rules"]);
|
|
106311
106312
|
}), 128))
|
|
106312
106313
|
]),
|
|
106313
106314
|
_: 1
|
|
@@ -106915,7 +106916,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
106915
106916
|
"component-data": { type: "transition-group", name: "flip-list" },
|
|
106916
106917
|
animation: 200,
|
|
106917
106918
|
"ghost-class": "dragging-ghost",
|
|
106918
|
-
handle: ".node
|
|
106919
|
+
handle: ".mpd-node.draggable",
|
|
106919
106920
|
"item-key": "wid",
|
|
106920
106921
|
move: handleMove,
|
|
106921
106922
|
onStart: handelStart,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sepveneto/dnde",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.5.
|
|
4
|
+
"version": "0.5.11",
|
|
5
5
|
"description": "",
|
|
6
6
|
"author": "",
|
|
7
7
|
"license": "GPL",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"vue": "^3.5.15",
|
|
47
47
|
"vue-router": "^4.5.1",
|
|
48
48
|
"vuedraggable": "^4.1.0",
|
|
49
|
-
"@sepveneto/dnde-core": "0.4.
|
|
49
|
+
"@sepveneto/dnde-core": "0.4.5"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@types/node": "^22.15.23",
|