@king-one/form-design 0.0.34 → 0.0.36

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 (32) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/es/index.mjs +10 -9
  3. package/dist/es/src/components/form-panel.vue.mjs +56 -55
  4. package/dist/es/src/components/panel/panel-item.vue.mjs +38 -36
  5. package/dist/es/src/components/panel/widget/array-table.vue2.mjs +31 -29
  6. package/dist/es/src/components/panel/widget/grid.vue2.mjs +33 -31
  7. package/dist/es/src/components/panel/widget/object.vue2.mjs +18 -16
  8. package/dist/es/src/config/index.mjs +30 -7
  9. package/dist/es/src/effects/effect-dict.mjs +1 -0
  10. package/dist/es/src/effects/onEffects.mjs +8 -7
  11. package/dist/es/src/hooks/index.mjs +6 -4
  12. package/dist/es/src/hooks/use-actions.mjs +20 -0
  13. package/dist/es/src/index.mjs +9 -8
  14. package/dist/lib/index.js +1 -1
  15. package/dist/lib/src/components/form-panel.vue.js +2 -2
  16. package/dist/lib/src/components/panel/panel-item.vue.js +1 -1
  17. package/dist/lib/src/components/panel/widget/array-table.vue2.js +1 -1
  18. package/dist/lib/src/components/panel/widget/grid.vue2.js +1 -1
  19. package/dist/lib/src/components/panel/widget/object.vue2.js +1 -1
  20. package/dist/lib/src/config/index.js +2 -2
  21. package/dist/lib/src/effects/effect-dict.js +1 -1
  22. package/dist/lib/src/effects/onEffects.js +1 -1
  23. package/dist/lib/src/hooks/index.js +1 -1
  24. package/dist/lib/src/hooks/use-actions.js +1 -0
  25. package/dist/lib/src/index.js +1 -1
  26. package/dist/theme-chalk/icon.css +1 -1
  27. package/dist/theme-chalk/index.css +1 -1
  28. package/dist/types/src/effects/effect-dict.d.ts +1 -0
  29. package/dist/types/src/effects/onEffects.d.ts +1 -0
  30. package/dist/types/src/hooks/index.d.ts +1 -0
  31. package/dist/types/src/hooks/use-actions.d.ts +6 -0
  32. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @king-one/form-design
2
2
 
3
+ ## 0.0.36
4
+
5
+ ### Patch Changes
6
+
7
+ - fix: 修复表单数据回显,完善加班套件的定义
8
+
9
+ ## 0.0.35
10
+
11
+ ### Patch Changes
12
+
13
+ - feat: 新增一大波功能
14
+
3
15
  ## 0.0.34
4
16
 
5
17
  ### Patch Changes
package/dist/es/index.mjs CHANGED
@@ -4,22 +4,23 @@ import { default as a } from "./src/components/panel/panel-item.vue.mjs";
4
4
  import { useInjectDesignContext as f } from "./src/context/design.mjs";
5
5
  import { default as p } from "./src/components/form-desgin.mjs";
6
6
  import { CreateFormDesign as i } from "./src/core/index.mjs";
7
- import { default as l } from "./src/components/props/form-config.vue.mjs";
8
- import { jsonToSchema as c } from "./src/utils/schema.mjs";
9
- import { BaseSchema as h, ExtendSchema as C, LayoutSchema as D, tempSchema as F } from "./src/config/index.mjs";
10
- import { onDesignFieldChange as I, onDesignInit as j } from "./src/effects/onEffects.mjs";
7
+ import { default as h } from "./src/components/props/form-config.vue.mjs";
8
+ import { jsonToSchema as u } from "./src/utils/schema.mjs";
9
+ import { BaseSchema as d, ExtendSchema as C, LayoutSchema as D, tempSchema as F } from "./src/config/index.mjs";
10
+ import { onDesignChange as I, onDesignFieldChange as j, onDesignInit as y } from "./src/effects/onEffects.mjs";
11
11
  export {
12
- h as BaseSchema,
12
+ d as BaseSchema,
13
13
  t as Carousel,
14
14
  i as CreateFormDesign,
15
15
  C as ExtendSchema,
16
- l as FormConfig,
16
+ h as FormConfig,
17
17
  p as FormDesign,
18
18
  a as FormPanelItem,
19
19
  D as LayoutSchema,
20
- c as jsonToSchema,
21
- I as onDesignFieldChange,
22
- j as onDesignInit,
20
+ u as jsonToSchema,
21
+ I as onDesignChange,
22
+ j as onDesignFieldChange,
23
+ y as onDesignInit,
23
24
  F as tempSchema,
24
25
  f as useInjectDesignContext
25
26
  };
