@done-coding/admin-core 0.1.1 → 0.1.3-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.
- 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 +3 -3
- package/es/components/table/TableMain.vue2.mjs +183 -159
- 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 +8 -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 f, computed as g, shallowRef as q, inject as Ee, onMounted as Pe, onActivated as Te, watch as m, openBlock as i, createElementBlock as b, createBlock as d, unref as r, withCtx as h, createVNode as G, mergeProps as p, createCommentVNode as He, Fragment as T, renderList as Re, createSlots as Ve, renderSlot as k, resolveDynamicComponent as U, createTextVNode as z, toDisplayString as F, normalizeProps as _e, guardReactiveProps as ke, withDirectives as ze, createElementVNode as Ie, isRef as W, vShow as Ne, 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 Oe 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 Me } from "../../inject/key.mjs";
|
|
17
|
+
import { APP_API_LIST_MODEL_KEY_CONFIG as H } from "../../config/list-model.mjs";
|
|
18
|
+
const Be = { class: "table-main" }, je = { class: "table-main-pagination" }, rt = /* @__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: {},
|
|
@@ -32,201 +34,223 @@ const He = { class: "table-main" }, Ne = { class: "table-main-pagination" }, We
|
|
|
32
34
|
headerColor: { default: "rgb(240, 240, 240)" },
|
|
33
35
|
refine: { type: Boolean, default: !0 },
|
|
34
36
|
refineReduceHeight: { default: 0 },
|
|
35
|
-
injectInfo: {}
|
|
37
|
+
injectInfo: {},
|
|
38
|
+
dataViewMaxHeightMinValue: { default: 500 }
|
|
36
39
|
}, {
|
|
37
40
|
isAutoRefresh: { type: Boolean },
|
|
38
41
|
isAutoRefreshModifiers: {}
|
|
39
42
|
}),
|
|
40
|
-
emits: /* @__PURE__ */
|
|
41
|
-
setup(
|
|
42
|
-
|
|
43
|
-
|
|
43
|
+
emits: /* @__PURE__ */ Z(["pageChange", "pageSizeChange", "dataChange", "loadingChange", "pageInfoChange"], ["update:isAutoRefresh"]),
|
|
44
|
+
setup(l, { expose: ae, emit: oe }) {
|
|
45
|
+
be((e) => ({
|
|
46
|
+
e731a8f2: e.headerColor
|
|
44
47
|
}));
|
|
45
|
-
const
|
|
46
|
-
columns:
|
|
47
|
-
selectedList:
|
|
48
|
-
currentPageList:
|
|
49
|
-
api:
|
|
50
|
-
query:
|
|
51
|
-
total:
|
|
52
|
-
hasSelection:
|
|
53
|
-
})), N = f(0),
|
|
48
|
+
const o = l, y = oe, I = we(l, "isAutoRefresh"), ne = xe(), v = f([]), w = f(0), u = f(0), s = f(1), C = f(!1), R = f(!1), V = f([]), re = g(() => ({
|
|
49
|
+
columns: Ke(o.columns),
|
|
50
|
+
selectedList: V.value,
|
|
51
|
+
currentPageList: v.value,
|
|
52
|
+
api: o.api,
|
|
53
|
+
query: o.query || {},
|
|
54
|
+
total: w.value,
|
|
55
|
+
hasSelection: o.columns.some((e) => e.type === "selection")
|
|
56
|
+
})), N = f(0), le = (e) => {
|
|
54
57
|
N.value = e;
|
|
55
|
-
},
|
|
56
|
-
|
|
58
|
+
}, _ = q(), O = q(), ie = g(
|
|
59
|
+
() => o.columns.some((e) => e.type === "selection")
|
|
60
|
+
), se = (e) => {
|
|
61
|
+
var t, n;
|
|
62
|
+
V.value = e, (n = (t = o.tableProps) == null ? void 0 : t.onSelectionChange) == null || n.call(t, e);
|
|
63
|
+
}, ue = Ee(
|
|
64
|
+
Me,
|
|
57
65
|
500
|
|
58
|
-
),
|
|
59
|
-
() =>
|
|
60
|
-
),
|
|
61
|
-
const { maxHeight: e, refine: t } =
|
|
66
|
+
), A = g(() => o.showPager ? 35 : 0), L = g(
|
|
67
|
+
() => o.showToolbar ? N.value : 0
|
|
68
|
+
), K = g(() => {
|
|
69
|
+
const { maxHeight: e, refine: t, dataViewMaxHeightMinValue: n } = o;
|
|
62
70
|
return e ? Math.max(
|
|
63
|
-
e -
|
|
64
|
-
|
|
71
|
+
e - A.value - L.value,
|
|
72
|
+
n
|
|
65
73
|
) : t ? Math.max(
|
|
66
|
-
|
|
67
|
-
|
|
74
|
+
ue.value - A.value - L.value - o.refineReduceHeight,
|
|
75
|
+
n
|
|
68
76
|
) : void 0;
|
|
69
|
-
}), x =
|
|
70
|
-
const e =
|
|
71
|
-
return
|
|
77
|
+
}), x = g(() => {
|
|
78
|
+
const e = Q(o.query || {});
|
|
79
|
+
return ee(e, H.PAGE_SIZE_KEY, u.value), ee(
|
|
72
80
|
e,
|
|
73
|
-
|
|
74
|
-
|
|
81
|
+
H.CURRENT_PAGE_KEY,
|
|
82
|
+
s.value
|
|
75
83
|
), e;
|
|
76
|
-
}),
|
|
84
|
+
}), fe = g(() => {
|
|
77
85
|
var t;
|
|
78
|
-
const e = (t =
|
|
86
|
+
const e = (t = o.tableProps) == null ? void 0 : t.onSelectionChange;
|
|
79
87
|
return {
|
|
80
|
-
...
|
|
81
|
-
...
|
|
88
|
+
...o.tableProps,
|
|
89
|
+
...ne,
|
|
82
90
|
/** 合并内部选中存储与外部 onSelectionChange */
|
|
83
|
-
onSelectionChange: (
|
|
84
|
-
|
|
91
|
+
onSelectionChange: (n) => {
|
|
92
|
+
V.value = n, e == null || e(n);
|
|
85
93
|
}
|
|
86
94
|
};
|
|
87
|
-
}),
|
|
88
|
-
const
|
|
89
|
-
return !
|
|
95
|
+
}), M = (e, t = !0) => {
|
|
96
|
+
const n = JSON.stringify(e) === JSON.stringify(x.value);
|
|
97
|
+
return !n && t && console.warn(
|
|
90
98
|
`同一地方 并发请求 参数冰花 当前不是最新的参数 丢弃结果 ${JSON.stringify(
|
|
91
99
|
e
|
|
92
100
|
)} => ${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:
|
|
101
|
+
), n;
|
|
102
|
+
}, B = (e = !1) => {
|
|
103
|
+
var n, E;
|
|
104
|
+
if (!u.value) return;
|
|
105
|
+
C.value ? console.warn("请求并发") : C.value = !0, e || (R.value = !0), o.customView ? (n = O.value) == null || n.clearSelection() : (E = _.value) == null || E.clearSelection();
|
|
106
|
+
const t = Q(x.value);
|
|
107
|
+
return o.api(t).then((P) => {
|
|
108
|
+
M(t, !1) && (v.value = te(
|
|
109
|
+
P,
|
|
110
|
+
H.LIST_KEY
|
|
111
|
+
), w.value = te(
|
|
112
|
+
P,
|
|
113
|
+
H.TOTAL_KEY
|
|
114
|
+
), y("pageInfoChange", {
|
|
115
|
+
pageSize: u.value,
|
|
116
|
+
currentPage: s.value,
|
|
117
|
+
total: w.value
|
|
110
118
|
}));
|
|
111
119
|
}).finally(() => {
|
|
112
|
-
|
|
120
|
+
M(t) && (C.value = !1, R.value = !1);
|
|
113
121
|
});
|
|
114
122
|
}, j = async (e = !1) => {
|
|
115
123
|
var t;
|
|
116
|
-
return (t =
|
|
124
|
+
return (t = B(e)) == null ? void 0 : t.catch(() => {
|
|
117
125
|
});
|
|
118
|
-
},
|
|
119
|
-
if (
|
|
126
|
+
}, ce = async (e = !1) => {
|
|
127
|
+
if (s.value === 1)
|
|
120
128
|
return j(e);
|
|
121
|
-
|
|
122
|
-
},
|
|
129
|
+
s.value = 1;
|
|
130
|
+
}, $ = (e) => e, ge = (e) => e, de = (e) => e, S = {
|
|
123
131
|
refresh: j,
|
|
124
|
-
reload:
|
|
125
|
-
getTableInstance: () =>
|
|
126
|
-
},
|
|
127
|
-
...
|
|
128
|
-
injectInfo:
|
|
129
|
-
exposeInfo:
|
|
130
|
-
}),
|
|
131
|
-
...
|
|
132
|
-
injectInfo:
|
|
133
|
-
exposeInfo:
|
|
132
|
+
reload: ce,
|
|
133
|
+
getTableInstance: () => _.value
|
|
134
|
+
}, J = (e, t = []) => ({
|
|
135
|
+
...X(e, ["render", "headerRender"].concat(t)),
|
|
136
|
+
injectInfo: o.injectInfo || {},
|
|
137
|
+
exposeInfo: S
|
|
138
|
+
}), D = (e) => ({
|
|
139
|
+
...X(e, ["render", "headerRender"]),
|
|
140
|
+
injectInfo: o.injectInfo || {},
|
|
141
|
+
exposeInfo: S
|
|
134
142
|
});
|
|
135
|
-
|
|
136
|
-
const
|
|
137
|
-
|
|
138
|
-
},
|
|
139
|
-
return
|
|
140
|
-
|
|
141
|
-
|
|
143
|
+
ae(S);
|
|
144
|
+
const pe = (e) => {
|
|
145
|
+
u.value = e, s.value = 1;
|
|
146
|
+
}, Y = (e) => !e || e === "expand";
|
|
147
|
+
return Pe(() => {
|
|
148
|
+
u.value = o.pageSizeInit, Te(() => {
|
|
149
|
+
S.refresh();
|
|
142
150
|
});
|
|
143
|
-
}),
|
|
144
|
-
|
|
145
|
-
}),
|
|
146
|
-
() =>
|
|
151
|
+
}), m(v, (e) => {
|
|
152
|
+
y("dataChange", e);
|
|
153
|
+
}), m(
|
|
154
|
+
() => o.query,
|
|
147
155
|
(e, t) => {
|
|
148
|
-
JSON.stringify(e) !== JSON.stringify(t) && (
|
|
156
|
+
JSON.stringify(e) !== JSON.stringify(t) && (s.value = 1);
|
|
149
157
|
}
|
|
150
|
-
),
|
|
158
|
+
), m(
|
|
151
159
|
x,
|
|
152
160
|
(e, t) => {
|
|
153
|
-
JSON.stringify(e) !== JSON.stringify(t) &&
|
|
161
|
+
JSON.stringify(e) !== JSON.stringify(t) && B();
|
|
154
162
|
},
|
|
155
163
|
{
|
|
156
164
|
immediate: !0
|
|
157
165
|
}
|
|
158
|
-
),
|
|
159
|
-
|
|
160
|
-
}),
|
|
161
|
-
|
|
162
|
-
}),
|
|
163
|
-
|
|
166
|
+
), m(R, (e) => {
|
|
167
|
+
y("loadingChange", e);
|
|
168
|
+
}), m(u, (e) => {
|
|
169
|
+
y("pageSizeChange", e);
|
|
170
|
+
}), m(s, (e) => {
|
|
171
|
+
y("pageChange", e);
|
|
164
172
|
}), (e, t) => {
|
|
165
|
-
const
|
|
166
|
-
return i(),
|
|
167
|
-
|
|
173
|
+
const n = ye, E = ve, P = he, me = Ce;
|
|
174
|
+
return i(), b("div", Be, [
|
|
175
|
+
l.showToolbar ? (i(), d(r(Ae), {
|
|
168
176
|
key: 0,
|
|
169
|
-
onHeightChange:
|
|
177
|
+
onHeightChange: le
|
|
170
178
|
}, {
|
|
171
|
-
default:
|
|
172
|
-
|
|
173
|
-
"is-auto-refresh":
|
|
174
|
-
"onUpdate:isAutoRefresh": t[0] || (t[0] = (
|
|
175
|
-
tableExpose:
|
|
176
|
-
loading:
|
|
177
|
-
exportContext:
|
|
178
|
-
currentPage:
|
|
179
|
-
pageSize:
|
|
180
|
-
},
|
|
179
|
+
default: h(() => [
|
|
180
|
+
G(Oe, p({
|
|
181
|
+
"is-auto-refresh": I.value,
|
|
182
|
+
"onUpdate:isAutoRefresh": t[0] || (t[0] = (a) => I.value = a),
|
|
183
|
+
tableExpose: S,
|
|
184
|
+
loading: r(C),
|
|
185
|
+
exportContext: r(re),
|
|
186
|
+
currentPage: r(s),
|
|
187
|
+
pageSize: r(u)
|
|
188
|
+
}, l.toolbar), null, 16, ["is-auto-refresh", "loading", "exportContext", "currentPage", "pageSize"])
|
|
181
189
|
]),
|
|
182
190
|
_: 1
|
|
183
|
-
})) :
|
|
184
|
-
|
|
191
|
+
})) : He("", !0),
|
|
192
|
+
l.customView ? (i(), d(r(Le), {
|
|
193
|
+
key: 2,
|
|
194
|
+
ref_key: "dataListView",
|
|
195
|
+
ref: O,
|
|
196
|
+
data: ge(r(v)),
|
|
197
|
+
columns: de(l.columns),
|
|
198
|
+
rowKey: $(l.rowKey),
|
|
199
|
+
maxHeight: r(K),
|
|
200
|
+
selectable: r(ie),
|
|
201
|
+
onSelectionChange: se
|
|
202
|
+
}, {
|
|
203
|
+
item: h((a) => [
|
|
204
|
+
k(e.$slots, "custom-view-item", _e(ke(a)), void 0, !0)
|
|
205
|
+
]),
|
|
206
|
+
_: 3
|
|
207
|
+
}, 8, ["data", "columns", "rowKey", "maxHeight", "selectable"])) : (i(), d(P, p({
|
|
208
|
+
key: 1,
|
|
185
209
|
ref_key: "elTable",
|
|
186
|
-
ref:
|
|
210
|
+
ref: _,
|
|
187
211
|
class: "table-main-table",
|
|
188
212
|
stripe: "",
|
|
189
213
|
border: "",
|
|
190
214
|
highlightCurrentRow: ""
|
|
191
|
-
},
|
|
192
|
-
maxHeight:
|
|
193
|
-
data:
|
|
194
|
-
rowKey:
|
|
215
|
+
}, r(fe), {
|
|
216
|
+
maxHeight: r(K),
|
|
217
|
+
data: r(v),
|
|
218
|
+
rowKey: $(l.rowKey)
|
|
195
219
|
}), {
|
|
196
|
-
empty:
|
|
197
|
-
|
|
220
|
+
empty: h(() => [
|
|
221
|
+
r(C) ? (i(), b(T, { key: 0 }, [
|
|
198
222
|
z("加载中...")
|
|
199
|
-
], 64)) : (i(),
|
|
223
|
+
], 64)) : (i(), d(E, { key: 1 }))
|
|
200
224
|
]),
|
|
201
|
-
default:
|
|
202
|
-
(i(!0),
|
|
203
|
-
key:
|
|
204
|
-
}, { ref_for: !0 },
|
|
205
|
-
|
|
225
|
+
default: h(() => [
|
|
226
|
+
(i(!0), b(T, null, Re(l.columns, (a) => (i(), d(n, p({
|
|
227
|
+
key: a.columnKey || a.prop
|
|
228
|
+
}, { ref_for: !0 }, a), Ve({ _: 2 }, [
|
|
229
|
+
Y(a.type) ? {
|
|
206
230
|
name: "default",
|
|
207
|
-
fn:
|
|
208
|
-
|
|
209
|
-
|
|
231
|
+
fn: h((c) => [
|
|
232
|
+
k(e.$slots, a.prop, p({ ref_for: !0 }, J(c)), () => [
|
|
233
|
+
a.render ? (i(), d(U(a.render), p({
|
|
210
234
|
key: 0,
|
|
211
235
|
ref_for: !0
|
|
212
|
-
},
|
|
213
|
-
_index:
|
|
214
|
-
}), null, 16, ["_index"])) : (i(),
|
|
215
|
-
z(
|
|
236
|
+
}, J(c, ["$index"]), {
|
|
237
|
+
_index: c.$index
|
|
238
|
+
}), null, 16, ["_index"])) : (i(), b(T, { key: 1 }, [
|
|
239
|
+
z(F(c.row[a.prop]), 1)
|
|
216
240
|
], 64))
|
|
217
241
|
], !0)
|
|
218
242
|
]),
|
|
219
243
|
key: "0"
|
|
220
244
|
} : void 0,
|
|
221
|
-
|
|
245
|
+
Y(a.type) ? {
|
|
222
246
|
name: "header",
|
|
223
|
-
fn:
|
|
224
|
-
|
|
225
|
-
|
|
247
|
+
fn: h((c) => [
|
|
248
|
+
k(e.$slots, `header-${a.prop}`, p({ ref_for: !0 }, D(c)), () => [
|
|
249
|
+
a.headerRender ? (i(), d(U(a.headerRender), p({
|
|
226
250
|
key: 0,
|
|
227
251
|
ref_for: !0
|
|
228
|
-
},
|
|
229
|
-
z(
|
|
252
|
+
}, D(c)), null, 16)) : (i(), b(T, { key: 1 }, [
|
|
253
|
+
z(F(a.label), 1)
|
|
230
254
|
], 64))
|
|
231
255
|
], !0)
|
|
232
256
|
]),
|
|
@@ -235,27 +259,27 @@ const He = { class: "table-main" }, Ne = { class: "table-main-pagination" }, We
|
|
|
235
259
|
]), 1040))), 128))
|
|
236
260
|
]),
|
|
237
261
|
_: 3
|
|
238
|
-
}, 16, ["maxHeight", "data", "rowKey"]),
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
"current-page":
|
|
242
|
-
"onUpdate:currentPage": t[1] || (t[1] = (
|
|
243
|
-
"page-size":
|
|
244
|
-
"onUpdate:pageSize": t[2] || (t[2] = (
|
|
245
|
-
"page-sizes":
|
|
262
|
+
}, 16, ["maxHeight", "data", "rowKey"])),
|
|
263
|
+
ze(Ie("div", je, [
|
|
264
|
+
G(me, {
|
|
265
|
+
"current-page": r(s),
|
|
266
|
+
"onUpdate:currentPage": t[1] || (t[1] = (a) => W(s) ? s.value = a : null),
|
|
267
|
+
"page-size": r(u),
|
|
268
|
+
"onUpdate:pageSize": t[2] || (t[2] = (a) => W(u) ? u.value = a : null),
|
|
269
|
+
"page-sizes": l.pageSizeOptions,
|
|
246
270
|
size: "small",
|
|
247
271
|
background: "",
|
|
248
|
-
layout:
|
|
249
|
-
total:
|
|
250
|
-
onSizeChange:
|
|
272
|
+
layout: l.pageLayout,
|
|
273
|
+
total: r(w),
|
|
274
|
+
onSizeChange: pe
|
|
251
275
|
}, null, 8, ["current-page", "page-size", "page-sizes", "layout", "total"])
|
|
252
276
|
], 512), [
|
|
253
|
-
[
|
|
277
|
+
[Ne, l.showPager]
|
|
254
278
|
])
|
|
255
279
|
]);
|
|
256
280
|
};
|
|
257
281
|
}
|
|
258
282
|
});
|
|
259
283
|
export {
|
|
260
|
-
|
|
284
|
+
rt as default
|
|
261
285
|
};
|
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
|
};
|