@done-coding/admin-core 0.16.0 → 0.17.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 (54) hide show
  1. package/es/components/app-layout/AppBody.vue.mjs +1 -1
  2. package/es/components/app-layout/AppBody.vue2.mjs +43 -39
  3. package/es/components/app-layout/AppPage.vue.mjs +2 -2
  4. package/es/components/app-layout/AppPage.vue2.mjs +114 -105
  5. package/es/components/display/TabsHeader.vue.mjs +2 -2
  6. package/es/components/display/TabsHeader.vue2.mjs +31 -32
  7. package/es/components/display/TabsRefineFlow.vue.mjs +30 -32
  8. package/es/components/display/TabsTile.vue.mjs +2 -2
  9. package/es/components/display/WatchSize.vue.mjs +34 -31
  10. package/es/components/form/FormMain.vue.mjs +2 -2
  11. package/es/components/form/FormMain.vue2.mjs +80 -75
  12. package/es/components/form/FormSearch.vue.mjs +1 -1
  13. package/es/components/form/FormSearch.vue2.mjs +82 -80
  14. package/es/components/form/FormSubmitPanel.vue2.mjs +11 -10
  15. package/es/components/form/use-layout-by-container.mjs +20 -0
  16. package/es/components/list-page/ListPage.vue.mjs +2 -2
  17. package/es/components/list-page/ListPage.vue2.mjs +167 -137
  18. package/es/components/list-page/use-sticky.mjs +41 -0
  19. package/es/components/modal/ConfirmModal.vue.mjs +3 -2
  20. package/es/components/modal/ConfirmModal.vue2.mjs +104 -55
  21. package/es/components/modal/DetailModal.vue.mjs +40 -34
  22. package/es/components/modal/ModalPorter.vue.mjs +20 -23
  23. package/es/components/table/TableMain.vue.mjs +1 -1
  24. package/es/components/table/TableMain.vue2.mjs +27 -28
  25. package/es/hooks/activated.mjs +16 -24
  26. package/es/hooks/use-breakpoint.mjs +17 -21
  27. package/es/hooks/use-channel-viewport-height.mjs +26 -8
  28. package/es/hooks/use-observe-size.mjs +26 -0
  29. package/es/index.mjs +177 -173
  30. package/es/inject/key.mjs +18 -15
  31. package/es/style.css +1 -1
  32. package/es/utils/dom.mjs +11 -1
  33. package/package.json +2 -2
  34. package/types/components/app-layout/AppPage.vue.d.ts +8 -0
  35. package/types/components/display/TabsTile.vue.d.ts +2 -2
  36. package/types/components/display/WatchSize.vue.d.ts +4 -0
  37. package/types/components/display/types.d.ts +1 -5
  38. package/types/components/form/FormItem.vue.d.ts +8 -8
  39. package/types/components/form/FormMain.vue.d.ts +1 -12
  40. package/types/components/form/FormSubmitPanel.vue.d.ts +1 -1
  41. package/types/components/form/types.d.ts +1 -0
  42. package/types/components/form/use-layout-by-container.d.ts +11 -0
  43. package/types/components/list-page/ListPage.vue.d.ts +6 -1
  44. package/types/components/list-page/types.d.ts +5 -0
  45. package/types/components/list-page/use-sticky.d.ts +19 -0
  46. package/types/components/modal/ConfirmModal.vue.d.ts +15 -3
  47. package/types/components/modal/DetailModal.vue.d.ts +4 -1
  48. package/types/components/panel/PanelItemNestForm.vue.d.ts +1 -1
  49. package/types/hooks/index.d.ts +1 -0
  50. package/types/hooks/use-channel-viewport-height.d.ts +2 -1
  51. package/types/hooks/use-observe-size.d.ts +7 -0
  52. package/types/inject/key.d.ts +8 -2
  53. package/types/injectInfo.json.d.ts +1 -1
  54. package/types/utils/dom.d.ts +1 -0