@@ -1,73 +1,74 @@
1
- import { defineComponent as V, ref as v, nextTick as z, toRaw as A, openBlock as h, createElementBlock as C, normalizeClass as c, unref as e, createElementVNode as o, createVNode as s, withCtx as i, createCommentVNode as f, renderSlot as k, withDirectives as x, vShow as b } from "vue";
1
+ import { defineComponent as z, ref as v, nextTick as E, toRaw as R, openBlock as h, createElementBlock as C, normalizeClass as r, unref as e, createElementVNode as t, createVNode as s, withCtx as i, createCommentVNode as f, renderSlot as k, withDirectives as x, vShow as b } from "vue";
2
2
  import "../internal.mjs";
3
- import { Modal as E, Tooltip as D, Form as R } from "ant-design-vue";
4
- import j from "vuedraggable";
5
- import { useInjectDragContext as B, useInjectDesignContext as J } from "../context/design.mjs";
3
+ import { Modal as j, Tooltip as D, Form as B } from "ant-design-vue";
4
+ import J from "vuedraggable";
5
+ import { useInjectDragContext as O, useInjectDesignContext as M } from "../context/design.mjs";
6
6
  import "./panel/panel-item.vue2.mjs";
7
- import O from "./base/json-preview.vue.mjs";
7
+ import P from "./base/json-preview.vue.mjs";
8
8
  import "./index.mjs";
9
- import { useNamespace as M } from "../hooks/use-namespace/index.mjs";
9
+ import { useDesignActions as q } from "../hooks/use-actions.mjs";
10
+ import { useNamespace as G } from "../hooks/use-namespace/index.mjs";
10
11
  import S from "./form-icon.vue2.mjs";
