@done-coding/admin-core 0.1.1 → 0.1.2
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/data-view/DataListView.vue.mjs +7 -0
- package/es/components/data-view/DataListView.vue2.mjs +116 -0
- package/es/components/data-view/DataListViewItem.vue.mjs +7 -0
- package/es/components/data-view/DataListViewItem.vue2.mjs +17 -0
- package/es/components/display/HeightProvider.vue.mjs +38 -0
- package/es/components/display/HeightProvider.vue2.mjs +4 -0
- package/es/components/display/TabsMain.vue.mjs +5 -59
- package/es/components/display/TabsMain.vue2.mjs +95 -2
- package/es/components/display/index.mjs +11 -9
- package/es/components/list-page/ListPage.vue.mjs +2 -2
- package/es/components/list-page/ListPage.vue2.mjs +72 -67
- package/es/components/table/TableMain.vue.mjs +4 -4
- package/es/components/table/TableMain.vue2.mjs +183 -160
- package/es/index.mjs +80 -77
- package/es/inject/key.mjs +5 -2
- package/es/style.css +1 -1
- package/package.json +2 -2
- package/types/components/data-view/DataListView.vue.d.ts +26 -0
- package/types/components/data-view/DataListViewItem.vue.d.ts +26 -0
- package/types/components/data-view/index.d.ts +9 -0
- package/types/components/data-view/types.d.ts +71 -0
- package/types/components/display/HeightProvider.vue.d.ts +39 -0
- package/types/components/display/TabsMain.vue.d.ts +22 -32
- package/types/components/display/index.d.ts +22 -1
- package/types/components/display/types.d.ts +46 -0
- package/types/components/form/FormItem.vue.d.ts +1 -1
- package/types/components/form/FormRadioGroup.vue.d.ts +13 -13
- package/types/components/form/FormSearch.vue.d.ts +1 -1
- package/types/components/list-page/ListPage.vue.d.ts +7 -0
- package/types/components/modal/ConfirmModal.vue.d.ts +1 -1
- package/types/components/table/TableMain.vue.d.ts +9 -1
- package/types/components/table/types.d.ts +6 -0
- package/types/inject/key.d.ts +11 -0
|
@@ -1,23 +1,25 @@
|
|
|
1
|
-
import { ElTable as
|
|
1
|
+
import { ElTable as he, ElTableColumn as ye, ElEmpty as ve, ElPagination as Ce } from "element-plus/es";
|
|
2
2
|
import "element-plus/es/components/base/style/css";
|
|
3
3
|
import "element-plus/es/components/pagination/style/css";
|
|
4
4
|
import "element-plus/es/components/table/style/css";
|
|
5
5
|
import "element-plus/es/components/empty/style/css";
|
|
6
6
|
import "element-plus/es/components/table-column/style/css";
|
|
7
|
-
import { defineComponent as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
|
|
7
|
+
import { defineComponent as Se, useCssVars as be, useModel as we, useAttrs as xe, ref as c, computed as g, shallowRef as q, inject as Ee, onMounted as Pe, onActivated as Te, watch as m, openBlock as s, createElementBlock as b, createBlock as p, unref as r, withCtx as h, createVNode as G, mergeProps as d, createCommentVNode as Re, Fragment as T, renderList as _e, createSlots as ke, renderSlot as I, resolveDynamicComponent as U, createTextVNode as H, toDisplayString as F, normalizeProps as ze, guardReactiveProps as Ie, withDirectives as He, createElementVNode as Ne, isRef as W, vShow as Oe, mergeModels as Z } from "vue";
|
|
8
|
+
import Q from "lodash/cloneDeep";
|
|
9
|
+
import X from "lodash/omit";
|
|
10
|
+
import ee from "lodash/set";
|
|
11
|
+
import te from "lodash/get";
|
|
12
|
+
import Ve from "./TableToolbar.vue.mjs";
|
|
13
|
+
import Ae from "../display/WatchSize.vue.mjs";
|
|
14
|
+
import Le from "../data-view/DataListView.vue.mjs";
|
|
15
|
+
import { pickExportColumns as Ke } from "../../utils/export.mjs";
|
|
16
|
+
import { BODY_CONTENT_VIEWPORT_HEIGHT as Be } from "../../inject/key.mjs";
|
|
17
|
+
import { APP_API_LIST_MODEL_KEY_CONFIG as R } from "../../config/list-model.mjs";
|
|
18
|
+
const je = { class: "table-main" }, Me = { class: "table-main-pagination" }, nt = /* @__PURE__ */ Se({
|
|
18
19
|
__name: "TableMain",
|
|
19
|
-
props: /* @__PURE__ */
|
|
20
|
+
props: /* @__PURE__ */ Z({
|
|
20
21
|
showPager: { type: Boolean, default: !0 },
|
|
22
|
+
customView: { type: Boolean, default: !1 },
|
|
21
23
|
showToolbar: { type: Boolean, default: !0 },
|
|
22
24
|
toolbar: {},
|
|
23
25
|
query: {},
|
|
@@ -37,196 +39,217 @@ const He = { class: "table-main" }, Ne = { class: "table-main-pagination" }, We
|
|
|
37
39
|
isAutoRefresh: { type: Boolean },
|
|
38
40
|
isAutoRefreshModifiers: {}
|
|
39
41
|
}),
|
|
40
|
-
emits: /* @__PURE__ */
|
|
41
|
-
setup(
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
emits: /* @__PURE__ */ Z(["pageChange", "pageSizeChange", "dataChange", "loadingChange", "pageInfoChange"], ["update:isAutoRefresh"]),
|
|
43
|
+
setup(l, { expose: oe, emit: ae }) {
|
|
44
|
+
be((e) => ({
|
|
45
|
+
v1b467e54: e.headerColor
|
|
44
46
|
}));
|
|
45
|
-
const
|
|
46
|
-
columns:
|
|
47
|
-
selectedList:
|
|
48
|
-
currentPageList:
|
|
49
|
-
api:
|
|
50
|
-
query:
|
|
51
|
-
total:
|
|
52
|
-
hasSelection:
|
|
53
|
-
})),
|
|
54
|
-
|
|
55
|
-
},
|
|
56
|
-
|
|
47
|
+
const a = l, y = ae, N = we(l, "isAutoRefresh"), re = xe(), v = c([]), w = c(0), u = c(0), i = c(1), C = c(!1), _ = c(!1), k = c([]), ne = g(() => ({
|
|
48
|
+
columns: Ke(a.columns),
|
|
49
|
+
selectedList: k.value,
|
|
50
|
+
currentPageList: v.value,
|
|
51
|
+
api: a.api,
|
|
52
|
+
query: a.query || {},
|
|
53
|
+
total: w.value,
|
|
54
|
+
hasSelection: a.columns.some((e) => e.type === "selection")
|
|
55
|
+
})), O = c(0), le = (e) => {
|
|
56
|
+
O.value = e;
|
|
57
|
+
}, z = q(), V = q(), se = g(
|
|
58
|
+
() => a.columns.some((e) => e.type === "selection")
|
|
59
|
+
), ie = (e) => {
|
|
60
|
+
var t, n;
|
|
61
|
+
k.value = e, (n = (t = a.tableProps) == null ? void 0 : t.onSelectionChange) == null || n.call(t, e);
|
|
62
|
+
}, ue = Ee(
|
|
63
|
+
Be,
|
|
57
64
|
500
|
|
58
|
-
),
|
|
59
|
-
() =>
|
|
60
|
-
),
|
|
61
|
-
const { maxHeight: e, refine: t } =
|
|
65
|
+
), A = g(() => a.showPager ? 35 : 0), L = g(
|
|
66
|
+
() => a.showToolbar ? O.value : 0
|
|
67
|
+
), K = g(() => {
|
|
68
|
+
const { maxHeight: e, refine: t } = a;
|
|
62
69
|
return e ? Math.max(
|
|
63
|
-
e -
|
|
70
|
+
e - A.value - L.value,
|
|
64
71
|
200
|
|
65
72
|
) : t ? Math.max(
|
|
66
|
-
|
|
73
|
+
ue.value - A.value - L.value - a.refineReduceHeight,
|
|
67
74
|
200
|
|
68
75
|
) : void 0;
|
|
69
|
-
}), x =
|
|
70
|
-
const e =
|
|
71
|
-
return
|
|
76
|
+
}), x = g(() => {
|
|
77
|
+
const e = Q(a.query || {});
|
|
78
|
+
return ee(e, R.PAGE_SIZE_KEY, u.value), ee(
|
|
72
79
|
e,
|
|
73
|
-
|
|
74
|
-
|
|
80
|
+
R.CURRENT_PAGE_KEY,
|
|
81
|
+
i.value
|
|
75
82
|
), e;
|
|
76
|
-
}),
|
|
83
|
+
}), ce = g(() => {
|
|
77
84
|
var t;
|
|
78
|
-
const e = (t =
|
|
85
|
+
const e = (t = a.tableProps) == null ? void 0 : t.onSelectionChange;
|
|
79
86
|
return {
|
|
80
|
-
...
|
|
81
|
-
...
|
|
87
|
+
...a.tableProps,
|
|
88
|
+
...re,
|
|
82
89
|
/** 合并内部选中存储与外部 onSelectionChange */
|
|
83
|
-
onSelectionChange: (
|
|
84
|
-
|
|
90
|
+
onSelectionChange: (n) => {
|
|
91
|
+
k.value = n, e == null || e(n);
|
|
85
92
|
}
|
|
86
93
|
};
|
|
87
|
-
}),
|
|
88
|
-
const
|
|
89
|
-
return !
|
|
94
|
+
}), B = (e, t = !0) => {
|
|
95
|
+
const n = JSON.stringify(e) === JSON.stringify(x.value);
|
|
96
|
+
return !n && t && console.warn(
|
|
90
97
|
`同一地方 并发请求 参数冰花 当前不是最新的参数 丢弃结果 ${JSON.stringify(
|
|
91
98
|
e
|
|
92
99
|
)} => ${JSON.stringify(x.value)}`
|
|
93
|
-
),
|
|
94
|
-
},
|
|
95
|
-
var
|
|
96
|
-
if (!
|
|
97
|
-
|
|
98
|
-
const t =
|
|
99
|
-
return
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
),
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
),
|
|
107
|
-
pageSize:
|
|
108
|
-
currentPage:
|
|
109
|
-
total:
|
|
100
|
+
), n;
|
|
101
|
+
}, j = (e = !1) => {
|
|
102
|
+
var n, E;
|
|
103
|
+
if (!u.value) return;
|
|
104
|
+
C.value ? console.warn("请求并发") : C.value = !0, e || (_.value = !0), a.customView ? (n = V.value) == null || n.clearSelection() : (E = z.value) == null || E.clearSelection();
|
|
105
|
+
const t = Q(x.value);
|
|
106
|
+
return a.api(t).then((P) => {
|
|
107
|
+
B(t, !1) && (v.value = te(
|
|
108
|
+
P,
|
|
109
|
+
R.LIST_KEY
|
|
110
|
+
), w.value = te(
|
|
111
|
+
P,
|
|
112
|
+
R.TOTAL_KEY
|
|
113
|
+
), y("pageInfoChange", {
|
|
114
|
+
pageSize: u.value,
|
|
115
|
+
currentPage: i.value,
|
|
116
|
+
total: w.value
|
|
110
117
|
}));
|
|
111
118
|
}).finally(() => {
|
|
112
|
-
|
|
119
|
+
B(t) && (C.value = !1, _.value = !1);
|
|
113
120
|
});
|
|
114
|
-
},
|
|
121
|
+
}, M = async (e = !1) => {
|
|
115
122
|
var t;
|
|
116
|
-
return (t =
|
|
123
|
+
return (t = j(e)) == null ? void 0 : t.catch(() => {
|
|
117
124
|
});
|
|
118
|
-
},
|
|
119
|
-
if (
|
|
120
|
-
return
|
|
121
|
-
|
|
122
|
-
},
|
|
123
|
-
refresh:
|
|
124
|
-
reload:
|
|
125
|
-
getTableInstance: () =>
|
|
126
|
-
},
|
|
127
|
-
...
|
|
128
|
-
injectInfo:
|
|
129
|
-
exposeInfo:
|
|
130
|
-
}),
|
|
131
|
-
...
|
|
132
|
-
injectInfo:
|
|
133
|
-
exposeInfo:
|
|
125
|
+
}, fe = async (e = !1) => {
|
|
126
|
+
if (i.value === 1)
|
|
127
|
+
return M(e);
|
|
128
|
+
i.value = 1;
|
|
129
|
+
}, $ = (e) => e, ge = (e) => e, pe = (e) => e, S = {
|
|
130
|
+
refresh: M,
|
|
131
|
+
reload: fe,
|
|
132
|
+
getTableInstance: () => z.value
|
|
133
|
+
}, J = (e, t = []) => ({
|
|
134
|
+
...X(e, ["render", "headerRender"].concat(t)),
|
|
135
|
+
injectInfo: a.injectInfo || {},
|
|
136
|
+
exposeInfo: S
|
|
137
|
+
}), D = (e) => ({
|
|
138
|
+
...X(e, ["render", "headerRender"]),
|
|
139
|
+
injectInfo: a.injectInfo || {},
|
|
140
|
+
exposeInfo: S
|
|
134
141
|
});
|
|
135
|
-
|
|
136
|
-
const
|
|
137
|
-
|
|
138
|
-
},
|
|
139
|
-
return
|
|
140
|
-
|
|
141
|
-
|
|
142
|
+
oe(S);
|
|
143
|
+
const de = (e) => {
|
|
144
|
+
u.value = e, i.value = 1;
|
|
145
|
+
}, Y = (e) => !e || e === "expand";
|
|
146
|
+
return Pe(() => {
|
|
147
|
+
u.value = a.pageSizeInit, Te(() => {
|
|
148
|
+
S.refresh();
|
|
142
149
|
});
|
|
143
|
-
}),
|
|
144
|
-
|
|
145
|
-
}),
|
|
146
|
-
() =>
|
|
150
|
+
}), m(v, (e) => {
|
|
151
|
+
y("dataChange", e);
|
|
152
|
+
}), m(
|
|
153
|
+
() => a.query,
|
|
147
154
|
(e, t) => {
|
|
148
|
-
JSON.stringify(e) !== JSON.stringify(t) && (
|
|
155
|
+
JSON.stringify(e) !== JSON.stringify(t) && (i.value = 1);
|
|
149
156
|
}
|
|
150
|
-
),
|
|
157
|
+
), m(
|
|
151
158
|
x,
|
|
152
159
|
(e, t) => {
|
|
153
|
-
JSON.stringify(e) !== JSON.stringify(t) &&
|
|
160
|
+
JSON.stringify(e) !== JSON.stringify(t) && j();
|
|
154
161
|
},
|
|
155
162
|
{
|
|
156
163
|
immediate: !0
|
|
157
164
|
}
|
|
158
|
-
),
|
|
159
|
-
|
|
160
|
-
}),
|
|
161
|
-
|
|
162
|
-
}),
|
|
163
|
-
|
|
165
|
+
), m(_, (e) => {
|
|
166
|
+
y("loadingChange", e);
|
|
167
|
+
}), m(u, (e) => {
|
|
168
|
+
y("pageSizeChange", e);
|
|
169
|
+
}), m(i, (e) => {
|
|
170
|
+
y("pageChange", e);
|
|
164
171
|
}), (e, t) => {
|
|
165
|
-
const
|
|
166
|
-
return
|
|
167
|
-
|
|
172
|
+
const n = ye, E = ve, P = he, me = Ce;
|
|
173
|
+
return s(), b("div", je, [
|
|
174
|
+
l.showToolbar ? (s(), p(r(Ae), {
|
|
168
175
|
key: 0,
|
|
169
|
-
onHeightChange:
|
|
176
|
+
onHeightChange: le
|
|
170
177
|
}, {
|
|
171
|
-
default:
|
|
172
|
-
|
|
173
|
-
"is-auto-refresh":
|
|
174
|
-
"onUpdate:isAutoRefresh": t[0] || (t[0] = (o) =>
|
|
175
|
-
tableExpose:
|
|
176
|
-
loading:
|
|
177
|
-
exportContext:
|
|
178
|
-
currentPage:
|
|
179
|
-
pageSize:
|
|
180
|
-
},
|
|
178
|
+
default: h(() => [
|
|
179
|
+
G(Ve, d({
|
|
180
|
+
"is-auto-refresh": N.value,
|
|
181
|
+
"onUpdate:isAutoRefresh": t[0] || (t[0] = (o) => N.value = o),
|
|
182
|
+
tableExpose: S,
|
|
183
|
+
loading: r(C),
|
|
184
|
+
exportContext: r(ne),
|
|
185
|
+
currentPage: r(i),
|
|
186
|
+
pageSize: r(u)
|
|
187
|
+
}, l.toolbar), null, 16, ["is-auto-refresh", "loading", "exportContext", "currentPage", "pageSize"])
|
|
181
188
|
]),
|
|
182
189
|
_: 1
|
|
183
|
-
})) :
|
|
184
|
-
|
|
190
|
+
})) : Re("", !0),
|
|
191
|
+
l.customView ? (s(), p(r(Le), {
|
|
192
|
+
key: 2,
|
|
193
|
+
ref_key: "dataListView",
|
|
194
|
+
ref: V,
|
|
195
|
+
data: ge(r(v)),
|
|
196
|
+
columns: pe(l.columns),
|
|
197
|
+
rowKey: $(l.rowKey),
|
|
198
|
+
maxHeight: r(K),
|
|
199
|
+
selectable: r(se),
|
|
200
|
+
onSelectionChange: ie
|
|
201
|
+
}, {
|
|
202
|
+
item: h((o) => [
|
|
203
|
+
I(e.$slots, "custom-view-item", ze(Ie(o)), void 0, !0)
|
|
204
|
+
]),
|
|
205
|
+
_: 3
|
|
206
|
+
}, 8, ["data", "columns", "rowKey", "maxHeight", "selectable"])) : (s(), p(P, d({
|
|
207
|
+
key: 1,
|
|
185
208
|
ref_key: "elTable",
|
|
186
|
-
ref:
|
|
209
|
+
ref: z,
|
|
187
210
|
class: "table-main-table",
|
|
188
211
|
stripe: "",
|
|
189
212
|
border: "",
|
|
190
213
|
highlightCurrentRow: ""
|
|
191
|
-
},
|
|
192
|
-
maxHeight:
|
|
193
|
-
data:
|
|
194
|
-
rowKey:
|
|
214
|
+
}, r(ce), {
|
|
215
|
+
maxHeight: r(K),
|
|
216
|
+
data: r(v),
|
|
217
|
+
rowKey: $(l.rowKey)
|
|
195
218
|
}), {
|
|
196
|
-
empty:
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
], 64)) : (
|
|
219
|
+
empty: h(() => [
|
|
220
|
+
r(C) ? (s(), b(T, { key: 0 }, [
|
|
221
|
+
H("加载中...")
|
|
222
|
+
], 64)) : (s(), p(E, { key: 1 }))
|
|
200
223
|
]),
|
|
201
|
-
default:
|
|
202
|
-
(
|
|
224
|
+
default: h(() => [
|
|
225
|
+
(s(!0), b(T, null, _e(l.columns, (o) => (s(), p(n, d({
|
|
203
226
|
key: o.columnKey || o.prop
|
|
204
|
-
}, { ref_for: !0 }, o),
|
|
205
|
-
|
|
227
|
+
}, { ref_for: !0 }, o), ke({ _: 2 }, [
|
|
228
|
+
Y(o.type) ? {
|
|
206
229
|
name: "default",
|
|
207
|
-
fn:
|
|
208
|
-
|
|
209
|
-
o.render ? (
|
|
230
|
+
fn: h((f) => [
|
|
231
|
+
I(e.$slots, o.prop, d({ ref_for: !0 }, J(f)), () => [
|
|
232
|
+
o.render ? (s(), p(U(o.render), d({
|
|
210
233
|
key: 0,
|
|
211
234
|
ref_for: !0
|
|
212
|
-
},
|
|
213
|
-
_index:
|
|
214
|
-
}), null, 16, ["_index"])) : (
|
|
215
|
-
|
|
235
|
+
}, J(f, ["$index"]), {
|
|
236
|
+
_index: f.$index
|
|
237
|
+
}), null, 16, ["_index"])) : (s(), b(T, { key: 1 }, [
|
|
238
|
+
H(F(f.row[o.prop]), 1)
|
|
216
239
|
], 64))
|
|
217
240
|
], !0)
|
|
218
241
|
]),
|
|
219
242
|
key: "0"
|
|
220
243
|
} : void 0,
|
|
221
|
-
|
|
244
|
+
Y(o.type) ? {
|
|
222
245
|
name: "header",
|
|
223
|
-
fn:
|
|
224
|
-
|
|
225
|
-
o.headerRender ? (
|
|
246
|
+
fn: h((f) => [
|
|
247
|
+
I(e.$slots, `header-${o.prop}`, d({ ref_for: !0 }, D(f)), () => [
|
|
248
|
+
o.headerRender ? (s(), p(U(o.headerRender), d({
|
|
226
249
|
key: 0,
|
|
227
250
|
ref_for: !0
|
|
228
|
-
},
|
|
229
|
-
|
|
251
|
+
}, D(f)), null, 16)) : (s(), b(T, { key: 1 }, [
|
|
252
|
+
H(F(o.label), 1)
|
|
230
253
|
], 64))
|
|
231
254
|
], !0)
|
|
232
255
|
]),
|
|
@@ -235,27 +258,27 @@ const He = { class: "table-main" }, Ne = { class: "table-main-pagination" }, We
|
|
|
235
258
|
]), 1040))), 128))
|
|
236
259
|
]),
|
|
237
260
|
_: 3
|
|
238
|
-
}, 16, ["maxHeight", "data", "rowKey"]),
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
"current-page":
|
|
242
|
-
"onUpdate:currentPage": t[1] || (t[1] = (o) =>
|
|
243
|
-
"page-size":
|
|
244
|
-
"onUpdate:pageSize": t[2] || (t[2] = (o) =>
|
|
245
|
-
"page-sizes":
|
|
261
|
+
}, 16, ["maxHeight", "data", "rowKey"])),
|
|
262
|
+
He(Ne("div", Me, [
|
|
263
|
+
G(me, {
|
|
264
|
+
"current-page": r(i),
|
|
265
|
+
"onUpdate:currentPage": t[1] || (t[1] = (o) => W(i) ? i.value = o : null),
|
|
266
|
+
"page-size": r(u),
|
|
267
|
+
"onUpdate:pageSize": t[2] || (t[2] = (o) => W(u) ? u.value = o : null),
|
|
268
|
+
"page-sizes": l.pageSizeOptions,
|
|
246
269
|
size: "small",
|
|
247
270
|
background: "",
|
|
248
|
-
layout:
|
|
249
|
-
total:
|
|
250
|
-
onSizeChange:
|
|
271
|
+
layout: l.pageLayout,
|
|
272
|
+
total: r(w),
|
|
273
|
+
onSizeChange: de
|
|
251
274
|
}, null, 8, ["current-page", "page-size", "page-sizes", "layout", "total"])
|
|
252
275
|
], 512), [
|
|
253
|
-
[
|
|
276
|
+
[Oe, l.showPager]
|
|
254
277
|
])
|
|
255
278
|
]);
|
|
256
279
|
};
|
|
257
280
|
}
|
|
258
281
|
});
|
|
259
282
|
export {
|
|
260
|
-
|
|
283
|
+
nt as default
|
|
261
284
|
};
|
package/es/index.mjs
CHANGED
|
@@ -5,43 +5,44 @@ import { miscInstall as a } from "./components/misc/index.mjs";
|
|
|
5
5
|
import { modalInstall as m } from "./components/modal/index.mjs";
|
|
6
6
|
import { tableInstall as f } from "./components/table/index.mjs";
|
|
7
7
|
import { listPageInstall as s } from "./components/list-page/index.mjs";
|
|
8
|
-
import { default as
|
|
9
|
-
import { default as
|
|
10
|
-
import { default as
|
|
8
|
+
import { default as _ } from "./components/misc/ActionButton.vue.mjs";
|
|
9
|
+
import { default as T } from "./components/misc/ActionButtonDanger.vue.mjs";
|
|
10
|
+
import { default as C } from "./components/misc/ActionButtonWarn.vue.mjs";
|
|
11
11
|
import { default as F } from "./components/modal/DetailModal.vue.mjs";
|
|
12
|
-
import { default as
|
|
12
|
+
import { default as R } from "./components/form/FormMain.vue.mjs";
|
|
13
13
|
import { default as O } from "./components/form/FormRadioGroup.vue.mjs";
|
|
14
14
|
import { default as D } from "./components/form/FormSelect.vue.mjs";
|
|
15
|
-
import { default as
|
|
16
|
-
import { default as
|
|
15
|
+
import { default as h } from "./components/form/FormTree.vue.mjs";
|
|
16
|
+
import { default as b } from "./components/form/FormVerifyCode.vue.mjs";
|
|
17
|
+
import { default as v } from "./components/display/HeightProvider.vue.mjs";
|
|
17
18
|
import { default as V } from "./components/menu/MenuItemSub.vue.mjs";
|
|
18
|
-
import { default as
|
|
19
|
-
import { default as
|
|
20
|
-
import { default as H } from "./components/misc/TriggerAutoImport.vue.mjs";
|
|
19
|
+
import { default as U } from "./components/menu/MenuTree.vue.mjs";
|
|
20
|
+
import { default as W } from "./components/misc/TriggerAutoImport.vue.mjs";
|
|
21
21
|
import { default as k } from "./components/display/WatchSize.vue.mjs";
|
|
22
22
|
import { APP_API_LIST_MODEL_KEY_CONFIG as X } from "./config/list-model.mjs";
|
|
23
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
|
|
26
|
-
import { EXPORT_MAX_LIMIT as
|
|
27
|
-
import { FORM_CONFIG_SELECT_ALL_VALUE as
|
|
28
|
-
import { FORM_ITEM_CHANGE_LOADING as pe, generateFormData as
|
|
24
|
+
import { BODY_CONTENT_VIEWPORT_HEIGHT as q, FULLSCREEN_HEIGHT_CHANNEL as J } from "./inject/key.mjs";
|
|
25
|
+
import { default as $ } from "./components/modal/ConfirmModal.vue.mjs";
|
|
26
|
+
import { EXPORT_MAX_LIMIT as te, OPERATE_COLUMN_PROP as oe, exportCSV as re, pickExportColumns as ae } from "./utils/export.mjs";
|
|
27
|
+
import { FORM_CONFIG_SELECT_ALL_VALUE as fe, getConfirmPasswordRule as se, passwordRule as le, setFormComponentType as ue } from "./helpers/form.mjs";
|
|
28
|
+
import { FORM_ITEM_CHANGE_LOADING as pe, generateFormData as ne, getBlurSubmit as xe, getChangeSubmit as de, getDatePickerShortcuts as ce, getEnterSubmit as Ee, getPlaceholder as Ie, getVModelSugar as _e, parseFormData as ge, resolveFormLayout as Te, setInputComponent as Ae, setSelectComponent as Ce, stringifyFormData as Me, swiftFormItemConfig as Fe } from "./components/form/utils.mjs";
|
|
29
29
|
import { default as Re } from "./components/form/FormSearch.vue.mjs";
|
|
30
|
-
import { default as
|
|
31
|
-
import { default as
|
|
30
|
+
import { default as Oe } from "./components/form/FormVerifyImage.vue.mjs";
|
|
31
|
+
import { default as De } from "./components/list-page/ListPage.vue.mjs";
|
|
32
32
|
import { ROUTE_MODULE_LEVEL as he, TabsMainReplaceQueryKey as ye } from "./config/route.mjs";
|
|
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 {
|
|
33
|
+
import { default as Ge } from "./components/table/TableMain.vue.mjs";
|
|
34
|
+
import { default as He } from "./components/display/TabsMain.vue.mjs";
|
|
35
|
+
import { countAll as we, createListApi as Ue, fetchListAll as Be } from "./helpers/list-helper.mjs";
|
|
36
|
+
import { createGenerateRouteMetaRawTree as Ke } from "./helpers/route.mjs";
|
|
37
|
+
import { createStorageWithNamespace as ze } from "./helpers/storage.mjs";
|
|
38
|
+
import { createUseState as Ye } from "./helpers/state.mjs";
|
|
39
|
+
import { flatRouteMetaResolveRaw as je, getRoutePermissionKey as qe } from "./utils/router.mjs";
|
|
40
|
+
import { getId as Ze } from "./utils/id.mjs";
|
|
41
|
+
import { timeCountDown as et } from "./utils/time.mjs";
|
|
42
|
+
import { useActivated as ot, useActivatedEvent as rt, useActivatedExec as at } from "./hooks/activated.mjs";
|
|
43
|
+
import { useFeelSize as ft } from "./hooks/feel-size.mjs";
|
|
44
|
+
import { useMenusDataDispatch as lt } from "./hooks/menus-dispatch.mjs";
|
|
45
|
+
import { useTimeout as it } from "./hooks/timeout.mjs";
|
|
45
46
|
const c = {
|
|
46
47
|
install(e) {
|
|
47
48
|
e.use(t), e.use(o), e.use(r), e.use(a), e.use(m), e.use(f), e.use(s);
|
|
@@ -49,73 +50,75 @@ const c = {
|
|
|
49
50
|
};
|
|
50
51
|
export {
|
|
51
52
|
X as APP_API_LIST_MODEL_KEY_CONFIG,
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
53
|
+
_ as ActionButton,
|
|
54
|
+
T as ActionButtonDanger,
|
|
55
|
+
C as ActionButtonWarn,
|
|
55
56
|
Q as AutoRefresh,
|
|
56
57
|
q as BODY_CONTENT_VIEWPORT_HEIGHT,
|
|
57
|
-
|
|
58
|
+
$ as ConfirmModal,
|
|
58
59
|
F as DetailModal,
|
|
59
|
-
|
|
60
|
-
|
|
60
|
+
te as EXPORT_MAX_LIMIT,
|
|
61
|
+
fe as FORM_CONFIG_SELECT_ALL_VALUE,
|
|
61
62
|
pe as FORM_ITEM_CHANGE_LOADING,
|
|
62
|
-
|
|
63
|
+
J as FULLSCREEN_HEIGHT_CHANNEL,
|
|
64
|
+
R as FormMain,
|
|
63
65
|
O as FormRadioGroup,
|
|
64
66
|
Re as FormSearch,
|
|
65
67
|
D as FormSelect,
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
68
|
+
h as FormTree,
|
|
69
|
+
b as FormVerifyCode,
|
|
70
|
+
Oe as FormVerifyImage,
|
|
71
|
+
v as HeightProvider,
|
|
72
|
+
De as ListPage,
|
|
70
73
|
V as MenuItemSub,
|
|
71
|
-
|
|
72
|
-
|
|
74
|
+
U as MenuTree,
|
|
75
|
+
oe as OPERATE_COLUMN_PROP,
|
|
73
76
|
he as ROUTE_MODULE_LEVEL,
|
|
74
|
-
|
|
75
|
-
|
|
77
|
+
Ge as TableMain,
|
|
78
|
+
He as TabsMain,
|
|
76
79
|
ye as TabsMainReplaceQueryKey,
|
|
77
|
-
|
|
80
|
+
W as TriggerAutoImport,
|
|
78
81
|
k as WatchSize,
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
82
|
+
we as countAll,
|
|
83
|
+
Ke as createGenerateRouteMetaRawTree,
|
|
84
|
+
Ue as createListApi,
|
|
85
|
+
ze as createStorageWithNamespace,
|
|
86
|
+
Ye as createUseState,
|
|
84
87
|
r as displayInstall,
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
+
re as exportCSV,
|
|
89
|
+
Be as fetchListAll,
|
|
90
|
+
je as flatRouteMetaResolveRaw,
|
|
88
91
|
t as formInstall,
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
92
|
+
ne as generateFormData,
|
|
93
|
+
xe as getBlurSubmit,
|
|
94
|
+
de as getChangeSubmit,
|
|
95
|
+
se as getConfirmPasswordRule,
|
|
96
|
+
ce as getDatePickerShortcuts,
|
|
97
|
+
Ee as getEnterSubmit,
|
|
98
|
+
Ze as getId,
|
|
96
99
|
Ie as getPlaceholder,
|
|
97
|
-
|
|
98
|
-
|
|
100
|
+
qe as getRoutePermissionKey,
|
|
101
|
+
_e as getVModelSugar,
|
|
99
102
|
c as installComponents,
|
|
100
103
|
s as listPageInstall,
|
|
101
104
|
o as menuInstall,
|
|
102
105
|
a as miscInstall,
|
|
103
106
|
m as modalInstall,
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
107
|
+
ge as parseFormData,
|
|
108
|
+
le as passwordRule,
|
|
109
|
+
ae as pickExportColumns,
|
|
110
|
+
Te as resolveFormLayout,
|
|
111
|
+
ue as setFormComponentType,
|
|
112
|
+
Ae as setInputComponent,
|
|
113
|
+
Ce as setSelectComponent,
|
|
114
|
+
Me as stringifyFormData,
|
|
115
|
+
Fe as swiftFormItemConfig,
|
|
113
116
|
f as tableInstall,
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
117
|
+
et as timeCountDown,
|
|
118
|
+
ot as useActivated,
|
|
119
|
+
rt as useActivatedEvent,
|
|
120
|
+
at as useActivatedExec,
|
|
121
|
+
ft as useFeelSize,
|
|
122
|
+
lt as useMenusDataDispatch,
|
|
123
|
+
it as useTimeout
|
|
121
124
|
};
|