@done-coding/admin-core 0.5.0 → 0.5.1-alpha.0

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 (123) hide show
  1. package/es/bridge/index.mjs +30 -42
  2. package/es/components/app-layout/AppHeader.vue.mjs +2 -2
  3. package/es/components/app-layout/AppHeader.vue2.mjs +16 -19
  4. package/es/components/data-view/DataListView.vue.mjs +2 -2
  5. package/es/components/data-view/DataListView.vue2.mjs +63 -52
  6. package/es/components/data-view/utils.mjs +36 -0
  7. package/es/components/display/TabsMain.vue.mjs +1 -1
  8. package/es/components/list-page/ListPage.vue.mjs +2 -2
  9. package/es/components/list-page/ListPage.vue2.mjs +44 -44
  10. package/es/components/misc/ActionConfirm.vue2.mjs +16 -16
  11. package/es/components/modal/ConfirmModal.vue.mjs +3 -3
  12. package/es/components/modal/DetailModal.vue.mjs +10 -10
  13. package/es/components/table/TableMain.vue.mjs +3 -3
  14. package/es/components/table/TableMain.vue2.mjs +167 -177
  15. package/es/components/table/TableToolbar.vue.mjs +3 -3
  16. package/es/components/table/TableToolbar.vue2.mjs +8 -4
  17. package/es/index.mjs +150 -180
  18. package/es/style.css +1 -1
  19. package/package.json +6 -5
  20. package/types/bridge/index.d.ts +3 -6
  21. package/types/bridge/route.d.ts +0 -1
  22. package/types/components/app-layout/AppBody.vue.d.ts +14 -34
  23. package/types/components/app-layout/AppBreadcrumb.vue.d.ts +6 -19
  24. package/types/components/app-layout/AppFooter.vue.d.ts +1 -1
  25. package/types/components/app-layout/AppHeader.vue.d.ts +15 -39
  26. package/types/components/app-layout/AppLayout.vue.d.ts +17 -50
  27. package/types/components/app-layout/AppPage.vue.d.ts +14 -39
  28. package/types/components/app-layout/AppSidebar.vue.d.ts +15 -37
  29. package/types/components/app-layout/index.d.ts +1 -19
  30. package/types/components/app-layout/types.d.ts +0 -1
  31. package/types/components/data-view/DataListView.vue.d.ts +9 -9
  32. package/types/components/data-view/DataListViewItem.vue.d.ts +19 -17
  33. package/types/components/data-view/index.d.ts +0 -1
  34. package/types/components/data-view/types.d.ts +9 -18
  35. package/types/components/data-view/utils.d.ts +5 -0
  36. package/types/components/display/ActionBtnGroup.vue.d.ts +8 -6
  37. package/types/components/display/HeightProvider.vue.d.ts +15 -31
  38. package/types/components/display/TabsHeader.vue.d.ts +27 -34
  39. package/types/components/display/TabsMain.vue.d.ts +14 -75
  40. package/types/components/display/TabsNaturalFlow.vue.d.ts +11 -5
  41. package/types/components/display/TabsRefineFlow.vue.d.ts +13 -31
  42. package/types/components/display/WatchSize.vue.d.ts +20 -32
  43. package/types/components/display/index.d.ts +0 -3
  44. package/types/components/display/types.d.ts +1 -2
  45. package/types/components/form/FormItem.vue.d.ts +208 -33
  46. package/types/components/form/FormMain.vue.d.ts +6 -7
  47. package/types/components/form/FormRadioGroup.vue.d.ts +14 -31
  48. package/types/components/form/FormSearch.vue.d.ts +5 -6
  49. package/types/components/form/FormSelect.vue.d.ts +19 -40
  50. package/types/components/form/FormTree.vue.d.ts +2037 -32
  51. package/types/components/form/FormVerifyCode.vue.d.ts +6 -6
  52. package/types/components/form/FormVerifyImage.vue.d.ts +6 -6
  53. package/types/components/form/form-search-utils.d.ts +0 -1
  54. package/types/components/form/index.d.ts +0 -3
  55. package/types/components/form/types.d.ts +0 -1
  56. package/types/components/form/utils.d.ts +0 -1
  57. package/types/components/list-page/ListPage.vue.d.ts +32 -33
  58. package/types/components/list-page/index.d.ts +0 -3
  59. package/types/components/list-page/types.d.ts +0 -1
  60. package/types/components/menu/MenuItemSub.vue.d.ts +3 -15
  61. package/types/components/menu/MenuTree.vue.d.ts +117 -19
  62. package/types/components/menu/index.d.ts +0 -3
  63. package/types/components/misc/ActionBtn.vue.d.ts +10 -11
  64. package/types/components/misc/ActionConfirm.vue.d.ts +21 -60
  65. package/types/components/misc/AutoRefresh.vue.d.ts +18 -24
  66. package/types/components/misc/TriggerAutoImport.vue.d.ts +8 -2
  67. package/types/components/misc/index.d.ts +4 -14
  68. package/types/components/misc/types.d.ts +0 -1
  69. package/types/components/modal/DetailModal.vue.d.ts +5 -6
  70. package/types/components/modal/ModalPorter.vue.d.ts +13 -18
  71. package/types/components/modal/ModalShelf.vue.d.ts +13 -18
  72. package/types/components/modal/index.d.ts +0 -4
  73. package/types/components/modal/modal-shelf-core.d.ts +0 -1
  74. package/types/components/modal/modal-shelf-hierarchy.d.ts +0 -1
  75. package/types/components/modal/modal-shelf-types.d.ts +0 -1
  76. package/types/components/modal/types.d.ts +0 -1
  77. package/types/components/panel/PanelEditSwitch.vue.d.ts +17 -20
  78. package/types/components/panel/PanelItem.vue.d.ts +7 -16
  79. package/types/components/panel/PanelMain.vue.d.ts +5 -6
  80. package/types/components/panel/index.d.ts +0 -4
  81. package/types/components/panel/types.d.ts +0 -1
  82. package/types/components/table/TableMain.vue.d.ts +12 -12
  83. package/types/components/table/TableToolbar.vue.d.ts +17 -108
  84. package/types/components/table/ToolbarButtons.vue.d.ts +15 -17
  85. package/types/components/table/index.d.ts +0 -3
  86. package/types/components/table/types.d.ts +59 -19
  87. package/types/config/list-model.d.ts +0 -1
  88. package/types/helpers/form.d.ts +0 -1
  89. package/types/helpers/index.d.ts +0 -10
  90. package/types/helpers/list-helper.d.ts +0 -1
  91. package/types/hooks/menus-dispatch.d.ts +0 -1
  92. package/types/hooks/use-channel-viewport-height.d.ts +0 -1
  93. package/types/index.d.ts +0 -13
  94. package/types/inject/key.d.ts +0 -1
  95. package/types/router/guard/index.d.ts +0 -1
  96. package/types/router/guard/login.d.ts +0 -1
  97. package/types/router/guard/permission.d.ts +0 -1
  98. package/types/router/guard/types.d.ts +0 -1
  99. package/types/store/app.d.ts +1 -2
  100. package/types/store/router-permission.d.ts +0 -1
  101. package/types/store/user.d.ts +0 -1
  102. package/types/types/route.d.ts +0 -1
  103. package/types/utils/export.d.ts +11 -10
  104. package/types/utils/router.d.ts +0 -1
  105. package/es/components/app-layout/index.mjs +0 -32
  106. package/es/components/display/index.mjs +0 -18
  107. package/es/components/form/index.mjs +0 -32
  108. package/es/components/list-page/index.mjs +0 -14
  109. package/es/components/menu/index.mjs +0 -12
  110. package/es/components/misc/ActionButton.vue.mjs +0 -52
  111. package/es/components/misc/ActionButton.vue2.mjs +0 -4
  112. package/es/components/misc/ActionButtonDanger.vue.mjs +0 -32
  113. package/es/components/misc/ActionButtonDanger.vue2.mjs +0 -4
  114. package/es/components/misc/ActionButtonWarn.vue.mjs +0 -32
  115. package/es/components/misc/ActionButtonWarn.vue2.mjs +0 -4
  116. package/es/components/misc/index.mjs +0 -32
  117. package/es/components/modal/index.mjs +0 -23
  118. package/es/components/panel/index.mjs +0 -20
  119. package/es/components/table/index.mjs +0 -14
  120. package/types/components/misc/ActionButton.vue.d.ts +0 -24
  121. package/types/components/misc/ActionButtonDanger.vue.d.ts +0 -19
  122. package/types/components/misc/ActionButtonWarn.vue.d.ts +0 -19
  123. package/types/components/modal/ConfirmModal.vue.d.ts +0 -124
