@done-coding/admin-core 0.1.1-alpha.6 → 0.1.1-alpha.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.
- package/es/components/form/FormItem.vue.mjs +2 -2
- package/es/components/form/FormItem.vue2.mjs +10 -7
- package/es/components/form/FormMain.vue.mjs +32 -32
- package/es/components/form/FormRadioGroup.vue.mjs +57 -20
- package/es/components/form/index.mjs +22 -28
- package/es/components/form/utils.mjs +83 -76
- package/es/components/list-page/ListPage.vue.mjs +2 -2
- package/es/components/list-page/ListPage.vue2.mjs +88 -90
- package/es/components/modal/DetailModal.vue.mjs +33 -32
- package/es/index.mjs +93 -96
- package/es/style.css +1 -1
- package/package.json +2 -2
- package/types/components/form/FormRadioGroup.vue.d.ts +31 -19
- package/types/components/form/index.d.ts +1 -3
- package/types/components/form/types.d.ts +13 -4
- package/types/components/form/utils.d.ts +15 -3
- package/types/components/list-page/ListPage.vue.d.ts +0 -2
- package/types/components/list-page/types.d.ts +0 -4
- package/types/components/modal/types.d.ts +2 -0
- package/es/components/form/FormDatePicker.vue.mjs +0 -7
- package/es/components/form/FormDatePicker.vue2.mjs +0 -50
- package/es/components/form/FormRadio.vue.mjs +0 -69
- package/es/components/form/FormRadio.vue2.mjs +0 -4
- package/types/components/form/FormDatePicker.vue.d.ts +0 -18
- package/types/components/form/FormRadio.vue.d.ts +0 -35
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { ElLoadingDirective as
|
|
1
|
+
import { ElLoadingDirective as ce } 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
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import { BODY_CONTENT_VIEWPORT_HEIGHT as
|
|
12
|
-
const
|
|
4
|
+
import { defineComponent as he, useCssVars as fe, unref as r, useSlots as ge, computed as o, useModel as de, ref as u, shallowRef as T, inject as me, watch as ve, withDirectives as pe, openBlock as y, createElementBlock as ye, createBlock as O, withCtx as g, renderSlot as d, createCommentVNode as E, createVNode as V, mergeProps as H, createSlots as x, renderList as S, normalizeProps as B, guardReactiveProps as K, mergeModels as N } from "vue";
|
|
5
|
+
import He from "../form/FormSearch.vue.mjs";
|
|
6
|
+
import { generateFormData as Se, stringifyFormData as Ce } from "../form/utils.mjs";
|
|
7
|
+
import q from "../display/WatchSize.vue.mjs";
|
|
8
|
+
import be from "../table/TableMain.vue.mjs";
|
|
9
|
+
import Re from "lodash/pick";
|
|
10
|
+
import we from "lodash/cloneDeep";
|
|
11
|
+
import { BODY_CONTENT_VIEWPORT_HEIGHT as Ie } from "../../inject/key.mjs";
|
|
12
|
+
const Me = {
|
|
13
13
|
"element-loading-background": "rgba(122, 122, 122, 0.5)",
|
|
14
14
|
class: "list-page"
|
|
15
|
-
},
|
|
15
|
+
}, xe = /* @__PURE__ */ he({
|
|
16
16
|
__name: "ListPage",
|
|
17
|
-
props: /* @__PURE__ */
|
|
17
|
+
props: /* @__PURE__ */ N({
|
|
18
18
|
staticQuery: { default: () => ({}) },
|
|
19
19
|
formSearchProps: {},
|
|
20
20
|
columns: {},
|
|
@@ -22,8 +22,6 @@ const be = {
|
|
|
22
22
|
refine: { type: Boolean, default: !0 },
|
|
23
23
|
refineReduceHeight: { default: 0 },
|
|
24
24
|
tableMainProps: {},
|
|
25
|
-
showOperation: { type: Boolean, default: !1 },
|
|
26
|
-
showHeader: { type: Boolean, default: !1 },
|
|
27
25
|
list: { default: () => [] },
|
|
28
26
|
api: {},
|
|
29
27
|
query: {},
|
|
@@ -34,46 +32,46 @@ const be = {
|
|
|
34
32
|
isAutoRefresh: { type: Boolean },
|
|
35
33
|
isAutoRefreshModifiers: {}
|
|
36
34
|
}),
|
|
37
|
-
emits: /* @__PURE__ */
|
|
38
|
-
setup(
|
|
39
|
-
|
|
40
|
-
|
|
35
|
+
emits: /* @__PURE__ */ N(["dataChange", "pageInfoChange"], ["update:isAutoRefresh"]),
|
|
36
|
+
setup(s, { expose: L, emit: J }) {
|
|
37
|
+
fe((e) => ({
|
|
38
|
+
d5119b7c: r(Y)
|
|
41
39
|
}));
|
|
42
|
-
const
|
|
40
|
+
const n = s, C = J, b = ge(), R = o(() => !!b.header), w = o(() => !!b.operation), m = de(s, "isAutoRefresh"), v = u({}), p = u(
|
|
43
41
|
{}
|
|
44
|
-
),
|
|
45
|
-
|
|
42
|
+
), I = u(!1), i = T(), c = T(), Q = me(
|
|
43
|
+
Ie,
|
|
46
44
|
500
|
|
47
|
-
),
|
|
45
|
+
), M = u(0), P = u(0), j = u(0), z = o(() => ({
|
|
48
46
|
...p.value,
|
|
49
|
-
...
|
|
50
|
-
})),
|
|
51
|
-
|
|
47
|
+
...n.staticQuery
|
|
48
|
+
})), k = u(!1), G = o(() => k.value ? M.value + 10 : 0), U = o(() => w.value ? P.value + 10 : 0), W = o(() => R.value ? j.value + 10 : 0), D = o(() => Q.value - n.refineReduceHeight), Y = o(() => n.refine ? `${D.value}px` : "auto"), _ = o(() => n.refine ? Math.max(
|
|
49
|
+
D.value - G.value - U.value - W.value,
|
|
52
50
|
200
|
|
53
|
-
) : void 0),
|
|
54
|
-
var
|
|
51
|
+
) : void 0), $ = (e, t = "search") => {
|
|
52
|
+
var a, l, f;
|
|
55
53
|
let h = e;
|
|
56
|
-
if (
|
|
57
|
-
|
|
54
|
+
if (n.beforeSearch && (h = n.beforeSearch(
|
|
55
|
+
we(e),
|
|
58
56
|
t
|
|
59
|
-
)), t === "reset" &&
|
|
57
|
+
)), t === "reset" && n.clearTableFilterOnReset && ((l = (a = c.value) == null ? void 0 : a.getTableInstance()) == null || l.clearFilter()), JSON.stringify(h) === JSON.stringify(p.value))
|
|
60
58
|
return ["reset", "search"].includes(t) ? (f = c.value) == null ? void 0 : f.reload() : void 0;
|
|
61
59
|
p.value = {
|
|
62
60
|
...h
|
|
63
61
|
};
|
|
64
|
-
}, W = (e) => {
|
|
65
|
-
S("dataChange", e);
|
|
66
|
-
}, Y = (e) => {
|
|
67
|
-
S("pageInfoChange", e);
|
|
68
62
|
}, X = (e) => {
|
|
69
|
-
|
|
63
|
+
C("dataChange", e);
|
|
70
64
|
}, Z = (e) => {
|
|
71
|
-
|
|
72
|
-
}, _ = (e) => {
|
|
73
|
-
R.value = e;
|
|
65
|
+
C("pageInfoChange", e);
|
|
74
66
|
}, ee = (e) => {
|
|
75
67
|
I.value = e;
|
|
76
|
-
}, te =
|
|
68
|
+
}, te = (e) => {
|
|
69
|
+
M.value = e;
|
|
70
|
+
}, re = (e) => {
|
|
71
|
+
P.value = e;
|
|
72
|
+
}, ae = (e) => {
|
|
73
|
+
j.value = e;
|
|
74
|
+
}, oe = o(() => n.list), ne = o(() => n.rowKey), A = o(() => v.value), F = {
|
|
77
75
|
refresh: async (e = !1) => {
|
|
78
76
|
var t;
|
|
79
77
|
return (t = c.value) == null ? void 0 : t.refresh(e);
|
|
@@ -110,110 +108,110 @@ const be = {
|
|
|
110
108
|
update: (e, t) => {
|
|
111
109
|
v.value[e] = t;
|
|
112
110
|
}
|
|
113
|
-
},
|
|
114
|
-
const e =
|
|
111
|
+
}, se = o(() => {
|
|
112
|
+
const e = Re(F, [
|
|
115
113
|
"triggerReset",
|
|
116
114
|
"triggerSearch",
|
|
117
115
|
"update"
|
|
118
116
|
]);
|
|
119
117
|
return {
|
|
120
|
-
...
|
|
118
|
+
...n.injectInfo || {},
|
|
121
119
|
...e
|
|
122
120
|
};
|
|
123
|
-
}),
|
|
124
|
-
|
|
121
|
+
}), ie = (e) => e, le = (e) => e, ue = (e) => {
|
|
122
|
+
k.value = e;
|
|
125
123
|
};
|
|
126
|
-
return
|
|
127
|
-
() =>
|
|
124
|
+
return L(F), ve(
|
|
125
|
+
() => n.list,
|
|
128
126
|
(e) => {
|
|
129
|
-
const t =
|
|
130
|
-
v.value = t,
|
|
127
|
+
const t = Se(e);
|
|
128
|
+
v.value = t, $(Ce(t, e));
|
|
131
129
|
},
|
|
132
130
|
{
|
|
133
131
|
immediate: !0
|
|
134
132
|
}
|
|
135
133
|
), (e, t) => {
|
|
136
|
-
const h =
|
|
137
|
-
return
|
|
138
|
-
|
|
134
|
+
const h = ce;
|
|
135
|
+
return pe((y(), ye("div", Me, [
|
|
136
|
+
r(R) ? (y(), O(r(q), {
|
|
139
137
|
key: 0,
|
|
140
138
|
class: "list-page-header",
|
|
141
|
-
onHeightChange:
|
|
139
|
+
onHeightChange: ae
|
|
142
140
|
}, {
|
|
143
141
|
default: g(() => [
|
|
144
142
|
d(e.$slots, "header", {}, void 0, !0)
|
|
145
143
|
]),
|
|
146
144
|
_: 3
|
|
147
|
-
})) :
|
|
148
|
-
|
|
145
|
+
})) : E("", !0),
|
|
146
|
+
V(r(He), H({
|
|
149
147
|
ref_key: "formSearch",
|
|
150
148
|
ref: i,
|
|
151
|
-
list:
|
|
152
|
-
data:
|
|
153
|
-
},
|
|
154
|
-
onSearch:
|
|
155
|
-
onHeightChange:
|
|
156
|
-
onVisibleChange:
|
|
157
|
-
}),
|
|
158
|
-
|
|
159
|
-
name:
|
|
149
|
+
list: r(oe),
|
|
150
|
+
data: r(A)
|
|
151
|
+
}, s.formSearchProps, {
|
|
152
|
+
onSearch: $,
|
|
153
|
+
onHeightChange: te,
|
|
154
|
+
onVisibleChange: ue
|
|
155
|
+
}), x({ _: 2 }, [
|
|
156
|
+
S(s.list, (a) => ({
|
|
157
|
+
name: a.key,
|
|
160
158
|
fn: g((l) => [
|
|
161
|
-
d(e.$slots, `form-${
|
|
159
|
+
d(e.$slots, `form-${a.key}`, B(K(l)), void 0, !0)
|
|
162
160
|
])
|
|
163
161
|
}))
|
|
164
162
|
]), 1040, ["list", "data"]),
|
|
165
|
-
|
|
163
|
+
r(w) ? (y(), O(r(q), {
|
|
166
164
|
key: 1,
|
|
167
165
|
class: "list-page-operation",
|
|
168
|
-
onHeightChange:
|
|
166
|
+
onHeightChange: re
|
|
169
167
|
}, {
|
|
170
168
|
default: g(() => [
|
|
171
169
|
d(e.$slots, "operation", {}, void 0, !0)
|
|
172
170
|
]),
|
|
173
171
|
_: 3
|
|
174
|
-
})) :
|
|
175
|
-
|
|
172
|
+
})) : E("", !0),
|
|
173
|
+
V(r(be), H({
|
|
176
174
|
ref_key: "tableMain",
|
|
177
175
|
ref: c,
|
|
178
176
|
"is-auto-refresh": m.value,
|
|
179
|
-
"onUpdate:isAutoRefresh": t[0] || (t[0] = (
|
|
180
|
-
api:
|
|
181
|
-
columns:
|
|
182
|
-
query:
|
|
183
|
-
maxHeight:
|
|
184
|
-
rowKey:
|
|
185
|
-
},
|
|
177
|
+
"onUpdate:isAutoRefresh": t[0] || (t[0] = (a) => m.value = a),
|
|
178
|
+
api: s.api,
|
|
179
|
+
columns: s.columns,
|
|
180
|
+
query: r(z),
|
|
181
|
+
maxHeight: r(_),
|
|
182
|
+
rowKey: r(ne)
|
|
183
|
+
}, s.tableMainProps, {
|
|
186
184
|
refine: !1,
|
|
187
|
-
injectInfo:
|
|
188
|
-
onLoadingChange:
|
|
189
|
-
onDataChange:
|
|
190
|
-
onPageInfoChange:
|
|
191
|
-
}),
|
|
192
|
-
|
|
193
|
-
name:
|
|
185
|
+
injectInfo: r(se),
|
|
186
|
+
onLoadingChange: ee,
|
|
187
|
+
onDataChange: X,
|
|
188
|
+
onPageInfoChange: Z
|
|
189
|
+
}), x({ _: 2 }, [
|
|
190
|
+
S(s.columns, (a) => ({
|
|
191
|
+
name: a.prop,
|
|
194
192
|
fn: g((l) => [
|
|
195
|
-
d(e.$slots, `table-${
|
|
193
|
+
d(e.$slots, `table-${a.prop}`, B(K(ie(l))), void 0, !0)
|
|
196
194
|
])
|
|
197
195
|
})),
|
|
198
|
-
|
|
199
|
-
name: `header-${
|
|
196
|
+
S(s.columns, (a) => ({
|
|
197
|
+
name: `header-${a.prop}`,
|
|
200
198
|
fn: g((l) => {
|
|
201
199
|
var f;
|
|
202
200
|
return [
|
|
203
|
-
d(e.$slots, `table-header-${
|
|
204
|
-
searchFormData:
|
|
205
|
-
triggerSearch: (f =
|
|
201
|
+
d(e.$slots, `table-header-${a.columnKey || a.prop}`, H(le(l), {
|
|
202
|
+
searchFormData: r(A),
|
|
203
|
+
triggerSearch: (f = r(i)) == null ? void 0 : f.triggerSearch
|
|
206
204
|
}), void 0, !0)
|
|
207
205
|
];
|
|
208
206
|
})
|
|
209
207
|
}))
|
|
210
208
|
]), 1040, ["is-auto-refresh", "api", "columns", "query", "maxHeight", "rowKey", "injectInfo"])
|
|
211
209
|
])), [
|
|
212
|
-
[h, !m.value &&
|
|
210
|
+
[h, !m.value && r(I)]
|
|
213
211
|
]);
|
|
214
212
|
};
|
|
215
213
|
}
|
|
216
214
|
});
|
|
217
215
|
export {
|
|
218
|
-
|
|
216
|
+
xe as default
|
|
219
217
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import y from "./ConfirmModal.vue.mjs";
|
|
2
|
-
import
|
|
3
|
-
import { defineComponent as
|
|
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
4
|
import { stringifyFormData as v } from "../form/utils.mjs";
|
|
5
|
-
const
|
|
5
|
+
const P = /* @__PURE__ */ p({
|
|
6
6
|
__name: "DetailModal",
|
|
7
7
|
props: {
|
|
8
8
|
data: {},
|
|
@@ -15,49 +15,50 @@ const B = "80px", $ = /* @__PURE__ */ g({
|
|
|
15
15
|
modalWidth: { default: 600 },
|
|
16
16
|
formLayout: { default: () => ({ span: 24 }) },
|
|
17
17
|
formProps: {},
|
|
18
|
-
formRowGutter: {}
|
|
18
|
+
formRowGutter: {},
|
|
19
|
+
labelWidth: { default: "auto" }
|
|
19
20
|
},
|
|
20
21
|
emits: ["update:show", "afterAdd", "afterEdit"],
|
|
21
|
-
setup(
|
|
22
|
-
const t =
|
|
23
|
-
|
|
24
|
-
},
|
|
25
|
-
var
|
|
26
|
-
return (
|
|
22
|
+
setup(a, { emit: f }) {
|
|
23
|
+
const t = a, l = f, d = b(), m = r(() => t.data), c = r(() => `${t.type === "add" ? "新增" : "编辑"}${t.subTitle || ""}`), u = (o) => {
|
|
24
|
+
l("update:show", o);
|
|
25
|
+
}, h = () => {
|
|
26
|
+
var o;
|
|
27
|
+
return (o = d.value) == null ? void 0 : o.validate().then(async () => {
|
|
27
28
|
var i, n;
|
|
28
|
-
const
|
|
29
|
-
console.log("confirm",
|
|
29
|
+
const e = v(t.data, t.list);
|
|
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));
|
|
30
31
|
});
|
|
31
|
-
},
|
|
32
|
+
}, w = () => {
|
|
32
33
|
console.log("cancel");
|
|
33
34
|
};
|
|
34
|
-
return
|
|
35
|
+
return A(
|
|
35
36
|
() => t.show,
|
|
36
|
-
(
|
|
37
|
-
var
|
|
38
|
-
|
|
37
|
+
(o) => {
|
|
38
|
+
var e;
|
|
39
|
+
o || (e = d.value) == null || e.clearValidate();
|
|
39
40
|
}
|
|
40
|
-
), (
|
|
41
|
-
const i =
|
|
42
|
-
return
|
|
41
|
+
), (o, e) => {
|
|
42
|
+
const i = g, n = y;
|
|
43
|
+
return C(), M(n, {
|
|
43
44
|
title: s(c),
|
|
44
|
-
show:
|
|
45
|
-
onConfirm:
|
|
46
|
-
onCancel:
|
|
45
|
+
show: a.show,
|
|
46
|
+
onConfirm: h,
|
|
47
|
+
onCancel: w,
|
|
47
48
|
useLoading: "",
|
|
48
|
-
width:
|
|
49
|
+
width: a.modalWidth,
|
|
49
50
|
"onUpdate:show": u
|
|
50
51
|
}, {
|
|
51
|
-
default:
|
|
52
|
-
|
|
52
|
+
default: W(() => [
|
|
53
|
+
D(i, k({
|
|
53
54
|
ref_key: "formMain",
|
|
54
55
|
ref: d,
|
|
55
|
-
list:
|
|
56
|
+
list: a.list,
|
|
56
57
|
data: s(m),
|
|
57
|
-
layout:
|
|
58
|
-
labelWidth:
|
|
59
|
-
"row-gutter":
|
|
60
|
-
},
|
|
58
|
+
layout: a.formLayout,
|
|
59
|
+
labelWidth: a.labelWidth,
|
|
60
|
+
"row-gutter": a.formRowGutter
|
|
61
|
+
}, a.formProps), null, 16, ["list", "data", "layout", "labelWidth", "row-gutter"])
|
|
61
62
|
]),
|
|
62
63
|
_: 1
|
|
63
64
|
}, 8, ["title", "show", "width"]);
|
|
@@ -65,5 +66,5 @@ const B = "80px", $ = /* @__PURE__ */ g({
|
|
|
65
66
|
}
|
|
66
67
|
});
|
|
67
68
|
export {
|
|
68
|
-
|
|
69
|
+
P as default
|
|
69
70
|
};
|
package/es/index.mjs
CHANGED
|
@@ -8,117 +8,114 @@ import { listPageInstall as s } from "./components/list-page/index.mjs";
|
|
|
8
8
|
import { default as E } from "./components/misc/ActionButton.vue.mjs";
|
|
9
9
|
import { default as M } from "./components/misc/ActionButtonDanger.vue.mjs";
|
|
10
10
|
import { default as A } from "./components/misc/ActionButtonWarn.vue.mjs";
|
|
11
|
-
import { default as
|
|
12
|
-
import { default as
|
|
13
|
-
import { default as
|
|
14
|
-
import { default as D } from "./components/form/
|
|
15
|
-
import { default as
|
|
16
|
-
import { default as N } from "./components/form/
|
|
17
|
-
import { default as
|
|
18
|
-
import { default as
|
|
19
|
-
import { default as U } from "./components/
|
|
20
|
-
import { default as
|
|
21
|
-
import { default as
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import { default as
|
|
31
|
-
import { default as
|
|
32
|
-
import {
|
|
33
|
-
import { default as
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import { useMenusDataDispatch as lt } from "./hooks/menus-dispatch.mjs";
|
|
46
|
-
import { useTimeout as it } from "./hooks/timeout.mjs";
|
|
11
|
+
import { default as F } from "./components/modal/DetailModal.vue.mjs";
|
|
12
|
+
import { default as L } from "./components/form/FormMain.vue.mjs";
|
|
13
|
+
import { default as O } from "./components/form/FormRadioGroup.vue.mjs";
|
|
14
|
+
import { default as D } from "./components/form/FormSelect.vue.mjs";
|
|
15
|
+
import { default as y } from "./components/form/FormTree.vue.mjs";
|
|
16
|
+
import { default as N } from "./components/form/FormVerifyCode.vue.mjs";
|
|
17
|
+
import { default as V } from "./components/menu/MenuItemSub.vue.mjs";
|
|
18
|
+
import { default as w } from "./components/menu/MenuTree.vue.mjs";
|
|
19
|
+
import { default as U } from "./components/display/TabsMain.vue.mjs";
|
|
20
|
+
import { default as H } from "./components/misc/TriggerAutoImport.vue.mjs";
|
|
21
|
+
import { default as k } from "./components/display/WatchSize.vue.mjs";
|
|
22
|
+
import { APP_API_LIST_MODEL_KEY_CONFIG as X } from "./config/list-model.mjs";
|
|
23
|
+
import { default as Q } from "./components/misc/AutoRefresh.vue.mjs";
|
|
24
|
+
import { BODY_CONTENT_VIEWPORT_HEIGHT as q } from "./inject/key.mjs";
|
|
25
|
+
import { default as Z } from "./components/modal/ConfirmModal.vue.mjs";
|
|
26
|
+
import { EXPORT_MAX_LIMIT as ee, OPERATE_COLUMN_PROP as te, exportCSV as oe, pickExportColumns as re } from "./utils/export.mjs";
|
|
27
|
+
import { FORM_CONFIG_SELECT_ALL_VALUE as me, getConfirmPasswordRule as fe, passwordRule as se, setFormComponentType as le } from "./helpers/form.mjs";
|
|
28
|
+
import { FORM_ITEM_CHANGE_LOADING as pe, generateFormData as ie, getBlurSubmit as ne, getChangeSubmit as xe, getDatePickerShortcuts as de, getEnterSubmit as ce, getPlaceholder as Ie, getVModelSugar as ge, parseFormData as Ee, resolveFormLayout as _e, setInputComponent as Me, setSelectComponent as Te, stringifyFormData as Ae, swiftFormItemConfig as Ce } from "./components/form/utils.mjs";
|
|
29
|
+
import { default as Re } from "./components/form/FormSearch.vue.mjs";
|
|
30
|
+
import { default as Se } from "./components/form/FormVerifyImage.vue.mjs";
|
|
31
|
+
import { default as Pe } from "./components/list-page/ListPage.vue.mjs";
|
|
32
|
+
import { ROUTE_MODULE_LEVEL as he, TabsMainReplaceQueryKey as ye } from "./config/route.mjs";
|
|
33
|
+
import { default as Ne } from "./components/table/TableMain.vue.mjs";
|
|
34
|
+
import { countAll as Ve, createListApi as ve, fetchListAll as we } from "./helpers/list-helper.mjs";
|
|
35
|
+
import { createGenerateRouteMetaRawTree as Ue } from "./helpers/route.mjs";
|
|
36
|
+
import { createStorageWithNamespace as He } from "./helpers/storage.mjs";
|
|
37
|
+
import { createUseState as ke } from "./helpers/state.mjs";
|
|
38
|
+
import { flatRouteMetaResolveRaw as Xe, getRoutePermissionKey as Ye } from "./utils/router.mjs";
|
|
39
|
+
import { getId as je } from "./utils/id.mjs";
|
|
40
|
+
import { timeCountDown as Je } from "./utils/time.mjs";
|
|
41
|
+
import { useActivated as $e, useActivatedEvent as et, useActivatedExec as tt } from "./hooks/activated.mjs";
|
|
42
|
+
import { useFeelSize as rt } from "./hooks/feel-size.mjs";
|
|
43
|
+
import { useMenusDataDispatch as mt } from "./hooks/menus-dispatch.mjs";
|
|
44
|
+
import { useTimeout as st } from "./hooks/timeout.mjs";
|
|
47
45
|
const c = {
|
|
48
46
|
install(e) {
|
|
49
47
|
e.use(t), e.use(o), e.use(r), e.use(a), e.use(m), e.use(f), e.use(s);
|
|
50
48
|
}
|
|
51
49
|
};
|
|
52
50
|
export {
|
|
53
|
-
|
|
51
|
+
X as APP_API_LIST_MODEL_KEY_CONFIG,
|
|
54
52
|
E as ActionButton,
|
|
55
53
|
M as ActionButtonDanger,
|
|
56
54
|
A as ActionButtonWarn,
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
O as
|
|
66
|
-
|
|
67
|
-
D as
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
He as
|
|
85
|
-
|
|
86
|
-
ze as createStorageWithNamespace,
|
|
87
|
-
Ye as createUseState,
|
|
55
|
+
Q as AutoRefresh,
|
|
56
|
+
q as BODY_CONTENT_VIEWPORT_HEIGHT,
|
|
57
|
+
Z as ConfirmModal,
|
|
58
|
+
F as DetailModal,
|
|
59
|
+
ee as EXPORT_MAX_LIMIT,
|
|
60
|
+
me as FORM_CONFIG_SELECT_ALL_VALUE,
|
|
61
|
+
pe as FORM_ITEM_CHANGE_LOADING,
|
|
62
|
+
L as FormMain,
|
|
63
|
+
O as FormRadioGroup,
|
|
64
|
+
Re as FormSearch,
|
|
65
|
+
D as FormSelect,
|
|
66
|
+
y as FormTree,
|
|
67
|
+
N as FormVerifyCode,
|
|
68
|
+
Se as FormVerifyImage,
|
|
69
|
+
Pe as ListPage,
|
|
70
|
+
V as MenuItemSub,
|
|
71
|
+
w as MenuTree,
|
|
72
|
+
te as OPERATE_COLUMN_PROP,
|
|
73
|
+
he as ROUTE_MODULE_LEVEL,
|
|
74
|
+
Ne as TableMain,
|
|
75
|
+
U as TabsMain,
|
|
76
|
+
ye as TabsMainReplaceQueryKey,
|
|
77
|
+
H as TriggerAutoImport,
|
|
78
|
+
k as WatchSize,
|
|
79
|
+
Ve as countAll,
|
|
80
|
+
Ue as createGenerateRouteMetaRawTree,
|
|
81
|
+
ve as createListApi,
|
|
82
|
+
He as createStorageWithNamespace,
|
|
83
|
+
ke as createUseState,
|
|
88
84
|
r as displayInstall,
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
85
|
+
oe as exportCSV,
|
|
86
|
+
we as fetchListAll,
|
|
87
|
+
Xe as flatRouteMetaResolveRaw,
|
|
92
88
|
t as formInstall,
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
89
|
+
ie as generateFormData,
|
|
90
|
+
ne as getBlurSubmit,
|
|
91
|
+
xe as getChangeSubmit,
|
|
92
|
+
fe as getConfirmPasswordRule,
|
|
93
|
+
de as getDatePickerShortcuts,
|
|
94
|
+
ce as getEnterSubmit,
|
|
95
|
+
je as getId,
|
|
96
|
+
Ie as getPlaceholder,
|
|
97
|
+
Ye as getRoutePermissionKey,
|
|
98
|
+
ge as getVModelSugar,
|
|
103
99
|
c as installComponents,
|
|
104
100
|
s as listPageInstall,
|
|
105
101
|
o as menuInstall,
|
|
106
102
|
a as miscInstall,
|
|
107
103
|
m as modalInstall,
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
104
|
+
Ee as parseFormData,
|
|
105
|
+
se as passwordRule,
|
|
106
|
+
re as pickExportColumns,
|
|
107
|
+
_e as resolveFormLayout,
|
|
108
|
+
le as setFormComponentType,
|
|
109
|
+
Me as setInputComponent,
|
|
110
|
+
Te as setSelectComponent,
|
|
111
|
+
Ae as stringifyFormData,
|
|
112
|
+
Ce as swiftFormItemConfig,
|
|
116
113
|
f as tableInstall,
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
114
|
+
Je as timeCountDown,
|
|
115
|
+
$e as useActivated,
|
|
116
|
+
et as useActivatedEvent,
|
|
117
|
+
tt as useActivatedExec,
|
|
118
|
+
rt as useFeelSize,
|
|
119
|
+
mt as useMenusDataDispatch,
|
|
120
|
+
st as useTimeout
|
|
124
121
|
};
|
package/es/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.form-item-tip[data-v-
|
|
1
|
+
.form-item-tip[data-v-0dd66b41]{text-align:left;line-height:1.5;font-size:12px}.form-item-label-hide[data-v-0dd66b41] .el-form-item__label-wrap{display:none}.form-search_show[data-v-8896356d]{margin-bottom:10px}.form-search .btn-box[data-v-8896356d]{padding-left:20px}.form-search[data-v-8896356d] .el-col{padding-left:14px}.form-verify-image[data-v-a4baf877] .el-input__suffix-inner *{margin:0}.form-verify-image-suffix[data-v-a4baf877]{position:absolute;height:100%;border-radius:var(--el-input-border-radius, var(--el-border-radius-base));top:50%;transform:translateY(-50%);overflow:hidden;cursor:pointer}.form-verify-image-suffix-main[data-v-a4baf877]{position:absolute;left:0;top:0;width:100%;height:100%;background-color:#f4f4f4}.auto-refresh[data-v-9d78ca06]{display:flex;align-items:center;gap:8px}.auto-refresh-label[data-v-9d78ca06]{font-size:13px;color:var(--el-text-color-regular)}.auto-refresh-interval[data-v-9d78ca06]{width:80px}.confirm-dialog .content[data-v-2f0c870e]{overflow-x:hidden;overflow-y:auto;max-height:calc(100vh - 200px)}.confirm-dialog .btn[data-v-2f0c870e]{width:150px;height:40px;border-radius:4px}.confirm-dialog .main[data-v-2f0c870e]{position:relative;text-align:center}.confirm-dialog .main .close-box[data-v-2f0c870e]{position:absolute;top:0;right:0;cursor:pointer;z-index:2}.confirm-dialog .main .shim[data-v-2f0c870e]{position:relative;z-index:1}.confirm-dialog .main .shim .title[data-v-2f0c870e]{font-size:18px;font-weight:500}.confirm-dialog .main .shim .content[data-v-2f0c870e]{font-size:16px;margin-top:15px}.confirm-dialog .main .shim .footer[data-v-2f0c870e]{display:flex;justify-content:center;align-items:center;padding-top:5px}.confirm-dialog .main .shim .footer>.btn[data-v-2f0c870e]:not(:last-child){margin-right:30px}.confirm-dialog .main .shim .footer[reverse=true][data-v-2f0c870e]{flex-direction:row-reverse}.confirm-dialog .main .shim .footer[reverse=true]>.btn[data-v-2f0c870e]:not(:last-child){margin-right:0;margin-left:30px}.confirm-dialog .el-dialog__header,.confirm-dialog .el-dialog__body{padding:0;background-color:transparent}.table-toolbar[data-v-90cd7b54]{display:flex;justify-content:space-between;align-items:center;padding-bottom:8px;gap:20px}.table-toolbar-left[data-v-90cd7b54],.table-toolbar-right[data-v-90cd7b54]{display:flex;align-items:center;gap:10px}.table-toolbar-icon--rotating[data-v-90cd7b54]{animation:table-toolbar-rotating-90cd7b54 1s linear infinite}@keyframes table-toolbar-rotating-90cd7b54{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.table-main-table[data-v-135cf353]{--el-table-header-bg-color: var(--v4bebd1e5)}.table-main-pagination[data-v-135cf353]{margin-top:10px;display:flex;justify-content:flex-end}.list-page[data-v-010d0705]{min-height:var(--d5119b7c)}.list-page-header[data-v-010d0705],.list-page-operation[data-v-010d0705]{margin-bottom:10px}.list-page[data-v-010d0705] .el-loading-mask{left:-10px;top:-10px;right:-10px;bottom:-10px}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@done-coding/admin-core",
|
|
3
|
-
"version": "0.1.1-alpha.
|
|
3
|
+
"version": "0.1.1-alpha.8",
|
|
4
4
|
"description": "后台管理核心",
|
|
5
5
|
"private": false,
|
|
6
6
|
"main": "lib/index.cjs",
|
|
@@ -77,5 +77,5 @@
|
|
|
77
77
|
"node": ">=18.0.0",
|
|
78
78
|
"pnpm": ">=9.0.0"
|
|
79
79
|
},
|
|
80
|
-
"gitHead": "
|
|
80
|
+
"gitHead": "5361d1f03660143196638f9a7320941e1826ee33"
|
|
81
81
|
}
|