@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.
Files changed (33) hide show
  1. package/es/components/data-view/DataListView.vue.mjs +7 -0
  2. package/es/components/data-view/DataListView.vue2.mjs +116 -0
  3. package/es/components/data-view/DataListViewItem.vue.mjs +7 -0
  4. package/es/components/data-view/DataListViewItem.vue2.mjs +17 -0
  5. package/es/components/display/HeightProvider.vue.mjs +38 -0
  6. package/es/components/display/HeightProvider.vue2.mjs +4 -0
  7. package/es/components/display/TabsMain.vue.mjs +5 -59
  8. package/es/components/display/TabsMain.vue2.mjs +95 -2
  9. package/es/components/display/index.mjs +11 -9
  10. package/es/components/list-page/ListPage.vue.mjs +2 -2
  11. package/es/components/list-page/ListPage.vue2.mjs +72 -67
  12. package/es/components/table/TableMain.vue.mjs +3 -3
  13. package/es/components/table/TableMain.vue2.mjs +183 -159
  14. package/es/index.mjs +80 -77
  15. package/es/inject/key.mjs +5 -2
  16. package/es/style.css +1 -1
  17. package/package.json +2 -2
  18. package/types/components/data-view/DataListView.vue.d.ts +26 -0
  19. package/types/components/data-view/DataListViewItem.vue.d.ts +26 -0
  20. package/types/components/data-view/index.d.ts +9 -0
  21. package/types/components/data-view/types.d.ts +71 -0
  22. package/types/components/display/HeightProvider.vue.d.ts +39 -0
  23. package/types/components/display/TabsMain.vue.d.ts +22 -32
  24. package/types/components/display/index.d.ts +22 -1
  25. package/types/components/display/types.d.ts +46 -0
  26. package/types/components/form/FormItem.vue.d.ts +1 -1
  27. package/types/components/form/FormRadioGroup.vue.d.ts +13 -13
  28. package/types/components/form/FormSearch.vue.d.ts +1 -1
  29. package/types/components/list-page/ListPage.vue.d.ts +7 -0
  30. package/types/components/modal/ConfirmModal.vue.d.ts +1 -1
  31. package/types/components/table/TableMain.vue.d.ts +9 -1
  32. package/types/components/table/types.d.ts +8 -0
  33. package/types/inject/key.d.ts +11 -0
