@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.
- package/es/components/app-layout/AppBody.vue.mjs +1 -1
- package/es/components/app-layout/AppBody.vue2.mjs +43 -39
- package/es/components/app-layout/AppPage.vue.mjs +2 -2
- package/es/components/app-layout/AppPage.vue2.mjs +114 -105
- package/es/components/display/TabsHeader.vue.mjs +2 -2
- package/es/components/display/TabsHeader.vue2.mjs +31 -32
- package/es/components/display/TabsRefineFlow.vue.mjs +30 -32
- package/es/components/display/TabsTile.vue.mjs +2 -2
- package/es/components/display/WatchSize.vue.mjs +34 -31
- package/es/components/form/FormMain.vue.mjs +2 -2
- package/es/components/form/FormMain.vue2.mjs +80 -75
- package/es/components/form/FormSearch.vue.mjs +1 -1
- package/es/components/form/FormSearch.vue2.mjs +82 -80
- package/es/components/form/FormSubmitPanel.vue2.mjs +11 -10
- package/es/components/form/use-layout-by-container.mjs +20 -0
- package/es/components/list-page/ListPage.vue.mjs +2 -2
- package/es/components/list-page/ListPage.vue2.mjs +167 -137
- package/es/components/list-page/use-sticky.mjs +41 -0
- package/es/components/modal/ConfirmModal.vue.mjs +3 -2
- package/es/components/modal/ConfirmModal.vue2.mjs +104 -55
- package/es/components/modal/DetailModal.vue.mjs +40 -34
- package/es/components/modal/ModalPorter.vue.mjs +20 -23
- package/es/components/table/TableMain.vue.mjs +1 -1
- package/es/components/table/TableMain.vue2.mjs +27 -28
- package/es/hooks/activated.mjs +16 -24
- package/es/hooks/use-breakpoint.mjs +17 -21
- package/es/hooks/use-channel-viewport-height.mjs +26 -8
- package/es/hooks/use-observe-size.mjs +26 -0
- package/es/index.mjs +177 -173
- package/es/inject/key.mjs +18 -15
- package/es/style.css +1 -1
- package/es/utils/dom.mjs +11 -1
- package/package.json +2 -2
- package/types/components/app-layout/AppPage.vue.d.ts +8 -0
- package/types/components/display/TabsTile.vue.d.ts +2 -2
- package/types/components/display/WatchSize.vue.d.ts +4 -0
- package/types/components/display/types.d.ts +1 -5
- package/types/components/form/FormItem.vue.d.ts +8 -8
- package/types/components/form/FormMain.vue.d.ts +1 -12
- package/types/components/form/FormSubmitPanel.vue.d.ts +1 -1
- package/types/components/form/types.d.ts +1 -0
- package/types/components/form/use-layout-by-container.d.ts +11 -0
- package/types/components/list-page/ListPage.vue.d.ts +6 -1
- package/types/components/list-page/types.d.ts +5 -0
- package/types/components/list-page/use-sticky.d.ts +19 -0
- package/types/components/modal/ConfirmModal.vue.d.ts +15 -3
- package/types/components/modal/DetailModal.vue.d.ts +4 -1
- package/types/components/panel/PanelItemNestForm.vue.d.ts +1 -1
- package/types/hooks/index.d.ts +1 -0
- package/types/hooks/use-channel-viewport-height.d.ts +2 -1
- package/types/hooks/use-observe-size.d.ts +7 -0
- package/types/inject/key.d.ts +8 -2
- package/types/injectInfo.json.d.ts +1 -1
- package/types/utils/dom.d.ts +1 -0
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { vLoading as
|
|
3
|
-
import
|
|
4
|
-
import { generateFormData as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
|
|
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__ */
|
|
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__ */
|
|
42
|
-
setup(
|
|
43
|
-
|
|
44
|
-
|
|
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
|
|
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
|
-
),
|
|
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
|
-
...
|
|
53
|
-
})),
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
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" &&
|
|
65
|
-
return ["reset", "search"].includes(t) ? (
|
|
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
|
-
...
|
|
89
|
+
...h
|
|
68
90
|
};
|
|
69
|
-
},
|
|
70
|
-
|
|
71
|
-
},
|
|
72
|
-
|
|
73
|
-
},
|
|
74
|
-
|
|
75
|
-
},
|
|
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
|
-
},
|
|
78
|
-
|
|
79
|
-
},
|
|
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 =
|
|
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 =
|
|
110
|
+
return (t = c.value) == null ? void 0 : t.reload(e);
|
|
89
111
|
},
|
|
90
112
|
getTableInstance: () => {
|
|
91
113
|
var e;
|
|
92
|
-
return (e =
|
|
114
|
+
return (e = c.value) == null ? void 0 : e.getTableInstance();
|
|
93
115
|
},
|
|
94
116
|
validate: () => {
|
|
95
|
-
if (
|
|
96
|
-
return
|
|
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 =
|
|
123
|
+
return (e = l.value) == null ? void 0 : e.resetFields();
|
|
102
124
|
},
|
|
103
125
|
clearValidate: (e) => {
|
|
104
126
|
var t;
|
|
105
|
-
return (t =
|
|
127
|
+
return (t = l.value) == null ? void 0 : t.clearValidate(e);
|
|
106
128
|
},
|
|
107
129
|
triggerReset: () => {
|
|
108
130
|
var e;
|
|
109
|
-
return (e =
|
|
131
|
+
return (e = l.value) == null ? void 0 : e.triggerReset();
|
|
110
132
|
},
|
|
111
133
|
triggerSearch: () => {
|
|
112
134
|
var e;
|
|
113
|
-
return (e =
|
|
135
|
+
return (e = l.value) == null ? void 0 : e.triggerSearch();
|
|
114
136
|
},
|
|
115
137
|
toggleCollapse: (e) => {
|
|
116
138
|
var t;
|
|
117
|
-
return (t =
|
|
139
|
+
return (t = l.value) == null ? void 0 : t.toggleCollapse(e);
|
|
118
140
|
},
|
|
119
|
-
isCollapsed:
|
|
141
|
+
isCollapsed: s(() => {
|
|
120
142
|
var e;
|
|
121
|
-
return ((e =
|
|
143
|
+
return ((e = l.value) == null ? void 0 : e.isCollapsed.value) ?? !1;
|
|
122
144
|
}),
|
|
123
145
|
update: (e, t) => {
|
|
124
|
-
|
|
146
|
+
y.value[e] = t;
|
|
125
147
|
}
|
|
126
|
-
},
|
|
127
|
-
const e =
|
|
148
|
+
}, Se = s(() => {
|
|
149
|
+
const e = Oe(L, [
|
|
128
150
|
"triggerReset",
|
|
129
151
|
"triggerSearch",
|
|
130
152
|
"update"
|
|
131
153
|
]);
|
|
132
154
|
return {
|
|
133
|
-
...
|
|
155
|
+
...o.injectInfo || {},
|
|
134
156
|
...e
|
|
135
157
|
};
|
|
136
|
-
}),
|
|
137
|
-
|
|
158
|
+
}), we = (e) => e, be = (e) => e, Ce = (e) => e, ke = (e) => {
|
|
159
|
+
b.value = e;
|
|
138
160
|
};
|
|
139
|
-
return W(
|
|
140
|
-
() =>
|
|
161
|
+
return W(L), Ie(
|
|
162
|
+
() => o.list,
|
|
141
163
|
(e) => {
|
|
142
|
-
const t =
|
|
143
|
-
|
|
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
|
|
150
|
-
return
|
|
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
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
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:
|
|
160
|
-
|
|
187
|
+
aside: n(() => [
|
|
188
|
+
$.value ? (k(), H(i(Q), {
|
|
161
189
|
key: 0,
|
|
162
190
|
class: "list-page-header",
|
|
163
|
-
|
|
191
|
+
"observe-resize": a.headerObserveResize,
|
|
192
|
+
onHeightChange: pe
|
|
164
193
|
}, {
|
|
165
|
-
default:
|
|
194
|
+
default: n(() => [
|
|
166
195
|
f(e.$slots, "header", {}, void 0, !0)
|
|
167
196
|
]),
|
|
168
197
|
_: 3
|
|
169
|
-
})) :
|
|
170
|
-
|
|
198
|
+
}, 8, ["observe-resize"])) : U("", !0),
|
|
199
|
+
N(i($e), R({
|
|
171
200
|
ref_key: "formSearch",
|
|
172
|
-
ref:
|
|
173
|
-
list:
|
|
174
|
-
data:
|
|
175
|
-
},
|
|
176
|
-
compact:
|
|
177
|
-
onSearch:
|
|
178
|
-
onHeightChange:
|
|
179
|
-
onVisibleChange:
|
|
180
|
-
}),
|
|
181
|
-
|
|
182
|
-
name:
|
|
183
|
-
fn:
|
|
184
|
-
f(e.$slots, `form-${
|
|
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 ? (
|
|
217
|
+
F.value ? (k(), H(i(Q), {
|
|
189
218
|
key: 1,
|
|
190
219
|
class: "list-page-operation",
|
|
191
|
-
|
|
220
|
+
"observe-resize": a.operationObserveResize,
|
|
221
|
+
onHeightChange: de
|
|
192
222
|
}, {
|
|
193
|
-
default:
|
|
223
|
+
default: n(() => [
|
|
194
224
|
f(e.$slots, "operation", {}, void 0, !0)
|
|
195
225
|
]),
|
|
196
226
|
_: 3
|
|
197
|
-
})) :
|
|
227
|
+
}, 8, ["observe-resize"])) : U("", !0)
|
|
198
228
|
]),
|
|
199
|
-
default:
|
|
200
|
-
|
|
229
|
+
default: n(() => [
|
|
230
|
+
N(i(ze), R({
|
|
201
231
|
ref_key: "tableMain",
|
|
202
|
-
ref:
|
|
203
|
-
"is-auto-refresh":
|
|
204
|
-
"onUpdate:isAutoRefresh": t[0] || (t[0] = (
|
|
205
|
-
"refresh-interval":
|
|
206
|
-
"onUpdate:refreshInterval": t[1] || (t[1] = (
|
|
207
|
-
"custom-view":
|
|
208
|
-
"onUpdate:customView": t[2] || (t[2] = (
|
|
209
|
-
api:
|
|
210
|
-
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:
|
|
213
|
-
rowKey:
|
|
214
|
-
toolbar:
|
|
215
|
-
showSwitchView:
|
|
216
|
-
},
|
|
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:
|
|
219
|
-
onLoadingChange:
|
|
220
|
-
onDataChange:
|
|
221
|
-
onPageInfoChange:
|
|
222
|
-
}),
|
|
223
|
-
"custom-view-item":
|
|
224
|
-
f(e.$slots, "custom-view-item", V(I(
|
|
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
|
-
|
|
229
|
-
name:
|
|
230
|
-
fn:
|
|
231
|
-
f(e.$slots, `table-${
|
|
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
|
-
|
|
235
|
-
name: `header-${
|
|
236
|
-
fn:
|
|
237
|
-
var
|
|
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-${
|
|
240
|
-
searchFormData:
|
|
241
|
-
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
|
-
[
|
|
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
|
-
|
|
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
|
|
5
|
+
const c = /* @__PURE__ */ r(o, [["__scopeId", "data-v-64018cc0"]]);
|
|
5
6
|
export {
|
|
6
|
-
|
|
7
|
+
c as default
|
|
7
8
|
};
|