@@ -1,18 +1,18 @@
1
- import { ElLoadingDirective as ce } from "element-plus/es";
1
+ import { ElLoadingDirective as he } from "element-plus/es";
2
2
  import "element-plus/es/components/base/style/css";
3
3
  import "element-plus/es/components/loading/style/css";
4
- import { defineComponent as he, useCssVars as ge, unref as a, useSlots as fe, computed as o, useModel as de, ref as u, shallowRef as K, watch as me, withDirectives as ve, openBlock as C, createElementBlock as pe, createBlock as O, withCtx as h, renderSlot as g, createCommentVNode as T, createVNode as q, mergeProps as y, createSlots as x, renderList as H, normalizeProps as S, guardReactiveProps as b, mergeModels as E } from "vue";
5
- import Ce from "../form/FormSearch.vue.mjs";
6
- import { generateFormData as ye, stringifyFormData as He } from "../form/utils.mjs";
4
+ import { defineComponent as fe, useCssVars as ge, unref as a, useSlots as de, computed as o, useModel as me, ref as u, shallowRef as K, watch as ve, withDirectives as pe, openBlock as C, createElementBlock as Ce, createBlock as O, withCtx as h, renderSlot as f, createCommentVNode as T, createVNode as q, mergeProps as y, createSlots as x, renderList as H, normalizeProps as S, guardReactiveProps as b, mergeModels as E } from "vue";
5
+ import ye from "../form/FormSearch.vue.mjs";
6
+ import { generateFormData as He, stringifyFormData as Se } from "../form/utils.mjs";
7
7
  import L from "../display/WatchSize.vue.mjs";