11
- import P from "./panel/panel-item.vue.mjs";
12
- const q = { class: "left" }, G = { class: "right" }, H = { class: "content-panel" }, K = {
12
+ import H from "./panel/panel-item.vue.mjs";
13
+ const K = { class: "left" }, L = { class: "right" }, Q = { class: "content-panel" }, U = {
13
14
  key: 0,
14
15
  class: "prompt"
15
- }, L = { class: "form-item" }, Q = { class: "content-editor" }, ie = /* @__PURE__ */ V({
16
+ }, W = { class: "form-item" }, X = { class: "content-editor" }, me = /* @__PURE__ */ z({
16
17
  name: "FormPanel",
17
18
  __name: "form-panel",
18
- setup(U) {
19
- const p = v({}), { isDrag: w } = B(), d = v(!1), a = J(), { fields: r } = a;
20
- function y() {
21
- d.value = !d.value, z(() => {
19
+ setup(Y) {
20
+ const p = v({}), { isDrag: w } = O(), d = v(!1), a = M(), { fields: c } = a, { dragAddAction: y, clearFieldsAction: A } = q(a);
21
+ function F() {
22
+ d.value = !d.value, E(() => {
22
23
  p.value = a.getFormSchema();
23
24
  });
24
25
  }
25
- const { b: F, e: u, em: g } = M("panel");
26
- function $(l, t) {
27
- const n = A(l), { oldIndex: T } = t, m = n[T];
26
+ const { b: $, e: u, em: g } = G("panel");
27
+ function I(l, o) {
28
+ const n = R(l), { oldIndex: V } = o, m = n[V];
28
29
  if (m) {
29
30
  const { shared: _ } = a;
30
31
  _.draggedContext.key = m.key, _.draggedContext.field = m;
31
32
  }
32
33
  }
33
- async function I() {
34
- const { shared: l } = a, { field: t } = l.draggedContext, n = {
35
- source: t,
36
- traget: r.value,
34
+ async function N() {
35
+ const { shared: l } = a, { field: o } = l.draggedContext, n = {
36
+ source: o,
37
+ traget: c.value,
37
38
  region: "form-panel"
38
39
  };
39
- a.hooks.syncDragAdd.call(n), a.setCheckedField(t);
40
+ a.hooks.syncDragAdd.call(n), a.setCheckedField(o), y();
40
41
  }
41
- function N() {
42
- E.confirm({
42
+ function T() {
43
+ j.confirm({
43
44
  title: "提示?",
44
45
  content: "确定要清空所有字段吗?",
45
46
  okText: "确定",
46
47
  cancelText: "取消",
47
48
  onOk() {
48
- a.clearFields();
49
+ A();
49
50
  },
50
51
  onCancel() {
51
52
  console.log("Cancel");
52
53
  }
53
54
  });
54
55
  }
55
- return (l, t) => (h(), C(
56
+ return (l, o) => (h(), C(
56
57
  "div",
57
58
  {
58
- class: c(e(F)())
59
+ class: r(e($)())
59
60
  },
60
61
  [
61
- o(
62
+ t(
62
63
  "div",
63
64
  {
64
- class: c(e(u)("toolbar"))
65
+ class: r(e(u)("toolbar"))
65
66
  },
66
67
  [
67
- o("div", q, [
68
+ t("div", K, [
68
69
  s(e(D), { placement: "bottom" }, {
69
- title: i(() => t[1] || (t[1] = [
70
- o(
70
+ title: i(() => o[1] || (o[1] = [
71
+ t(
71
72
  "span",
72
73
  null,
73
74
  "全部删除",
@@ -78,17 +79,17 @@ const q = { class: "left" }, G = { class: "right" }, H = { class: "content-panel
78
79
  default: i(() => [
79
80
  s(e(S), {
80
81
  name: "delete1",
81
- class: c(e(g)("toolbar", "icon")),
82
+ class: r(e(g)("toolbar", "icon")),
82
83
  size: 18,
83
- onClick: N
84
+ onClick: T
84
85
  }, null, 8, ["class"])
85
86
  ]),
86
87
  _: 1
87
88
  /* STABLE */
88
89
  }),
89
90
  s(e(D), { placement: "bottom" }, {
90
- title: i(() => t[2] || (t[2] = [
91
- o(
91
+ title: i(() => o[2] || (o[2] = [
92
+ t(
92
93
  "span",
93
94
  null,
94
95
  "查看JSON Schema",
@@ -99,9 +100,9 @@ const q = { class: "left" }, G = { class: "right" }, H = { class: "content-panel
99
100
  default: i(() => [
100
101
  s(e(S), {
101
102
  name: "code",
102
- class: c(e(g)("toolbar", "icon")),
103
+ class: r(e(g)("toolbar", "icon")),
103
104
  size: 18,
104
- onClick: y
105
+ onClick: F
105
106
  }, null, 8, ["class"])
106
107
  ]),
107
108
  _: 1
@@ -110,7 +111,7 @@ const q = { class: "left" }, G = { class: "right" }, H = { class: "content-panel
110
111
  f(` <FormIcon name="desktop" />
111
112
  <FormIcon name="mobile" /> `)
112
113
  ]),
113
- o("div", G, [
114
+ t("div", L, [
114
115
  k(l.$slots, "toolbar")
115
116
  ])
116
117
  ],
@@ -118,40 +119,40 @@ const q = { class: "left" }, G = { class: "right" }, H = { class: "content-panel
118
119
  /* CLASS */
119
120
  ),
120
121
  f(' ref="contentTelRef" '),
121
- o(
122
+ t(
122
123
  "div",
123
124
  {
124
- class: c(e(u)("content"))
125
+ class: r(e(u)("content"))
125
126
  },
126
127
  [
127
- x(o(
128
+ x(t(
128
129
  "div",
129
- H,
130
+ Q,
130
131
  [
131
- !e(w) && e(r).length === 0 ? (h(), C("div", K, " 👈 请在左侧选择控件并拖至此处 ")) : f("v-if", !0),
132
- s(e(R), {
132
+ !e(w) && e(c).length === 0 ? (h(), C("div", U, " 👈 请在左侧选择控件并拖至此处 ")) : f("v-if", !0),
133
+ s(e(B), {
133
134
  autocomplete: "off",
134
135
  class: "design-from",
135
136
  "label-align": "left"
136
137
  }, {
137
138
  default: i(() => [
138
- s(e(j), {
139
+ s(e(J), {
139
140
  class: "drag-from",
140
- list: e(r),
141
+ list: e(c),
141
142
  group: { name: "form" },
142
143
  animation: 300,
143
144
  sort: !0,
144
145
  "item-key": "id",
145
146
  "chosen-class": "choose",
146
- onStart: t[0] || (t[0] = (n) => $(e(r), n)),
147
- onAdd: I
147
+ onStart: o[0] || (o[0] = (n) => I(e(c), n)),
148
+ onAdd: N
148
149
  }, {
149
150
  item: i(({ element: n }) => [
150
- o("div", L, [
151
+ t("div", W, [
151
152
  k(l.$slots, `panel-${n.key}`, {}, () => [
152
- s(P, {
153
+ s(H, {
153
154
  field: n,
154
- space: e(r)
155
+ space: e(c)
155
156
  }, null, 8, ["field", "space"])
156
157
  ])
157
158
  ])
@@ -169,11 +170,11 @@ const q = { class: "left" }, G = { class: "right" }, H = { class: "content-panel
169
170
  ), [
170
171
  [b, !d.value]
171
172
  ]),
172
- x(o(
173
+ x(t(
173
174
  "div",
174
- Q,
175
+ X,
175
176
  [
176
- s(O, { data: p.value }, null, 8, ["data"])
177
+ s(P, { data: p.value }, null, 8, ["data"])
177
178
  ],
178
179
  512
179
180
  /* NEED_PATCH */
@@ -191,5 +192,5 @@ const q = { class: "left" }, G = { class: "right" }, H = { class: "content-panel
191
192
  }
192
193
  });
193
194
  export {
194
- ie as default
195
+ me as default
195
196
  };
@@ -1,64 +1,66 @@
1
- import { defineComponent as V, computed as g, openBlock as n, createElementBlock as b, normalizeClass as p, withModifiers as j, unref as t, createBlock as a, resolveDynamicComponent as w, withCtx as z, createElementVNode as $, createCommentVNode as r, createVNode as x, defineAsyncComponent as A } from "vue";
2
- import { FormItem as M, Tooltip as O } from "ant-design-vue";
1
+ import { defineComponent as V, computed as g, openBlock as o, createElementBlock as b, normalizeClass as p, withModifiers as j, unref as t, createBlock as a, resolveDynamicComponent as w, withCtx as D, createElementVNode as $, createCommentVNode as c, createVNode as x, defineAsyncComponent as M } from "vue";
2
+ import { FormItem as O, Tooltip as S } from "ant-design-vue";
3
3
  import "../../internal.mjs";
4
- import { useInjectDesignContext as S } from "../../context/design.mjs";
4
+ import { useInjectDesignContext as W } from "../../context/design.mjs";
5
5
  import "../index.mjs";
6
- import { useNamespace as W } from "../../hooks/use-namespace/index.mjs";
6
+ import "../../hooks/index.mjs";
7
+ import { useNamespace as q } from "../../hooks/use-namespace/index.mjs";
7
8
  import m from "../form-icon.vue2.mjs";
8
- const q = {
9
+ import { useDesignActions as G } from "../../hooks/use-actions.mjs";
10
+ const H = {
9
11
  key: 2,
10
12
  class: "icons"
11
- }, U = /* @__PURE__ */ V({
13
+ }, _ = /* @__PURE__ */ V({
12
14
  __name: "panel-item",
13
15
  props: {
14
16
  field: {},
15
17
  space: {},
16
18
  hideTitle: { type: Boolean }
17
19
  },
18
- setup(B) {
19
- const o = B, { b: D, e: u, m: v } = W("panel-item"), c = S(), { checkedField: d, shared: I } = c;
20
+ setup(z) {
21
+ const n = z, { b: B, e: u, m: v } = q("panel-item"), d = W(), { checkedField: r, shared: F } = d, { deleteFieldAction: I } = G(d);
20
22
  function N(e, i = {}) {
21
23
  return Object.entries(e).forEach(([l, s]) => {
22
- typeof s == "function" ? i[l] = A(s) : i[l] = s;
24
+ typeof s == "function" ? i[l] = M(s) : i[l] = s;
23
25
  }), i;
24
26
  }
25
- const k = N(I.panelWidgets);
26
- function E(e) {
27
- c.setCheckedField(e);
27
+ const k = N(F.panelWidgets);
28
+ function A(e) {
29
+ d.setCheckedField(e), I();
28
30
  }
29
31
  const f = g(() => {
30
32
  var i, l;
31
- return ((l = (i = o.field["x-design-props"]) == null ? void 0 : i.validate) == null ? void 0 : l.status) === "error";
32
- }), F = g(() => {
33
+ return ((l = (i = n.field["x-design-props"]) == null ? void 0 : i.validate) == null ? void 0 : l.status) === "error";
34
+ }), E = g(() => {
33
35
  var i;
34
- const e = [D()];
35
- return ((i = d.value) == null ? void 0 : i.id) === o.field.id && e.push(v("active")), f.value && e.push(v("error")), e;
36
+ const e = [B()];
37
+ return ((i = r.value) == null ? void 0 : i.id) === n.field.id && e.push(v("active")), f.value && e.push(v("error")), e;
36
38
  });
37
39
  function T() {
38
- if (!c.hooks.beforeDelete.call(o.field))
40
+ if (!d.hooks.beforeDelete.call(n.field))
39
41
  return;
40
- const i = o.space.findIndex((l) => l.id === o.field.id);
41
- i !== -1 && o.space.splice(i, 1);
42
+ const i = n.space.findIndex((l) => l.id === n.field.id);
43
+ i !== -1 && n.space.splice(i, 1);
42
44
  }
43
45
  return (e, i) => {
44
46
  var l, s, C, h, y;
45
- return n(), b(
47
+ return o(), b(
46
48
  "div",
47
49
  {
48
- class: p(F.value),
49
- onClick: i[0] || (i[0] = j((G) => E(e.field), ["stop"]))
50
+ class: p(E.value),
51
+ onClick: i[0] || (i[0] = j((J) => A(e.field), ["stop"]))
50
52
  },
51
53
  [
52
- t(k)[e.field.key] ? (n(), a(w(t(k)[e.field.key]), {
54
+ t(k)[e.field.key] ? (o(), a(w(t(k)[e.field.key]), {
53
55
  key: 0,
54
56
  "hide-title": e.hideTitle,
55
57
  field: e.field
56
- }, null, 8, ["hide-title", "field"])) : (n(), a(t(M), {
58
+ }, null, 8, ["hide-title", "field"])) : (o(), a(t(O), {
57
59
  key: 1,
58
60
  class: p(t(u)("form")),
59
61
  label: e.field.title
60
62
  }, {
61
- default: z(() => [
63
+ default: D(() => [
62
64
  $(
63
65
  "div",
64
66
  {
@@ -72,36 +74,36 @@ const q = {
72
74
  _: 1
73
75
  /* STABLE */
74
76
  }, 8, ["class", "label"])),
75
- ((l = t(d)) == null ? void 0 : l.id) === e.field.id || f.value ? (n(), b("div", q, [
76
- ((s = t(d)) == null ? void 0 : s.id) === e.field.id ? (n(), a(t(m), {
77
+ ((l = t(r)) == null ? void 0 : l.id) === e.field.id || f.value ? (o(), b("div", H, [
78
+ ((s = t(r)) == null ? void 0 : s.id) === e.field.id ? (o(), a(t(m), {
77
79
  key: 0,
78
80
  name: "copy",
79
81
  class: "panel-icon",
80
82
  size: 15
81
- })) : r("v-if", !0),
82
- ((C = t(d)) == null ? void 0 : C.id) === e.field.id ? (n(), a(t(m), {
83
+ })) : c("v-if", !0),
84
+ ((C = t(r)) == null ? void 0 : C.id) === e.field.id ? (o(), a(t(m), {
83
85
  key: 1,
84
86
  name: "delete1",
85
87
  class: "panel-icon",
86
88
  size: 15,
87
89
  onClick: T
88
- })) : r("v-if", !0),
89
- x(t(O), {
90
+ })) : c("v-if", !0),
91
+ x(t(S), {
90
92
  title: (y = (h = e.field["x-design-props"]) == null ? void 0 : h.validate) == null ? void 0 : y.message,
91
93
  color: "pink"
92
94
  }, {
93
- default: z(() => [
94
- f.value ? (n(), a(t(m), {
95
+ default: D(() => [
96
+ f.value ? (o(), a(t(m), {
95
97
  key: 0,
96
98
  name: "exclamation-circle-filled",
97
99
  size: 13,
98
100
  class: "panel-exclamation-icon"
99
- })) : r("v-if", !0)
101
+ })) : c("v-if", !0)
100
102
  ]),
101
103
  _: 1
102
104
  /* STABLE */
103
105
  }, 8, ["title"])
104
- ])) : r("v-if", !0)
106
+ ])) : c("v-if", !0)
105
107
  ],
106
108
  2
107
109
  /* CLASS */
@@ -110,5 +112,5 @@ const q = {
110
112
  }
111
113
  });
112
114
  export {
113
- U as default
115
+ _ as default
114
116
  };
@@ -1,42 +1,44 @@
1
- import { defineComponent as g, openBlock as p, createElementBlock as b, normalizeClass as u, unref as l, createElementVNode as e, createVNode as n, withCtx as y, renderSlot as h, toDisplayString as v } from "vue";
2
- import x from "vuedraggable";
1
+ import { defineComponent as p, openBlock as u, createElementBlock as b, normalizeClass as y, unref as n, createElementVNode as e, createVNode as l, withCtx as h, renderSlot as v, toDisplayString as x } from "vue";
2
+ import A from "vuedraggable";
3
3
  import "../../../index.mjs";
4
4
  import "../../../internal.mjs";
5
5
  import { message as C } from "ant-design-vue";
6
6
  import { useInjectDesignContext as k } from "../../../context/design.mjs";
7
- import { useNamespace as _ } from "../../../hooks/use-namespace/index.mjs";
8
- import A from "../panel-item.vue.mjs";
9
- const D = { class: "array-table-box" }, w = { class: "array-table-drag" }, I = { class: "form-item" }, N = { class: "table-item" }, $ = { class: "array-table-drag-header" }, B = { class: "array-table-drag-content" }, q = /* @__PURE__ */ g({
7
+ import { useNamespace as D } from "../../../hooks/use-namespace/index.mjs";
8
+ import { useDesignActions as _ } from "../../../hooks/use-actions.mjs";
9
+ import w from "../panel-item.vue.mjs";
10
+ const I = { class: "array-table-box" }, N = { class: "array-table-drag" }, $ = { class: "form-item" }, B = { class: "table-item" }, E = { class: "array-table-drag-header" }, S = { class: "array-table-drag-content" }, J = /* @__PURE__ */ p({
10
11
  name: "ArrayTable",
11
12
  __name: "array-table",
12
13
  props: {
13
14
  field: {}
14
15
  },
15
16
  setup(d) {
16
- const s = k(), { b: c } = _("array-table");
17
+ const s = k(), { b: c } = D("array-table"), { dragAddAction: m } = _(s);
17
18
  function f() {
18
- const { shared: r } = s, { field: t } = r.draggedContext, i = {
19
+ const { shared: a } = s, { field: t } = a.draggedContext, i = {
19
20
  source: t,
20
21
  traget: d.field.children,
21
22
  region: "k-array-card"
22
23
  };
23
- if (s.hooks.syncDragAdd.call(i), !s.dragAddResult.every((a) => a)) {
24
- const a = d.field.children.findIndex((m) => m.id === t.id);
25
- a !== -1 && (d.field.children.splice(a, 1), C.warning("不能将该控件拖拽到列表容器中"));
24
+ if (s.hooks.syncDragAdd.call(i), !s.dragAddResult.every((r) => r)) {
25
+ const r = d.field.children.findIndex((g) => g.id === t.id);
26
+ r !== -1 && (d.field.children.splice(r, 1), C.warning("不能将该控件拖拽到列表容器中"));
26
27
  }
27
- const o = d.field.children.find((a) => a.id === t.id);
28
+ const o = d.field.children.find((r) => r.id === t.id);
28
29
  if (o) {
29
- const a = o["x-decorator-props"] || {};
30
+ const r = o["x-decorator-props"] || {};
30
31
  o["x-decorator-props"] = {
31
- ...a,
32
+ ...r,
32
33
  hideTitle: !0
33
34
  };
34
35
  }
36
+ m();
35
37
  }
36
- return (r, t) => (p(), b(
38
+ return (a, t) => (u(), b(
37
39
  "div",
38
40
  {
39
- class: u(l(c)())
41
+ class: y(n(c)())
40
42
  },
41
43
  [
42
44
  t[1] || (t[1] = e(
@@ -46,7 +48,7 @@ const D = { class: "array-table-box" }, w = { class: "array-table-drag" }, I = {
46
48
  -1
47
49
  /* CACHED */
48
50
  )),
49
- e("div", D, [
51
+ e("div", I, [
50
52
  t[0] || (t[0] = e(
51
53
  "div",
52
54
  { class: "array-table-left" },
@@ -57,10 +59,10 @@ const D = { class: "array-table-box" }, w = { class: "array-table-drag" }, I = {
57
59
  -1
58
60
  /* CACHED */
59
61
  )),
60
- e("div", w, [
61
- n(l(x), {
62
+ e("div", N, [
63
+ l(n(A), {
62
64
  class: "widget-drag",
63
- list: r.field.children,
65
+ list: a.field.children,
64
66
  group: { name: "form", direction: "vertical", removeCloneOnHide: !1 },
65
67
  animation: 300,
66
68
  sort: !0,
@@ -68,21 +70,21 @@ const D = { class: "array-table-box" }, w = { class: "array-table-drag" }, I = {
68
70
  "drag-class": "table-item-drag-class",
69
71
  onAdd: f
70
72
  }, {
71
- item: y(({ element: i }) => [
72
- e("div", I, [
73
- h(r.$slots, `panel-${i.key}`, {}, () => [
74
- e("div", N, [
73
+ item: h(({ element: i }) => [
74
+ e("div", $, [
75
+ v(a.$slots, `panel-${i.key}`, {}, () => [
76
+ e("div", B, [
75
77
  e(
76
78
  "div",
77
- $,
78
- v(i.title),
79
+ E,
80
+ x(i.title),
79
81
  1
80
82
  /* TEXT */
81
83
  ),
82
- e("div", B, [
83
- n(l(A), {
84
+ e("div", S, [
85
+ l(n(w), {
84
86
  field: i,
85
- space: r.field.children,
87
+ space: a.field.children,
86
88
  "hide-title": ""
87
89
  }, null, 8, ["field", "space"])
88
90
  ])
@@ -109,5 +111,5 @@ const D = { class: "array-table-box" }, w = { class: "array-table-drag" }, I = {
109
111
  }
110
112
  });
111
113
  export {
112
- q as default
114
+ J as default
113
115
  };