@@ -1,23 +1,25 @@
1
- import { ElTable as fe, ElTableColumn as ge, ElEmpty as pe, ElPagination as ce } from "element-plus/es";
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 de, useCssVars as me, useModel as he, useAttrs as ve, ref as f, computed as c, shallowRef as ye, inject as be, onMounted as Ce, onActivated as Se, watch as d, openBlock as i, createElementBlock as y, createBlock as b, unref as a, withCtx as C, createVNode as R, mergeProps as p, createCommentVNode as Ee, Fragment as T, renderList as xe, createSlots as _e, renderSlot as $, resolveDynamicComponent as V, createTextVNode as z, toDisplayString as Y, withDirectives as Te, createElementVNode as we, isRef as q, vShow as Pe, mergeModels as G } from "vue";
8
- import U from "lodash/cloneDeep";
9
- import D from "lodash/omit";
10
- import F from "lodash/set";
11
- import W from "lodash/get";
12
- import Ie from "./TableToolbar.vue.mjs";
13
- import Re from "../display/WatchSize.vue.mjs";
14
- import { pickExportColumns as ze } from "../../utils/export.mjs";
15
- import { BODY_CONTENT_VIEWPORT_HEIGHT as ke } from "../../inject/key.mjs";
16
- import { APP_API_LIST_MODEL_KEY_CONFIG as w } from "../../config/list-model.mjs";
17
- const He = { class: "table-main" }, Ne = { class: "table-main-pagination" }, We = /* @__PURE__ */ de({
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__ */ G({
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__ */ G(["pageChange", "pageSizeChange", "dataChange", "loadingChange", "pageInfoChange"], ["update:isAutoRefresh"]),
41
- setup(u, { expose: Z, emit: Q }) {
42
- me((e) => ({
43
- v4bebd1e5: e.headerColor
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 r = u, m = Q, k = he(u, "isAutoRefresh"), X = ve(), S = f([]), E = f(0), l = f(0), n = f(1), h = f(!1), P = f(!1), H = f([]), ee = c(() => ({
46
- columns: ze(r.columns),
47
- selectedList: H.value,
48
- currentPageList: S.value,
49
- api: r.api,
50
- query: r.query || {},
51
- total: E.value,
52
- hasSelection: r.columns.some((e) => e.type === "selection")
53
- })), N = f(0), te = (e) => {
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
- }, I = ye(), oe = be(
56
- ke,
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
- ), O = c(() => r.showPager ? 35 : 0), A = c(
59
- () => r.showToolbar ? N.value : 0
60
- ), re = c(() => {
61
- const { maxHeight: e, refine: t } = r;
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 - O.value - A.value,
64
- 200
71
+ e - A.value - L.value,
72
+ n
65
73
  ) : t ? Math.max(
66
- oe.value - O.value - A.value - r.refineReduceHeight,
67
- 200
74
+ ue.value - A.value - L.value - o.refineReduceHeight,
75
+ n
68
76
  ) : void 0;
69
- }), x = c(() => {
70
- const e = U(r.query || {});
71
- return F(e, w.PAGE_SIZE_KEY, l.value), F(
77
+ }), x = g(() => {
78
+ const e = Q(o.query || {});
79
+ return ee(e, H.PAGE_SIZE_KEY, u.value), ee(
72
80
  e,
73
- w.CURRENT_PAGE_KEY,
74
- n.value
81
+ H.CURRENT_PAGE_KEY,
82
+ s.value
75
83
  ), e;
76
- }), ae = c(() => {
84
+ }), fe = g(() => {
77
85
  var t;
78
- const e = (t = r.tableProps) == null ? void 0 : t.onSelectionChange;
86
+ const e = (t = o.tableProps) == null ? void 0 : t.onSelectionChange;
79
87
  return {
80
- ...r.tableProps,
81
- ...X,
88
+ ...o.tableProps,
89
+ ...ne,
82
90
  /** 合并内部选中存储与外部 onSelectionChange */
83
- onSelectionChange: (s) => {
84
- H.value = s, e == null || e(s);
91
+ onSelectionChange: (n) => {
92
+ V.value = n, e == null || e(n);
85
93
  }
86
94
  };
87
- }), L = (e, t = !0) => {
88
- const s = JSON.stringify(e) === JSON.stringify(x.value);
89
- return !s && t && console.warn(
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
- ), s;
94
- }, K = (e = !1) => {
95
- var s;
96
- if (!l.value) return;
97
- h.value ? console.warn("请求并发") : h.value = !0, e || (P.value = !0), (s = I.value) == null || s.clearSelection();
98
- const t = U(x.value);
99
- return r.api(t).then((_) => {
100
- L(t, !1) && (S.value = W(
101
- _,
102
- w.LIST_KEY
103
- ), E.value = W(
104
- _,
105
- w.TOTAL_KEY
106
- ), m("pageInfoChange", {
107
- pageSize: l.value,
108
- currentPage: n.value,
109
- total: E.value
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
- L(t) && (h.value = !1, P.value = !1);
120
+ M(t) && (C.value = !1, R.value = !1);
113
121
  });
114
122
  }, j = async (e = !1) => {
115
123
  var t;
116
- return (t = K(e)) == null ? void 0 : t.catch(() => {
124
+ return (t = B(e)) == null ? void 0 : t.catch(() => {
117
125
  });
118
- }, ne = async (e = !1) => {
119
- if (n.value === 1)
126
+ }, ce = async (e = !1) => {
127
+ if (s.value === 1)
120
128
  return j(e);
121
- n.value = 1;
122
- }, le = (e) => e, v = {
129
+ s.value = 1;
130
+ }, $ = (e) => e, ge = (e) => e, de = (e) => e, S = {
123
131
  refresh: j,
124
- reload: ne,
125
- getTableInstance: () => I.value
126
- }, B = (e, t = []) => ({
127
- ...D(e, ["render", "headerRender"].concat(t)),
128
- injectInfo: r.injectInfo || {},
129
- exposeInfo: v
130
- }), M = (e) => ({
131
- ...D(e, ["render", "headerRender"]),
132
- injectInfo: r.injectInfo || {},
133
- exposeInfo: v
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
- Z(v);
136
- const se = (e) => {
137
- l.value = e, n.value = 1;
138
- }, J = (e) => !e || e === "expand";
139
- return Ce(() => {
140
- l.value = r.pageSizeInit, Se(() => {
141
- v.refresh();
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
- }), d(S, (e) => {
144
- m("dataChange", e);
145
- }), d(
146
- () => r.query,
151
+ }), m(v, (e) => {
152
+ y("dataChange", e);
153
+ }), m(
154
+ () => o.query,
147
155
  (e, t) => {
148
- JSON.stringify(e) !== JSON.stringify(t) && (n.value = 1);
156
+ JSON.stringify(e) !== JSON.stringify(t) && (s.value = 1);
149
157
  }
150
- ), d(
158
+ ), m(
151
159
  x,
152
160
  (e, t) => {
153
- JSON.stringify(e) !== JSON.stringify(t) && K();
161
+ JSON.stringify(e) !== JSON.stringify(t) && B();
154
162
  },
155
163
  {
156
164
  immediate: !0
157
165
  }
158
- ), d(P, (e) => {
159
- m("loadingChange", e);
160
- }), d(l, (e) => {
161
- m("pageSizeChange", e);
162
- }), d(n, (e) => {
163
- m("pageChange", e);
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 s = ge, _ = pe, ie = fe, ue = ce;
166
- return i(), y("div", He, [
167
- u.showToolbar ? (i(), b(a(Re), {
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: te
177
+ onHeightChange: le
170
178
  }, {
171
- default: C(() => [
172
- R(Ie, p({
173
- "is-auto-refresh": k.value,
174
- "onUpdate:isAutoRefresh": t[0] || (t[0] = (o) => k.value = o),
175
- tableExpose: v,
176
- loading: a(h),
177
- exportContext: a(ee),
178
- currentPage: a(n),
179
- pageSize: a(l)
180
- }, u.toolbar), null, 16, ["is-auto-refresh", "loading", "exportContext", "currentPage", "pageSize"])
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
- })) : Ee("", !0),
184
- R(ie, p({
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: I,
210
+ ref: _,
187
211
  class: "table-main-table",
188
212
  stripe: "",
189
213
  border: "",
190
214
  highlightCurrentRow: ""
191
- }, a(ae), {
192
- maxHeight: a(re),
193
- data: a(S),
194
- rowKey: le(u.rowKey)
215
+ }, r(fe), {
216
+ maxHeight: r(K),
217
+ data: r(v),
218
+ rowKey: $(l.rowKey)
195
219
  }), {
196
- empty: C(() => [
197
- a(h) ? (i(), y(T, { key: 0 }, [
220
+ empty: h(() => [
221
+ r(C) ? (i(), b(T, { key: 0 }, [
198
222
  z("加载中...")
199
- ], 64)) : (i(), b(_, { key: 1 }))
223
+ ], 64)) : (i(), d(E, { key: 1 }))
200
224
  ]),
201
- default: C(() => [
202
- (i(!0), y(T, null, xe(u.columns, (o) => (i(), b(s, p({
203
- key: o.columnKey || o.prop
204
- }, { ref_for: !0 }, o), _e({ _: 2 }, [
205
- J(o.type) ? {
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: C((g) => [
208
- $(e.$slots, o.prop, p({ ref_for: !0 }, B(g)), () => [
209
- o.render ? (i(), b(V(o.render), p({
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
- }, B(g, ["$index"]), {
213
- _index: g.$index
214
- }), null, 16, ["_index"])) : (i(), y(T, { key: 1 }, [
215
- z(Y(g.row[o.prop]), 1)
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
- J(o.type) ? {
245
+ Y(a.type) ? {
222
246
  name: "header",
223
- fn: C((g) => [
224
- $(e.$slots, `header-${o.prop}`, p({ ref_for: !0 }, M(g)), () => [
225
- o.headerRender ? (i(), b(V(o.headerRender), p({
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
- }, M(g)), null, 16)) : (i(), y(T, { key: 1 }, [
229
- z(Y(o.label), 1)
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
- Te(we("div", Ne, [
240
- R(ue, {
241
- "current-page": a(n),
242
- "onUpdate:currentPage": t[1] || (t[1] = (o) => q(n) ? n.value = o : null),
243
- "page-size": a(l),
244
- "onUpdate:pageSize": t[2] || (t[2] = (o) => q(l) ? l.value = o : null),
245
- "page-sizes": u.pageSizeOptions,
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: u.pageLayout,
249
- total: a(E),
250
- onSizeChange: se
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
- [Pe, u.showPager]
277
+ [Ne, l.showPager]
254
278
  ])
255
279
  ]);
256
280
  };
257
281
  }
258
282
  });
259
283
  export {
260
- We as default
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 E } from "./components/misc/ActionButton.vue.mjs";
9
- import { default as M } from "./components/misc/ActionButtonDanger.vue.mjs";
10
- import { default as A } from "./components/misc/ActionButtonWarn.vue.mjs";
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 L } from "./components/form/FormMain.vue.mjs";
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 y } from "./components/form/FormTree.vue.mjs";
16
- import { default as N } from "./components/form/FormVerifyCode.vue.mjs";
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 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";
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 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";
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 Se } from "./components/form/FormVerifyImage.vue.mjs";
31
- import { default as Pe } from "./components/list-page/ListPage.vue.mjs";
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 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";
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
- E as ActionButton,
53
- M as ActionButtonDanger,
54
- A as ActionButtonWarn,
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
- Z as ConfirmModal,
58
+ $ as ConfirmModal,
58
59
  F as DetailModal,
59
- ee as EXPORT_MAX_LIMIT,
60
- me as FORM_CONFIG_SELECT_ALL_VALUE,
60
+ te as EXPORT_MAX_LIMIT,
61
+ fe as FORM_CONFIG_SELECT_ALL_VALUE,
61
62
  pe as FORM_ITEM_CHANGE_LOADING,
62
- L as FormMain,
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
- y as FormTree,
67
- N as FormVerifyCode,
68
- Se as FormVerifyImage,
69
- Pe as ListPage,
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
- w as MenuTree,
72
- te as OPERATE_COLUMN_PROP,
74
+ U as MenuTree,
75
+ oe as OPERATE_COLUMN_PROP,
73
76
  he as ROUTE_MODULE_LEVEL,
74
- Ne as TableMain,
75
- U as TabsMain,
77
+ Ge as TableMain,
78
+ He as TabsMain,
76
79
  ye as TabsMainReplaceQueryKey,
77
- H as TriggerAutoImport,
80
+ W as TriggerAutoImport,
78
81
  k as WatchSize,
79
- Ve as countAll,
80
- Ue as createGenerateRouteMetaRawTree,
81
- ve as createListApi,
82
- He as createStorageWithNamespace,
83
- ke as createUseState,
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
- oe as exportCSV,
86
- we as fetchListAll,
87
- Xe as flatRouteMetaResolveRaw,
88
+ re as exportCSV,
89
+ Be as fetchListAll,
90
+ je as flatRouteMetaResolveRaw,
88
91
  t as formInstall,
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,
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
- Ye as getRoutePermissionKey,
98
- ge as getVModelSugar,
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
- 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,
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
- 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
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
  };