@done-coding/admin-core 0.5.0 → 0.5.1-alpha.1
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/es/bridge/index.mjs +30 -42
- package/es/components/app-layout/AppHeader.vue.mjs +2 -2
- package/es/components/app-layout/AppHeader.vue2.mjs +16 -19
- package/es/components/data-view/DataListView.vue.mjs +2 -2
- package/es/components/data-view/DataListView.vue2.mjs +64 -53
- package/es/components/data-view/utils.mjs +36 -0
- package/es/components/display/TabsHeader.vue.mjs +2 -2
- package/es/components/display/TabsMain.vue.mjs +1 -1
- package/es/components/list-page/ListPage.vue.mjs +2 -2
- package/es/components/list-page/ListPage.vue2.mjs +44 -44
- package/es/components/misc/ActionConfirm.vue2.mjs +16 -16
- package/es/components/modal/ConfirmModal.vue.mjs +2 -2
- package/es/components/modal/DetailModal.vue.mjs +10 -10
- package/es/components/table/TableMain.vue.mjs +3 -3
- package/es/components/table/TableMain.vue2.mjs +167 -177
- package/es/components/table/TableToolbar.vue.mjs +3 -3
- package/es/components/table/TableToolbar.vue2.mjs +8 -4
- package/es/index.mjs +150 -180
- package/es/style.css +1 -1
- package/package.json +6 -5
- package/types/bridge/index.d.ts +3 -6
- package/types/bridge/route.d.ts +0 -1
- package/types/components/app-layout/AppBody.vue.d.ts +14 -34
- package/types/components/app-layout/AppBreadcrumb.vue.d.ts +6 -19
- package/types/components/app-layout/AppFooter.vue.d.ts +1 -1
- package/types/components/app-layout/AppHeader.vue.d.ts +15 -39
- package/types/components/app-layout/AppLayout.vue.d.ts +17 -50
- package/types/components/app-layout/AppPage.vue.d.ts +14 -39
- package/types/components/app-layout/AppSidebar.vue.d.ts +15 -37
- package/types/components/app-layout/index.d.ts +1 -19
- package/types/components/app-layout/types.d.ts +0 -1
- package/types/components/data-view/DataListView.vue.d.ts +9 -9
- package/types/components/data-view/DataListViewItem.vue.d.ts +19 -17
- package/types/components/data-view/index.d.ts +0 -1
- package/types/components/data-view/types.d.ts +9 -18
- package/types/components/data-view/utils.d.ts +5 -0
- package/types/components/display/ActionBtnGroup.vue.d.ts +8 -6
- package/types/components/display/HeightProvider.vue.d.ts +15 -31
- package/types/components/display/TabsHeader.vue.d.ts +27 -34
- package/types/components/display/TabsMain.vue.d.ts +33 -73
- package/types/components/display/TabsNaturalFlow.vue.d.ts +11 -5
- package/types/components/display/TabsRefineFlow.vue.d.ts +13 -31
- package/types/components/display/WatchSize.vue.d.ts +20 -32
- package/types/components/display/index.d.ts +0 -3
- package/types/components/display/types.d.ts +1 -2
- package/types/components/form/FormItem.vue.d.ts +208 -33
- package/types/components/form/FormMain.vue.d.ts +6 -7
- package/types/components/form/FormRadioGroup.vue.d.ts +14 -31
- package/types/components/form/FormSearch.vue.d.ts +5 -6
- package/types/components/form/FormSelect.vue.d.ts +19 -40
- package/types/components/form/FormTree.vue.d.ts +2037 -32
- package/types/components/form/FormVerifyCode.vue.d.ts +6 -6
- package/types/components/form/FormVerifyImage.vue.d.ts +6 -6
- package/types/components/form/form-search-utils.d.ts +0 -1
- package/types/components/form/index.d.ts +0 -3
- package/types/components/form/types.d.ts +0 -1
- package/types/components/form/utils.d.ts +0 -1
- package/types/components/list-page/ListPage.vue.d.ts +32 -33
- package/types/components/list-page/index.d.ts +0 -3
- package/types/components/list-page/types.d.ts +0 -1
- package/types/components/menu/MenuItemSub.vue.d.ts +3 -15
- package/types/components/menu/MenuTree.vue.d.ts +117 -19
- package/types/components/menu/index.d.ts +0 -3
- package/types/components/misc/ActionBtn.vue.d.ts +10 -11
- package/types/components/misc/ActionConfirm.vue.d.ts +21 -60
- package/types/components/misc/AutoRefresh.vue.d.ts +18 -24
- package/types/components/misc/TriggerAutoImport.vue.d.ts +8 -2
- package/types/components/misc/index.d.ts +4 -14
- package/types/components/misc/types.d.ts +0 -1
- package/types/components/modal/ConfirmModal.vue.d.ts +26 -83
- package/types/components/modal/DetailModal.vue.d.ts +5 -6
- package/types/components/modal/ModalPorter.vue.d.ts +13 -18
- package/types/components/modal/ModalShelf.vue.d.ts +13 -18
- package/types/components/modal/index.d.ts +0 -4
- package/types/components/modal/modal-shelf-core.d.ts +0 -1
- package/types/components/modal/modal-shelf-hierarchy.d.ts +0 -1
- package/types/components/modal/modal-shelf-types.d.ts +0 -1
- package/types/components/modal/types.d.ts +0 -1
- package/types/components/panel/PanelEditSwitch.vue.d.ts +17 -20
- package/types/components/panel/PanelItem.vue.d.ts +7 -16
- package/types/components/panel/PanelMain.vue.d.ts +5 -6
- package/types/components/panel/index.d.ts +0 -4
- package/types/components/panel/types.d.ts +0 -1
- package/types/components/table/TableMain.vue.d.ts +12 -12
- package/types/components/table/TableToolbar.vue.d.ts +17 -108
- package/types/components/table/ToolbarButtons.vue.d.ts +15 -17
- package/types/components/table/index.d.ts +0 -3
- package/types/components/table/types.d.ts +59 -19
- package/types/config/list-model.d.ts +0 -1
- package/types/helpers/form.d.ts +0 -1
- package/types/helpers/index.d.ts +0 -10
- package/types/helpers/list-helper.d.ts +0 -1
- package/types/hooks/menus-dispatch.d.ts +0 -1
- package/types/hooks/use-channel-viewport-height.d.ts +0 -1
- package/types/index.d.ts +0 -13
- package/types/inject/key.d.ts +0 -1
- package/types/router/guard/index.d.ts +0 -1
- package/types/router/guard/login.d.ts +0 -1
- package/types/router/guard/permission.d.ts +0 -1
- package/types/router/guard/types.d.ts +0 -1
- package/types/store/app.d.ts +1 -2
- package/types/store/router-permission.d.ts +0 -1
- package/types/store/user.d.ts +0 -1
- package/types/types/route.d.ts +0 -1
- package/types/utils/export.d.ts +11 -10
- package/types/utils/router.d.ts +0 -1
- package/es/components/app-layout/index.mjs +0 -32
- package/es/components/display/index.mjs +0 -18
- package/es/components/form/index.mjs +0 -32
- package/es/components/list-page/index.mjs +0 -14
- package/es/components/menu/index.mjs +0 -12
- package/es/components/misc/ActionButton.vue.mjs +0 -52
- package/es/components/misc/ActionButton.vue2.mjs +0 -4
- package/es/components/misc/ActionButtonDanger.vue.mjs +0 -32
- package/es/components/misc/ActionButtonDanger.vue2.mjs +0 -4
- package/es/components/misc/ActionButtonWarn.vue.mjs +0 -32
- package/es/components/misc/ActionButtonWarn.vue2.mjs +0 -4
- package/es/components/misc/index.mjs +0 -32
- package/es/components/modal/index.mjs +0 -23
- package/es/components/panel/index.mjs +0 -20
- package/es/components/table/index.mjs +0 -14
- package/types/components/misc/ActionButton.vue.d.ts +0 -24
- package/types/components/misc/ActionButtonDanger.vue.d.ts +0 -19
- package/types/components/misc/ActionButtonWarn.vue.d.ts +0 -19
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { ElLoadingDirective as
|
|
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
|
|
5
|
-
import
|
|
6
|
-
import { generateFormData as
|
|
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
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import { useChannelViewportHeight as
|
|
12
|
-
const
|
|
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
|
-
},
|
|
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
|
-
|
|
40
|
+
v9d0f4540: a(X)
|
|
41
41
|
}));
|
|
42
|
-
const n = i, w = J, R =
|
|
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
|
-
),
|
|
44
|
+
), D = u(!1), s = K(), c = K(), { viewportHeightFinal: Q } = ke(n, {
|
|
45
45
|
fallback: 500
|
|
46
|
-
}),
|
|
46
|
+
}), F = u(0), I = u(0), M = u(0), z = o(() => ({
|
|
47
47
|
...p.value,
|
|
48
48
|
...n.staticQuery
|
|
49
|
-
})),
|
|
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
|
|
52
|
-
if (n.beforeSearch && (
|
|
53
|
-
|
|
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(
|
|
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
|
-
...
|
|
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
|
-
|
|
65
|
+
D.value = e;
|
|
66
66
|
}, te = (e) => {
|
|
67
|
-
|
|
67
|
+
F.value = e;
|
|
68
68
|
}, re = (e) => {
|
|
69
|
-
|
|
69
|
+
I.value = e;
|
|
70
70
|
}, ae = (e) => {
|
|
71
|
-
|
|
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 =
|
|
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
|
-
|
|
127
|
+
}), ie = (e) => e, le = (e) => e, ue = (e) => e, ce = (e) => {
|
|
128
|
+
P.value = e;
|
|
129
129
|
};
|
|
130
|
-
return N(B),
|
|
130
|
+
return N(B), ve(
|
|
131
131
|
() => n.list,
|
|
132
132
|
(e) => {
|
|
133
|
-
const t =
|
|
134
|
-
v.value = t,
|
|
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
|
|
141
|
-
return
|
|
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
|
-
|
|
148
|
+
f(e.$slots, "header", {}, void 0, !0)
|
|
149
149
|
]),
|
|
150
150
|
_: 3
|
|
151
151
|
})) : T("", !0),
|
|
152
|
-
q(a(
|
|
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:
|
|
158
|
+
onSearch: A,
|
|
159
159
|
onHeightChange: te,
|
|
160
|
-
onVisibleChange:
|
|
160
|
+
onVisibleChange: ce
|
|
161
161
|
}), x({ _: 2 }, [
|
|
162
162
|
H(i.list, (r) => ({
|
|
163
163
|
name: r.key,
|
|
164
164
|
fn: h((l) => [
|
|
165
|
-
|
|
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
|
-
|
|
175
|
+
f(e.$slots, "operation", {}, void 0, !0)
|
|
176
176
|
]),
|
|
177
177
|
_: 3
|
|
178
178
|
})) : T("", !0),
|
|
179
|
-
q(a(
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
[
|
|
221
|
+
[g, !m.value && a(D)]
|
|
222
222
|
]);
|
|
223
223
|
};
|
|
224
224
|
}
|
|
225
225
|
});
|
|
226
226
|
export {
|
|
227
|
-
|
|
227
|
+
Te as default
|
|
228
228
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ElPopover as S, ElButton as
|
|
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))),
|
|
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
|
-
},
|
|
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
|
-
|
|
67
|
+
x("div", U, [
|
|
68
68
|
p.value ? (o(), f("div", j, [
|
|
69
|
-
(o(), u(
|
|
69
|
+
(o(), u(C(p.value)))
|
|
70
70
|
])) : k("", !0),
|
|
71
71
|
h.value ? (o(), f("div", q, [
|
|
72
|
-
(o(), u(
|
|
72
|
+
(o(), u(C(h.value)))
|
|
73
73
|
])) : k("", !0),
|
|
74
|
-
|
|
75
|
-
m(d(
|
|
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(
|
|
81
|
+
T(_(t.cancelText), 1)
|
|
82
82
|
]),
|
|
83
83
|
_: 1
|
|
84
84
|
}, 8, ["disabled"]),
|
|
85
|
-
m(d(
|
|
85
|
+
m(d(b), {
|
|
86
86
|
size: "small",
|
|
87
87
|
type: t.type,
|
|
88
88
|
loading: a.value,
|
|
89
|
-
onClick:
|
|
89
|
+
onClick: N
|
|
90
90
|
}, {
|
|
91
91
|
default: c(() => [
|
|
92
|
-
T(
|
|
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] = (
|
|
105
|
-
title:
|
|
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
|
|
5
|
-
const a = /* @__PURE__ */
|
|
4
|
+
import t from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
5
|
+
const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-8a29e4c8"]]);
|
|
6
6
|
export {
|
|
7
7
|
a as default
|
|
8
8
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import y from "./ConfirmModal.vue.mjs";
|
|
2
|
-
import
|
|
3
|
-
import { defineComponent as
|
|
4
|
-
import { stringifyFormData as
|
|
5
|
-
const
|
|
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 =
|
|
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 =
|
|
43
|
-
return
|
|
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:
|
|
53
|
-
D(i,
|
|
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
|
-
|
|
69
|
+
L as default
|
|
70
70
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./TableMain.vue2.mjs";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const
|
|
3
|
+
import a from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
+
const m = /* @__PURE__ */ a(o, [["__scopeId", "data-v-653f3a9c"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|