@@ -1,16 +1,17 @@
1
- import { defineComponent as pe, useCssVars as we, useSlots as Se, computed as o, useModel as y, ref as l, shallowRef as N, watch as ye, withDirectives as Ce, openBlock as C, createBlock as H, unref as h, withCtx as i, createVNode as E, mergeProps as b, createSlots as U, renderSlot as f, normalizeProps as V, guardReactiveProps as I, renderList as R, createCommentVNode as J, mergeModels as Q } from "vue";
2
- import { vLoading as He } from "element-plus";
3
- import be from "../form/FormSearch.vue.mjs";
4
- import { generateFormData as Ve, stringifyFormData as Ie } from "../form/utils.mjs";
5
- import z from "../display/WatchSize.vue.mjs";
6
- import Re from "../table/TableMain.vue.mjs";
7
- import Me from "../slot-layout/SlotLayoutFlowAside.vue.mjs";
8
- import $e from "lodash/pick";
9
- import Ae from "lodash/cloneDeep";
10
- import { useChannelViewportHeight as Fe } from "../../hooks/use-channel-viewport-height.mjs";
11
- const qe = /* @__PURE__ */ pe({
1
+ import { defineComponent as He, useCssVars as Re, unref as i, useSlots as Ve, computed as s, useModel as C, ref as u, shallowRef as q, watch as Ie, withDirectives as Ae, openBlock as k, createBlock as H, normalizeClass as Be, withCtx as n, createVNode as N, mergeProps as R, createSlots as E, renderSlot as f, normalizeProps as V, guardReactiveProps as I, renderList as A, createCommentVNode as U, mergeModels as J } from "vue";
2
+ import { vLoading as Me } from "element-plus";
3
+ import $e from "../form/FormSearch.vue.mjs";
4
+ import { generateFormData as Fe, stringifyFormData as Pe } from "../form/utils.mjs";
5
+ import { useListPageSticky as je } from "./use-sticky.mjs";
6
+ import Q from "../display/WatchSize.vue.mjs";
7
+ import ze from "../table/TableMain.vue.mjs";
8
+ import De from "../slot-layout/SlotLayoutFlowAside.vue.mjs";
9
+ import Oe from "lodash/pick";
10
+ import xe from "lodash/cloneDeep";
11
+ import { useChannelViewportHeight as Te } from "../../hooks/use-channel-viewport-height.mjs";
12
+ const Ye = /* @__PURE__ */ He({
12
13
  __name: "ListPage",
13
- props: /* @__PURE__ */ Q({
14
+ props: /* @__PURE__ */ J({
14
15
  staticQuery: { default: () => ({}) },
15
16
  formSearchProps: {},
16
17
  columns: {},
@@ -29,7 +30,12 @@ const qe = /* @__PURE__ */ pe({
29
30
  beforeSearch: {},
30
31
  clearTableFilterOnReset: { type: Boolean },
31
32
  separateSearch: { type: Boolean, default: !1 },
32
- separateSearchConfig: {}
33
+ separateSearchConfig: {},
34
+ searchSticky: { type: Boolean, default: !1 },
35
+ toolbarSticky: { type: Boolean, default: !1 },
36
+ pagerSticky: { type: Boolean, default: !1 },
37
+ headerObserveResize: { type: Boolean, default: !1 },
38
+ operationObserveResize: { type: Boolean, default: !1 }
33
39
  }, {
34
40
  isAutoRefresh: { type: Boolean },
35
41
  isAutoRefreshModifiers: {},
@@ -38,207 +44,231 @@ const qe = /* @__PURE__ */ pe({
38
44
  customView: { type: Boolean, default: !1 },
39
45
  customViewModifiers: {}
40
46
  }),
41
- emits: /* @__PURE__ */ Q(["dataChange", "pageInfoChange"], ["update:isAutoRefresh", "update:refreshInterval", "update:customView"]),
42
- setup(r, { expose: W, emit: G }) {
43
- we((e) => ({
44
- v4d27171c: te.value
47
+ emits: /* @__PURE__ */ J(["dataChange", "pageInfoChange"], ["update:isAutoRefresh", "update:refreshInterval", "update:customView"]),
48
+ setup(a, { expose: W, emit: G }) {
49
+ Re((e) => ({
50
+ v41370796: ne.value,
51
+ v561cdcbe: i(re),
52
+ v176bdd58: i(oe),
53
+ v3cef8d58: i(se)
45
54
  }));
46
- const s = r, M = G, $ = Se(), A = o(() => !!$.header), F = o(() => !!$.operation), p = y(r, "isAutoRefresh"), k = y(r, "refreshInterval"), P = y(r, "customView"), w = l({}), S = l(
55
+ const o = a, B = G, M = Ve(), $ = s(() => !!M.header), F = s(() => !!M.operation), m = C(a, "isAutoRefresh"), P = C(a, "refreshInterval"), j = C(a, "customView"), y = u({}), S = u(
47
56
  {}
48
- ), j = l(!1), n = N(), u = N(), { viewportHeightFinal: X } = Fe(s, {
49
- fallback: 500
50
- }), D = l(0), x = l(0), B = l(0), Y = o(() => ({
57
+ ), z = u(!1), l = q(), c = q(), { viewportHeightFinal: X } = Te(o), w = u(0), D = u(0), O = u(0), Y = s(() => ({
51
58
  ...S.value,
52
- ...s.staticQuery
53
- })), K = l(!1), Z = o(() => K.value ? D.value + 10 : 0), _ = o(() => F.value ? x.value + 10 : 0), ee = o(() => A.value ? B.value + 10 : 0), m = o(() => X.value - s.refineReduceHeight), te = o(() => s.refine ? `${m.value}px` : "auto"), ae = o(() => {
54
- if (s.refine)
55
- return s.separateSearch ? m.value : m.value - Z.value - _.value - ee.value;
56
- }), re = o(
57
- () => s.refine ? `${m.value}px` : "100vh"
58
- ), L = (e, t = "search") => {
59
- var g, d, a;
60
- let c = e;
61
- if (s.beforeSearch && (c = s.beforeSearch(
62
- Ae(e),
59
+ ...o.staticQuery
60
+ })), b = u(!1), Z = s(() => b.value ? w.value + 10 : 0), {
61
+ layoutRoot: _,
62
+ searchStickyActive: ee,
63
+ toolbarStickyActive: te,
64
+ pagerStickyActive: ae,
65
+ searchStickyTop: re,
66
+ toolbarStickyTop: oe,
67
+ pagerStickyBottom: se
68
+ } = je({
69
+ searchSticky: () => o.searchSticky,
70
+ toolbarSticky: () => o.toolbarSticky,
71
+ pagerSticky: () => o.pagerSticky,
72
+ separateSearch: () => o.separateSearch,
73
+ searchHeight: () => w.value,
74
+ showSearch: () => b.value
75
+ }), ie = s(() => F.value ? D.value + 10 : 0), le = s(() => $.value ? O.value + 10 : 0), p = s(() => X.value - o.refineReduceHeight), ne = s(() => o.refine ? `${p.value}px` : "auto"), ue = s(() => {
76
+ if (o.refine)
77
+ return o.separateSearch ? p.value : p.value - Z.value - ie.value - le.value;
78
+ }), ce = s(
79
+ () => o.refine ? `${p.value}px` : "100vh"
80
+ ), x = (e, t = "search") => {
81
+ var g, v, r;
82
+ let h = e;
83
+ if (o.beforeSearch && (h = o.beforeSearch(
84
+ xe(e),
63
85
  t
64
- )), t === "reset" && s.clearTableFilterOnReset && ((d = (g = u.value) == null ? void 0 : g.getTableInstance()) == null || d.clearFilter()), JSON.stringify(c) === JSON.stringify(S.value))
65
- return ["reset", "search"].includes(t) ? (a = u.value) == null ? void 0 : a.reload() : void 0;
86
+ )), t === "reset" && o.clearTableFilterOnReset && ((v = (g = c.value) == null ? void 0 : g.getTableInstance()) == null || v.clearFilter()), JSON.stringify(h) === JSON.stringify(S.value))
87
+ return ["reset", "search"].includes(t) ? (r = c.value) == null ? void 0 : r.reload() : void 0;
66
88
  S.value = {
67
- ...c
89
+ ...h
68
90
  };
69
- }, oe = (e) => {
70
- M("dataChange", e);
71
- }, se = (e) => {
72
- M("pageInfoChange", e);
73
- }, ne = (e) => {
74
- j.value = e;
75
- }, ie = (e) => {
91
+ }, he = (e) => {
92
+ B("dataChange", e);
93
+ }, fe = (e) => {
94
+ B("pageInfoChange", e);
95
+ }, ge = (e) => {
96
+ z.value = e;
97
+ }, ve = (e) => {
98
+ w.value = e;
99
+ }, de = (e) => {
76
100
  D.value = e;
77
- }, le = (e) => {
78
- x.value = e;
79
- }, ue = (e) => {
80
- B.value = e;
81
- }, ce = o(() => s.list), he = o(() => s.rowKey), O = o(() => w.value), T = {
101
+ }, pe = (e) => {
102
+ O.value = e;
103
+ }, me = s(() => o.list), ye = s(() => o.rowKey), T = s(() => y.value), L = {
82
104
  refresh: async (e = !1) => {
83
105
  var t;
84
- return (t = u.value) == null ? void 0 : t.refresh(e);
106
+ return (t = c.value) == null ? void 0 : t.refresh(e);
85
107
  },
86
108
  reload: async (e = !1) => {
87
109
  var t;
88
- return (t = u.value) == null ? void 0 : t.reload(e);
110
+ return (t = c.value) == null ? void 0 : t.reload(e);
89
111
  },
90
112
  getTableInstance: () => {
91
113
  var e;
92
- return (e = u.value) == null ? void 0 : e.getTableInstance();
114
+ return (e = c.value) == null ? void 0 : e.getTableInstance();
93
115
  },
94
116
  validate: () => {
95
- if (n.value)
96
- return n.value.validate();
117
+ if (l.value)
118
+ return l.value.validate();
97
119
  throw new Error("实例化未完成");
98
120
  },
99
121
  resetFields: () => {
100
122
  var e;
101
- return (e = n.value) == null ? void 0 : e.resetFields();
123
+ return (e = l.value) == null ? void 0 : e.resetFields();
102
124
  },
103
125
  clearValidate: (e) => {
104
126
  var t;
105
- return (t = n.value) == null ? void 0 : t.clearValidate(e);
127
+ return (t = l.value) == null ? void 0 : t.clearValidate(e);
106
128
  },
107
129
  triggerReset: () => {
108
130
  var e;
109
- return (e = n.value) == null ? void 0 : e.triggerReset();
131
+ return (e = l.value) == null ? void 0 : e.triggerReset();
110
132
  },
111
133
  triggerSearch: () => {
112
134
  var e;
113
- return (e = n.value) == null ? void 0 : e.triggerSearch();
135
+ return (e = l.value) == null ? void 0 : e.triggerSearch();
114
136
  },
115
137
  toggleCollapse: (e) => {
116
138
  var t;
117
- return (t = n.value) == null ? void 0 : t.toggleCollapse(e);
139
+ return (t = l.value) == null ? void 0 : t.toggleCollapse(e);
118
140
  },
119
- isCollapsed: o(() => {
141
+ isCollapsed: s(() => {
120
142
  var e;
121
- return ((e = n.value) == null ? void 0 : e.isCollapsed.value) ?? !1;
143
+ return ((e = l.value) == null ? void 0 : e.isCollapsed.value) ?? !1;
122
144
  }),
123
145
  update: (e, t) => {
124
- w.value[e] = t;
146
+ y.value[e] = t;
125
147
  }
126
- }, fe = o(() => {
127
- const e = $e(T, [
148
+ }, Se = s(() => {
149
+ const e = Oe(L, [
128
150
  "triggerReset",
129
151
  "triggerSearch",
130
152
  "update"
131
153
  ]);
132
154
  return {
133
- ...s.injectInfo || {},
155
+ ...o.injectInfo || {},
134
156
  ...e
135
157
  };
136
- }), ge = (e) => e, de = (e) => e, ve = (e) => e, me = (e) => {
137
- K.value = e;
158
+ }), we = (e) => e, be = (e) => e, Ce = (e) => e, ke = (e) => {
159
+ b.value = e;
138
160
  };
139
- return W(T), ye(
140
- () => s.list,
161
+ return W(L), Ie(
162
+ () => o.list,
141
163
  (e) => {
142
- const t = Ve(e);
143
- w.value = t, L(Ie(t, e));
164
+ const t = Fe(e);
165
+ y.value = t, x(Pe(t, e));
144
166
  },
145
167
  {
146
168
  immediate: !0
147
169
  }
148
170
  ), (e, t) => {
149
- var c, g, d;
150
- return Ce((C(), H(h(Me), {
171
+ var h, g, v;
172
+ return Ae((k(), H(i(De), {
173
+ ref_key: "layoutRoot",
174
+ ref: _,
151
175
  "element-loading-background": "rgba(122, 122, 122, 0.5)",
152
- class: "dc-list-page list-page",
153
- separate: r.separateSearch,
154
- type: (c = r.separateSearchConfig) == null ? void 0 : c.type,
155
- gap: (g = r.separateSearchConfig) == null ? void 0 : g.gap,
156
- "aside-width": (d = r.separateSearchConfig) == null ? void 0 : d.asideWidth,
157
- "aside-max-height": re.value
176
+ class: Be(["dc-list-page list-page", {
177
+ "list-page_search-sticky": i(ee),
178
+ "list-page_toolbar-sticky": i(te),
179
+ "list-page_pager-sticky": i(ae)
180
+ }]),
181
+ separate: a.separateSearch,
182
+ type: (h = a.separateSearchConfig) == null ? void 0 : h.type,
183
+ gap: (g = a.separateSearchConfig) == null ? void 0 : g.gap,
184
+ "aside-width": (v = a.separateSearchConfig) == null ? void 0 : v.asideWidth,
185
+ "aside-max-height": ce.value
158
186
  }, {
159
- aside: i(() => [
160
- A.value ? (C(), H(h(z), {
187
+ aside: n(() => [
188
+ $.value ? (k(), H(i(Q), {
161
189
  key: 0,
162
190
  class: "list-page-header",
163
- onHeightChange: ue
191
+ "observe-resize": a.headerObserveResize,
192
+ onHeightChange: pe
164
193
  }, {
165
- default: i(() => [
194
+ default: n(() => [
166
195
  f(e.$slots, "header", {}, void 0, !0)
167
196
  ]),
168
197
  _: 3
169
- })) : J("", !0),
170
- E(h(be), b({
198
+ }, 8, ["observe-resize"])) : U("", !0),
199
+ N(i($e), R({
171
200
  ref_key: "formSearch",
172
- ref: n,
173
- list: ce.value,
174
- data: O.value
175
- }, r.formSearchProps, {
176
- compact: r.separateSearch,
177
- onSearch: L,
178
- onHeightChange: ie,
179
- onVisibleChange: me
180
- }), U({ _: 2 }, [
181
- R(r.list, (a) => ({
182
- name: a.key,
183
- fn: i((v) => [
184
- f(e.$slots, `form-${a.key}`, V(I(v)), void 0, !0)
201
+ ref: l,
202
+ list: me.value,
203
+ data: T.value
204
+ }, a.formSearchProps, {
205
+ compact: a.separateSearch,
206
+ onSearch: x,
207
+ onHeightChange: ve,
208
+ onVisibleChange: ke
209
+ }), E({ _: 2 }, [
210
+ A(a.list, (r) => ({
211
+ name: r.key,
212
+ fn: n((d) => [
213
+ f(e.$slots, `form-${r.key}`, V(I(d)), void 0, !0)
185
214
  ])
186
215
  }))
187
216
  ]), 1040, ["list", "data", "compact"]),
188
- F.value ? (C(), H(h(z), {
217
+ F.value ? (k(), H(i(Q), {
189
218
  key: 1,
190
219
  class: "list-page-operation",
191
- onHeightChange: le
220
+ "observe-resize": a.operationObserveResize,
221
+ onHeightChange: de
192
222
  }, {
193
- default: i(() => [
223
+ default: n(() => [
194
224
  f(e.$slots, "operation", {}, void 0, !0)
195
225
  ]),
196
226
  _: 3
197
- })) : J("", !0)
227
+ }, 8, ["observe-resize"])) : U("", !0)
198
228
  ]),
199
- default: i(() => [
200
- E(h(Re), b({
229
+ default: n(() => [
230
+ N(i(ze), R({
201
231
  ref_key: "tableMain",
202
- ref: u,
203
- "is-auto-refresh": p.value,
204
- "onUpdate:isAutoRefresh": t[0] || (t[0] = (a) => p.value = a),
205
- "refresh-interval": k.value,
206
- "onUpdate:refreshInterval": t[1] || (t[1] = (a) => k.value = a),
207
- "custom-view": P.value,
208
- "onUpdate:customView": t[2] || (t[2] = (a) => P.value = a),
209
- api: r.api,
210
- columns: r.columns,
232
+ ref: c,
233
+ "is-auto-refresh": m.value,
234
+ "onUpdate:isAutoRefresh": t[0] || (t[0] = (r) => m.value = r),
235
+ "refresh-interval": P.value,
236
+ "onUpdate:refreshInterval": t[1] || (t[1] = (r) => P.value = r),
237
+ "custom-view": j.value,
238
+ "onUpdate:customView": t[2] || (t[2] = (r) => j.value = r),
239
+ api: a.api,
240
+ columns: a.columns,
211
241
  query: Y.value,
212
- maxHeight: ae.value,
213
- rowKey: he.value,
214
- toolbar: r.toolbar,
215
- showSwitchView: r.showSwitchView
216
- }, r.tableMainProps, {
242
+ maxHeight: ue.value,
243
+ rowKey: ye.value,
244
+ toolbar: a.toolbar,
245
+ showSwitchView: a.showSwitchView
246
+ }, a.tableMainProps, {
217
247
  refine: !1,
218
- injectInfo: fe.value,
219
- onLoadingChange: ne,
220
- onDataChange: oe,
221
- onPageInfoChange: se
222
- }), U({
223
- "custom-view-item": i((a) => [
224
- f(e.$slots, "custom-view-item", V(I(ve(a))), void 0, !0)
248
+ injectInfo: Se.value,
249
+ onLoadingChange: ge,
250
+ onDataChange: he,
251
+ onPageInfoChange: fe
252
+ }), E({
253
+ "custom-view-item": n((r) => [
254
+ f(e.$slots, "custom-view-item", V(I(Ce(r))), void 0, !0)
225
255
  ]),
226
256
  _: 2
227
257
  }, [
228
- R(r.columns, (a) => ({
229
- name: a.prop,
230
- fn: i((v) => [
231
- f(e.$slots, `table-${a.prop}`, V(I(ge(v))), void 0, !0)
258
+ A(a.columns, (r) => ({
259
+ name: r.prop,
260
+ fn: n((d) => [
261
+ f(e.$slots, `table-${r.prop}`, V(I(we(d))), void 0, !0)
232
262
  ])
233
263
  })),
234
- R(r.columns, (a) => ({
235
- name: `header-${a.prop}`,
236
- fn: i((v) => {
237
- var q;
264
+ A(a.columns, (r) => ({
265
+ name: `header-${r.prop}`,
266
+ fn: n((d) => {
267
+ var K;
238
268
  return [
239
- f(e.$slots, `table-header-${a.columnKey || a.prop}`, b(de(v), {
240
- searchFormData: O.value,
241
- triggerSearch: (q = n.value) == null ? void 0 : q.triggerSearch
269
+ f(e.$slots, `table-header-${r.columnKey || r.prop}`, R(be(d), {
270
+ searchFormData: T.value,
271
+ triggerSearch: (K = l.value) == null ? void 0 : K.triggerSearch
242
272
  }), void 0, !0)
243
273
  ];
244
274
  })
@@ -246,12 +276,12 @@ const qe = /* @__PURE__ */ pe({
246
276
  ]), 1040, ["is-auto-refresh", "refresh-interval", "custom-view", "api", "columns", "query", "maxHeight", "rowKey", "toolbar", "showSwitchView", "injectInfo"])
247
277
  ]),
248
278
  _: 3
249
- }, 8, ["separate", "type", "gap", "aside-width", "aside-max-height"])), [
250
- [h(He), !p.value && j.value]
279
+ }, 8, ["class", "separate", "type", "gap", "aside-width", "aside-max-height"])), [
280
+ [i(Me), !m.value && z.value]
251
281
  ]);
252
282
  };
253
283
  }
254
284
  });
255
285
  export {
256
- qe as default
286
+ Ye as default
257
287
  };
@@ -0,0 +1,41 @@
1
+ import { computed as c, shallowRef as k, inject as p, watch as h, nextTick as A } from "vue";
2
+ import { APP_PAGE_CONTENT_INSET as f } from "../../inject/key.mjs";
3
+ import { useActivated as T } from "../../hooks/activated.mjs";
4
+ import { domClosestStickyScrollport as d } from "../../utils/dom.mjs";
5
+ function w(e) {
6
+ const r = c(
7
+ () => e.searchSticky() && !e.separateSearch()
8
+ ), i = c(() => e.toolbarSticky()), l = c(() => e.pagerSticky()), s = k(), o = p(f, void 0), a = k(), u = c(
9
+ () => r.value || i.value || l.value
10
+ ), v = () => {
11
+ var t;
12
+ u.value && (a.value = d(
13
+ (t = s.value) == null ? void 0 : t.$el
14
+ ));
15
+ };
16
+ T((t) => {
17
+ t.isActivated && v();
18
+ }), h(u, (t) => {
19
+ t && A(v);
20
+ });
21
+ const S = c(
22
+ () => a.value ? 0 : (o == null ? void 0 : o.value.top) ?? 0
23
+ ), y = c(() => `${S.value}px`), n = c(() => {
24
+ const t = r.value && e.showSearch() ? e.searchHeight() : 0;
25
+ return `${S.value + t}px`;
26
+ }), m = c(
27
+ () => a.value ? "0px" : `${(o == null ? void 0 : o.value.bottom) ?? 0}px`
28
+ );
29
+ return {
30
+ layoutRoot: s,
31
+ searchStickyActive: r,
32
+ toolbarStickyActive: i,
33
+ pagerStickyActive: l,
34
+ searchStickyTop: y,
35
+ toolbarStickyTop: n,
36
+ pagerStickyBottom: m
37
+ };
38
+ }
39
+ export {
40
+ w as useListPageSticky
41
+ };
@@ -1,7 +1,8 @@
1
1
  import o from "./ConfirmModal.vue2.mjs";
2
2
  /* empty css */
3
+ /* empty css */
3
4
  import r from "../../_virtual/_plugin-vue_export-helper.mjs";
4
- const f = /* @__PURE__ */ r(o, [["__scopeId", "data-v-6ce57009"]]);
5
+ const c = /* @__PURE__ */ r(o, [["__scopeId", "data-v-64018cc0"]]);
5
6
  export {
6
- f as default
7
+ c as default
7
8
  };