8
- import Se from "../table/TableMain.vue.mjs";
9
- import be from "lodash/pick";
10
- import we from "lodash/cloneDeep";
11
- import { useChannelViewportHeight as Re } from "../../hooks/use-channel-viewport-height.mjs";
12
- const ke = {
8
+ import be from "../table/TableMain.vue.mjs";
9
+ import we from "lodash/pick";
10
+ import Re from "lodash/cloneDeep";
11
+ import { useChannelViewportHeight as ke } from "../../hooks/use-channel-viewport-height.mjs";
12
+ const $e = {
13
13
  "element-loading-background": "rgba(122, 122, 122, 0.5)",
14
14
  class: "list-page"
15
- }, Oe = /* @__PURE__ */ he({
15
+ }, Te = /* @__PURE__ */ fe({
16
16
  __name: "ListPage",
17
17
  props: /* @__PURE__ */ E({
18
18
  staticQuery: { default: () => ({}) },
@@ -37,38 +37,38 @@ const ke = {
37
37
  emits: /* @__PURE__ */ E(["dataChange", "pageInfoChange"], ["update:isAutoRefresh"]),
38
38
  setup(i, { expose: N, emit: J }) {
39
39
  ge((e) => ({
40
- v990abd1c: a(X)
40
+ v9d0f4540: a(X)
41
41
  }));
42
- const n = i, w = J, R = fe(), k = o(() => !!R.header), $ = o(() => !!R.operation), m = de(i, "isAutoRefresh"), v = u({}), p = u(
42
+ const n = i, w = J, R = de(), k = o(() => !!R.header), $ = o(() => !!R.operation), m = me(i, "isAutoRefresh"), v = u({}), p = u(
43
43
  {}
44
- ), F = u(!1), s = K(), c = K(), { viewportHeightFinal: Q } = Re(n, {
44
+ ), D = u(!1), s = K(), c = K(), { viewportHeightFinal: Q } = ke(n, {
45
45
  fallback: 500
46
- }), M = u(0), P = u(0), j = u(0), z = o(() => ({
46
+ }), F = u(0), I = u(0), M = u(0), z = o(() => ({
47
47
  ...p.value,
48
48
  ...n.staticQuery
49
- })), A = u(!1), U = o(() => A.value ? M.value + 10 : 0), G = o(() => $.value ? P.value + 10 : 0), W = o(() => k.value ? j.value + 10 : 0), D = o(() => Q.value - n.refineReduceHeight), X = o(() => n.refine ? `${D.value}px` : "auto"), Y = o(() => n.refine ? D.value - U.value - G.value - W.value : void 0), I = (e, t = "search") => {
49
+ })), P = u(!1), U = o(() => P.value ? F.value + 10 : 0), G = o(() => $.value ? I.value + 10 : 0), W = o(() => k.value ? M.value + 10 : 0), j = o(() => Q.value - n.refineReduceHeight), X = o(() => n.refine ? `${j.value}px` : "auto"), Y = o(() => n.refine ? j.value - U.value - G.value - W.value : void 0), A = (e, t = "search") => {
50
50
  var r, l, d;
51
- let f = e;
52
- if (n.beforeSearch && (f = n.beforeSearch(
53
- we(e),
51
+ let g = e;
52
+ if (n.beforeSearch && (g = n.beforeSearch(
53
+ Re(e),
54
54
  t
55
- )), t === "reset" && n.clearTableFilterOnReset && ((l = (r = c.value) == null ? void 0 : r.getTableInstance()) == null || l.clearFilter()), JSON.stringify(f) === JSON.stringify(p.value))
55
+ )), t === "reset" && n.clearTableFilterOnReset && ((l = (r = c.value) == null ? void 0 : r.getTableInstance()) == null || l.clearFilter()), JSON.stringify(g) === JSON.stringify(p.value))
56
56
  return ["reset", "search"].includes(t) ? (d = c.value) == null ? void 0 : d.reload() : void 0;
57
57
  p.value = {
58
- ...f
58
+ ...g
59
59
  };
60
60
  }, Z = (e) => {
61
61
  w("dataChange", e);
62
62
  }, _ = (e) => {
63
63
  w("pageInfoChange", e);
64
64
  }, ee = (e) => {
65
- F.value = e;
65
+ D.value = e;
66
66
  }, te = (e) => {
67
- M.value = e;
67
+ F.value = e;
68
68
  }, re = (e) => {
69
- P.value = e;
69
+ I.value = e;
70
70
  }, ae = (e) => {
71
- j.value = e;
71
+ M.value = e;
72
72
  }, oe = o(() => n.list), ne = o(() => n.rowKey), V = o(() => v.value), B = {
73
73
  refresh: async (e = !1) => {
74
74
  var t;
@@ -115,7 +115,7 @@ const ke = {
115
115
  v.value[e] = t;
116
116
  }
117
117
  }, se = o(() => {
118
- const e = be(B, [
118
+ const e = we(B, [
119
119
  "triggerReset",
120
120
  "triggerSearch",
121
121
  "update"
@@ -124,45 +124,45 @@ const ke = {
124
124
  ...n.injectInfo || {},
125
125
  ...e
126
126
  };
127
- }), ie = (e) => e, le = (e) => e, ue = (e) => {
128
- A.value = e;
127
+ }), ie = (e) => e, le = (e) => e, ue = (e) => e, ce = (e) => {
128
+ P.value = e;
129
129
  };
130
- return N(B), me(
130
+ return N(B), ve(
131
131
  () => n.list,
132
132
  (e) => {
133
- const t = ye(e);
134
- v.value = t, I(He(t, e));
133
+ const t = He(e);
134
+ v.value = t, A(Se(t, e));
135
135
  },
136
136
  {
137
137
  immediate: !0
138
138
  }
139
139
  ), (e, t) => {
140
- const f = ce;
141
- return ve((C(), pe("div", ke, [
140
+ const g = he;
141
+ return pe((C(), Ce("div", $e, [
142
142
  a(k) ? (C(), O(a(L), {
143
143
  key: 0,
144
144
  class: "list-page-header",
145
145
  onHeightChange: ae
146
146
  }, {
147
147
  default: h(() => [
148
- g(e.$slots, "header", {}, void 0, !0)
148
+ f(e.$slots, "header", {}, void 0, !0)
149
149
  ]),
150
150
  _: 3
151
151
  })) : T("", !0),
152
- q(a(Ce), y({
152
+ q(a(ye), y({
153
153
  ref_key: "formSearch",
154
154
  ref: s,
155
155
  list: a(oe),
156
156
  data: a(V)
157
157
  }, i.formSearchProps, {
158
- onSearch: I,
158
+ onSearch: A,
159
159
  onHeightChange: te,
160
- onVisibleChange: ue
160
+ onVisibleChange: ce
161
161
  }), x({ _: 2 }, [
162
162
  H(i.list, (r) => ({
163
163
  name: r.key,
164
164
  fn: h((l) => [
165
- g(e.$slots, `form-${r.key}`, S(b(l)), void 0, !0)
165
+ f(e.$slots, `form-${r.key}`, S(b(l)), void 0, !0)
166
166
  ])
167
167
  }))
168
168
  ]), 1040, ["list", "data"]),
@@ -172,11 +172,11 @@ const ke = {
172
172
  onHeightChange: re
173
173
  }, {
174
174
  default: h(() => [
175
- g(e.$slots, "operation", {}, void 0, !0)
175
+ f(e.$slots, "operation", {}, void 0, !0)
176
176
  ]),
177
177
  _: 3
178
178
  })) : T("", !0),
179
- q(a(Se), y({
179
+ q(a(be), y({
180
180
  ref_key: "tableMain",
181
181
  ref: c,
182
182
  "is-auto-refresh": m.value,
@@ -194,14 +194,14 @@ const ke = {
194
194
  onPageInfoChange: _
195
195
  }), x({
196
196
  "custom-view-item": h((r) => [
197
- g(e.$slots, "custom-view-item", S(b(r)), void 0, !0)
197
+ f(e.$slots, "custom-view-item", S(b(ue(r))), void 0, !0)
198
198
  ]),
199
199
  _: 2
200
200
  }, [
201
201
  H(i.columns, (r) => ({
202
202
  name: r.prop,
203
203
  fn: h((l) => [
204
- g(e.$slots, `table-${r.prop}`, S(b(ie(l))), void 0, !0)
204
+ f(e.$slots, `table-${r.prop}`, S(b(ie(l))), void 0, !0)
205
205
  ])
206
206
  })),
207
207
  H(i.columns, (r) => ({
@@ -209,7 +209,7 @@ const ke = {
209
209
  fn: h((l) => {
210
210
  var d;
211
211
  return [
212
- g(e.$slots, `table-header-${r.columnKey || r.prop}`, y(le(l), {
212
+ f(e.$slots, `table-header-${r.columnKey || r.prop}`, y(le(l), {
213
213
  searchFormData: a(V),
214
214
  triggerSearch: (d = a(s)) == null ? void 0 : d.triggerSearch
215
215
  }), void 0, !0)
@@ -218,11 +218,11 @@ const ke = {
218
218
  }))
219
219
  ]), 1040, ["is-auto-refresh", "api", "columns", "query", "maxHeight", "rowKey", "injectInfo"])
220
220
  ])), [
221
- [f, !m.value && a(F)]
221
+ [g, !m.value && a(D)]
222
222
  ]);
223
223
  };
224
224
  }
225
225
  });
226
226
  export {
227
- Oe as default
227
+ Te as default
228
228
  };
@@ -1,5 +1,5 @@
1
- import { defineComponent as _, useModel as P, ref as $, computed as s, h as r, openBlock as o, createBlock as u, unref as d, withCtx as c, createElementVNode as C, createElementBlock as f, resolveDynamicComponent as x, createCommentVNode as k, createVNode as m, createTextVNode as T, toDisplayString as b, renderSlot as v, Fragment as z, mergeModels as D } from "vue";
2
- import { ElPopover as S, ElButton as N } from "element-plus";
1
+ import { defineComponent as V, useModel as P, ref as $, computed as s, h as r, openBlock as o, createBlock as u, unref as d, withCtx as c, createElementVNode as x, createElementBlock as f, resolveDynamicComponent as C, createCommentVNode as k, createVNode as m, createTextVNode as T, toDisplayString as _, renderSlot as v, Fragment as z, mergeModels as D } from "vue";
2
+ import { ElPopover as S, ElButton as b } from "element-plus";
3
3
  import A from "../modal/ConfirmModal.vue.mjs";
4
4
  const U = { class: "action-confirm" }, j = {
5
5
  key: 0,
@@ -7,7 +7,7 @@ const U = { class: "action-confirm" }, j = {
7
7
  }, q = {
8
8
  key: 1,
9
9
  class: "action-confirm__content"
10
- }, G = { class: "action-confirm__actions" }, K = /* @__PURE__ */ _({
10
+ }, G = { class: "action-confirm__actions" }, K = /* @__PURE__ */ V({
11
11
  __name: "ActionConfirm",
12
12
  props: /* @__PURE__ */ D({
13
13
  mode: {},
@@ -29,7 +29,7 @@ const U = { class: "action-confirm" }, j = {
29
29
  }, y = (e) => {
30
30
  if (!(e == null || e === ""))
31
31
  return typeof e == "string" ? () => r("span", e) : () => e;
32
- }, p = s(() => y(l(n.title))), h = s(() => y(l(n.content))), B = async () => {
32
+ }, p = s(() => y(l(n.title))), h = s(() => y(l(n.content))), N = async () => {
33
33
  a.value = !0;
34
34
  try {
35
35
  await Promise.resolve(n.submitFn()), i.value = !1;
@@ -39,7 +39,7 @@ const U = { class: "action-confirm" }, j = {
39
39
  }
40
40
  }, g = () => {
41
41
  i.value = !1;
42
- }, M = s(() => {
42
+ }, B = s(() => {
43
43
  const e = l(n.title);
44
44
  if (!(e === void 0 || e === ""))
45
45
  return typeof e == "string" ? e : () => r("span", e);
@@ -64,32 +64,32 @@ const U = { class: "action-confirm" }, j = {
64
64
  v(e.$slots, "default", {}, void 0, !0)
65
65
  ]),
66
66
  default: c(() => [
67
- C("div", U, [
67
+ x("div", U, [
68
68
  p.value ? (o(), f("div", j, [
69
- (o(), u(x(p.value)))
69
+ (o(), u(C(p.value)))
70
70
  ])) : k("", !0),
71
71
  h.value ? (o(), f("div", q, [
72
- (o(), u(x(h.value)))
72
+ (o(), u(C(h.value)))
73
73
  ])) : k("", !0),
74
- C("div", G, [
75
- m(d(N), {
74
+ x("div", G, [
75
+ m(d(b), {
76
76
  size: "small",
77
77
  disabled: a.value,
78
78
  onClick: g
79
79
  }, {
80
80
  default: c(() => [
81
- T(b(t.cancelText), 1)
81
+ T(_(t.cancelText), 1)
82
82
  ]),
83
83
  _: 1
84
84
  }, 8, ["disabled"]),
85
- m(d(N), {
85
+ m(d(b), {
86
86
  size: "small",
87
87
  type: t.type,
88
88
  loading: a.value,
89
- onClick: B
89
+ onClick: N
90
90
  }, {
91
91
  default: c(() => [
92
- T(b(t.confirmText), 1)
92
+ T(_(t.confirmText), 1)
93
93
  ]),
94
94
  _: 1
95
95
  }, 8, ["type", "loading"])
@@ -101,8 +101,8 @@ const U = { class: "action-confirm" }, j = {
101
101
  v(e.$slots, "default", {}, void 0, !0),
102
102
  m(A, {
103
103
  show: i.value,
104
- "onUpdate:show": w[0] || (w[0] = (V) => i.value = V),
105
- title: M.value,
104
+ "onUpdate:show": w[0] || (w[0] = (M) => i.value = M),
105
+ title: B.value,
106
106
  content: E.value,
107
107
  "confirm-text": t.confirmText,
108
108
  "cancel-text": t.cancelText,
@@ -1,8 +1,8 @@
1
1
  import o from "./ConfirmModal.vue2.mjs";
2
2
  /* empty css */
3
3
  /* empty css */
4
- import r from "../../_virtual/_plugin-vue_export-helper.mjs";
5
- const a = /* @__PURE__ */ r(o, [["__scopeId", "data-v-dfc2f447"]]);
4
+ import t from "../../_virtual/_plugin-vue_export-helper.mjs";
5
+ const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-dfc2f447"]]);
6
6
  export {
7
- a as default
7
+ f as default
8
8
  };
@@ -1,8 +1,8 @@
1
1
  import y from "./ConfirmModal.vue.mjs";
2
- import g from "../form/FormMain.vue.mjs";
3
- import { defineComponent as p, ref as b, computed as r, watch as A, openBlock as C, createBlock as M, unref as s, withCtx as W, createVNode as D, mergeProps as k } from "vue";
4
- import { stringifyFormData as v } from "../form/utils.mjs";
5
- const P = /* @__PURE__ */ p({
2
+ import p from "../form/FormMain.vue.mjs";
3
+ import { defineComponent as g, ref as b, computed as r, watch as A, openBlock as W, createBlock as C, unref as s, withCtx as M, createVNode as D, mergeProps as _ } from "vue";
4
+ import { stringifyFormData as k } from "../form/utils.mjs";
5
+ const L = /* @__PURE__ */ g({
6
6
  __name: "DetailModal",
7
7
  props: {
8
8
  data: {},
@@ -26,7 +26,7 @@ const P = /* @__PURE__ */ p({
26
26
  var o;
27
27
  return (o = d.value) == null ? void 0 : o.validate().then(async () => {
28
28
  var i, n;
29
- const e = v(t.data, t.list);
29
+ const e = k(t.data, t.list);
30
30
  console.log("confirm", e), t.type === "add" ? (await ((i = t.addApi) == null ? void 0 : i.call(t, e)), l("afterAdd", e)) : (await ((n = t.editApi) == null ? void 0 : n.call(t, e)), l("afterEdit", e));
31
31
  });
32
32
  }, w = () => {
@@ -39,8 +39,8 @@ const P = /* @__PURE__ */ p({
39
39
  o || (e = d.value) == null || e.clearValidate();
40
40
  }
41
41
  ), (o, e) => {
42
- const i = g, n = y;
43
- return C(), M(n, {
42
+ const i = p, n = y;
43
+ return W(), C(n, {
44
44
  title: s(c),
45
45
  show: a.show,
46
46
  onConfirm: h,
@@ -49,8 +49,8 @@ const P = /* @__PURE__ */ p({
49
49
  width: a.modalWidth,
50
50
  "onUpdate:show": u
51
51
  }, {
52
- default: W(() => [
53
- D(i, k({
52
+ default: M(() => [
53
+ D(i, _({
54
54
  ref_key: "formMain",
55
55
  ref: d,
56
56
  list: a.list,
@@ -66,5 +66,5 @@ const P = /* @__PURE__ */ p({
66
66
  }
67
67
  });
68
68
  export {
69
- P as default
69
+ L as default
70
70
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./TableMain.vue2.mjs";
2
2
  /* empty css */
3
- import t from "../../_virtual/_plugin-vue_export-helper.mjs";
4
- const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-feb76359"]]);
3
+ import a from "../../_virtual/_plugin-vue_export-helper.mjs";
4
+ const m = /* @__PURE__ */ a(o, [["__scopeId", "data-v-653f3a9c"]]);
5
5
  export {
6
- f as default
6
+ m as default
7
7
  };