@owocow/saber-ui 0.1.14 → 0.1.15
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/dist/SaberAppLayout.vue_vue_type_script_setup_true_lang-Hr4TdNqR.js +487 -0
- package/dist/{SaberInfo.vue_vue_type_script_setup_true_lang-B3W5VsGR.js → SaberInfo.vue_vue_type_script_setup_true_lang-B_1ugpqI.js} +1 -1
- package/dist/components/SaberAppLayout.mjs +1 -1
- package/dist/components/SaberInfo.mjs +1 -1
- package/dist/components/SaberPagination.vue.d.ts +2 -3
- package/dist/components/layout/SaberAppLayout.types.d.ts +8 -0
- package/dist/components/layout/SaberAppLayout.vue.d.ts +5 -0
- package/dist/composables/index.d.ts +1 -1
- package/dist/composables/use-page-header.d.ts +3 -1
- package/dist/composables/use-page-header.mjs +27 -15
- package/dist/composables/use-table.d.ts +1 -0
- package/dist/composables/use-table.mjs +45 -42
- package/dist/composables.mjs +22 -20
- package/dist/forms.mjs +1 -1
- package/dist/index.mjs +125 -126
- package/dist/{plugin-DvH6j00c.js → plugin-Cg7MKH3t.js} +44 -48
- package/package.json +1 -1
- package/dist/SaberAppLayout.vue_vue_type_script_setup_true_lang-DaxscIFe.js +0 -418
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { reactive as z, ref as
|
|
2
|
-
import { klona as
|
|
3
|
-
import { useBoolean as
|
|
4
|
-
import { useLoading as
|
|
5
|
-
function
|
|
6
|
-
const
|
|
1
|
+
import { reactive as z, ref as C, watch as h, computed as b } from "vue";
|
|
2
|
+
import { klona as w } from "klona/json";
|
|
3
|
+
import { useBoolean as D } from "./use-boolean.mjs";
|
|
4
|
+
import { useLoading as I } from "./use-loading.mjs";
|
|
5
|
+
function W(n) {
|
|
6
|
+
const a = n == null ? void 0 : n.data;
|
|
7
7
|
return {
|
|
8
|
-
rows: Array.isArray(
|
|
9
|
-
total: Number((
|
|
8
|
+
rows: Array.isArray(a == null ? void 0 : a.rows) ? a.rows : [],
|
|
9
|
+
total: Number((a == null ? void 0 : a.total) ?? 0)
|
|
10
10
|
};
|
|
11
11
|
}
|
|
12
|
-
function
|
|
13
|
-
const { loading:
|
|
14
|
-
pageSizes:
|
|
15
|
-
pageSize:
|
|
12
|
+
function J(n) {
|
|
13
|
+
const { loading: a, startLoading: g, endLoading: d } = I(), { bool: y, setBool: j } = D(), { apiFn: O, apiParams: f, transformer: p, responseAdapter: P, immediate: k = !0, paginConfig: v } = n, i = z(w({ ...f })), S = C([]), { pageSizes: x, pageSize: A, disabled: E = !1 } = v || {}, t = z({
|
|
14
|
+
pageSizes: x || [10, 20, 50, 100],
|
|
15
|
+
pageSize: A || 10,
|
|
16
16
|
currentPage: 1,
|
|
17
17
|
total: 0
|
|
18
18
|
});
|
|
@@ -20,68 +20,71 @@ function H(n) {
|
|
|
20
20
|
h(
|
|
21
21
|
() => t.currentPage,
|
|
22
22
|
() => {
|
|
23
|
-
u ||
|
|
23
|
+
u || s();
|
|
24
24
|
},
|
|
25
25
|
{ flush: "sync" }
|
|
26
26
|
), h(
|
|
27
27
|
() => t.pageSize,
|
|
28
28
|
() => {
|
|
29
|
-
u = !0, t.currentPage = 1, u = !1,
|
|
29
|
+
u = !0, t.currentPage = 1, u = !1, s();
|
|
30
30
|
},
|
|
31
31
|
{ flush: "sync" }
|
|
32
32
|
);
|
|
33
|
-
function
|
|
33
|
+
function L(e) {
|
|
34
34
|
const o = t.currentPage || 1, c = t.pageSize > 0 ? t.pageSize : 10;
|
|
35
|
-
return
|
|
35
|
+
return e.map((m, r) => ({
|
|
36
36
|
...m,
|
|
37
37
|
_index: (o - 1) * c + r + 1
|
|
38
38
|
}));
|
|
39
39
|
}
|
|
40
|
-
async function
|
|
41
|
-
var
|
|
42
|
-
|
|
40
|
+
async function s() {
|
|
41
|
+
var e;
|
|
42
|
+
g();
|
|
43
43
|
try {
|
|
44
|
-
const o =
|
|
45
|
-
return t.total = m.total, S.value = l,
|
|
44
|
+
const o = B(i), c = await O(o), m = P ? P(c) : W(c), r = L(m.rows), l = p ? p(r) : r;
|
|
45
|
+
return t.total = m.total, S.value = l, j(l.length === 0), await ((e = n.onFetched) == null ? void 0 : e.call(n, l)), l;
|
|
46
46
|
} finally {
|
|
47
|
-
|
|
47
|
+
d();
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
|
-
function
|
|
51
|
-
return
|
|
50
|
+
function T() {
|
|
51
|
+
return E ? {} : {
|
|
52
52
|
pageNum: t.currentPage,
|
|
53
53
|
pageSize: t.pageSize
|
|
54
54
|
};
|
|
55
55
|
}
|
|
56
|
-
function
|
|
57
|
-
const o = {}, c = { ...
|
|
56
|
+
function B(e) {
|
|
57
|
+
const o = {}, c = { ...T(), ...e };
|
|
58
58
|
return Object.entries(c).forEach(([m, r]) => {
|
|
59
59
|
r != null && r !== "" && (o[m] = r);
|
|
60
60
|
}), o;
|
|
61
61
|
}
|
|
62
|
-
function
|
|
63
|
-
return Object.assign(
|
|
62
|
+
function F(e) {
|
|
63
|
+
return Object.assign(i, e), s();
|
|
64
64
|
}
|
|
65
|
-
function
|
|
65
|
+
function N() {
|
|
66
66
|
u = !0, t.currentPage = 1, u = !1;
|
|
67
|
-
const
|
|
68
|
-
return Object.keys(
|
|
67
|
+
const e = w({ ...f });
|
|
68
|
+
return Object.keys(i).forEach((o) => delete i[o]), Object.assign(i, e), s();
|
|
69
69
|
}
|
|
70
|
-
|
|
71
|
-
|
|
70
|
+
k && s();
|
|
71
|
+
const R = b(() => !a && t.total && t.total >= t.pageSize);
|
|
72
|
+
return {
|
|
73
|
+
loading: a,
|
|
72
74
|
empty: y,
|
|
73
75
|
data: S,
|
|
74
|
-
getData:
|
|
75
|
-
params:
|
|
76
|
-
updateSearchParams:
|
|
77
|
-
resetSearchParams:
|
|
76
|
+
getData: s,
|
|
77
|
+
params: i,
|
|
78
|
+
updateSearchParams: F,
|
|
79
|
+
resetSearchParams: N,
|
|
78
80
|
pagination: t,
|
|
79
|
-
total:
|
|
80
|
-
startLoading:
|
|
81
|
-
endLoading:
|
|
81
|
+
total: b(() => t.total),
|
|
82
|
+
startLoading: g,
|
|
83
|
+
endLoading: d,
|
|
84
|
+
showPagination: R
|
|
82
85
|
};
|
|
83
86
|
}
|
|
84
87
|
export {
|
|
85
|
-
|
|
86
|
-
|
|
88
|
+
W as normalizeTableResponse,
|
|
89
|
+
J as useTable
|
|
87
90
|
};
|
package/dist/composables.mjs
CHANGED
|
@@ -1,25 +1,27 @@
|
|
|
1
|
-
import { useBoolean as
|
|
2
|
-
import { useLoading as
|
|
3
|
-
import { settleConfirm as f, useConfirm as
|
|
4
|
-
import { useDelete as
|
|
5
|
-
import { useSkeleton as
|
|
6
|
-
import { useDelayUnmount as
|
|
1
|
+
import { useBoolean as o } from "./composables/use-boolean.mjs";
|
|
2
|
+
import { useLoading as a } from "./composables/use-loading.mjs";
|
|
3
|
+
import { settleConfirm as f, useConfirm as u, useConfirmState as m } from "./composables/use-confirm.mjs";
|
|
4
|
+
import { useDelete as i } from "./composables/use-delete.mjs";
|
|
5
|
+
import { useSkeleton as x } from "./composables/use-skeleton.mjs";
|
|
6
|
+
import { useDelayUnmount as l } from "./composables/use-delay-unmount.mjs";
|
|
7
7
|
import { useAddressParse as P } from "./composables/use-address-parse.mjs";
|
|
8
|
-
import { providePageHeader as
|
|
9
|
-
import { normalizeTableResponse as
|
|
8
|
+
import { providePageHeader as S, usePageHeader as C, usePageHeaderDescription as D, usePageHeaderSuffix as T, usePageHeaderTitleSuffix as b } from "./composables/use-page-header.mjs";
|
|
9
|
+
import { normalizeTableResponse as k, useTable as v } from "./composables/use-table.mjs";
|
|
10
10
|
export {
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
k as normalizeTableResponse,
|
|
12
|
+
S as providePageHeader,
|
|
13
13
|
f as settleConfirm,
|
|
14
14
|
P as useAddressParse,
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
15
|
+
o as useBoolean,
|
|
16
|
+
u as useConfirm,
|
|
17
|
+
m as useConfirmState,
|
|
18
|
+
l as useDelayUnmount,
|
|
19
|
+
i as useDelete,
|
|
20
|
+
a as useLoading,
|
|
21
|
+
C as usePageHeader,
|
|
22
|
+
D as usePageHeaderDescription,
|
|
23
|
+
T as usePageHeaderSuffix,
|
|
24
|
+
b as usePageHeaderTitleSuffix,
|
|
25
|
+
x as useSkeleton,
|
|
26
|
+
v as useTable
|
|
25
27
|
};
|
package/dist/forms.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as r, _ as s, a as o, b as t, c as i, d as c, e as m, f as S, g as p, h as b, i as l, j as u, k as D, l as f, r as x, u as n } from "./plugin-
|
|
1
|
+
import { F as r, _ as s, a as o, b as t, c as i, d as c, e as m, f as S, g as p, h as b, i as l, j as u, k as D, l as f, r as x, u as n } from "./plugin-Cg7MKH3t.js";
|
|
2
2
|
import { _ } from "./SaberModal.vue_vue_type_script_setup_true_lang-DJno3jA3.js";
|
|
3
3
|
import { _ as g } from "./SaberDictCheckbox.vue_vue_type_script_setup_true_lang-DUbzy_C6.js";
|
|
4
4
|
import { _ as v, a as R } from "./SaberDictRadio.vue_vue_type_script_setup_true_lang-DR6-jSID.js";
|
package/dist/index.mjs
CHANGED
|
@@ -1,29 +1,28 @@
|
|
|
1
|
-
import
|
|
1
|
+
import M from "@nuxt/ui/vue-plugin";
|
|
2
2
|
import V from "@nuxt/ui/components/Badge.vue";
|
|
3
|
-
import { defineComponent as
|
|
4
|
-
import
|
|
5
|
-
import { _ as
|
|
6
|
-
import { _ as
|
|
7
|
-
import { _ as
|
|
8
|
-
import { _ as
|
|
9
|
-
import { _ as
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import {
|
|
13
|
-
import { _ as
|
|
14
|
-
import { _ as
|
|
15
|
-
import { _ as
|
|
16
|
-
import { _ as
|
|
17
|
-
import {
|
|
18
|
-
import { _ as
|
|
19
|
-
import {
|
|
20
|
-
import { _ as
|
|
21
|
-
import { _ as
|
|
22
|
-
import { _ as
|
|
23
|
-
import { _ as Ge
|
|
24
|
-
import { _ as qe } from "./
|
|
25
|
-
|
|
26
|
-
const z = {
|
|
3
|
+
import { defineComponent as z, computed as p, openBlock as m, createBlock as A, normalizeStyle as F, withCtx as L, createTextVNode as x, toDisplayString as S, createElementBlock as d, normalizeClass as c, createElementVNode as u, createVNode as v, createCommentVNode as f, renderSlot as $ } from "vue";
|
|
4
|
+
import W from "@nuxt/ui/runtime/vue/components/Icon.vue";
|
|
5
|
+
import { _ as j } from "./SaberConfirmModal.vue_vue_type_script_setup_true_lang-Cqp9krYl.js";
|
|
6
|
+
import { _ as H } from "./SaberConfirmProvider.vue_vue_type_script_setup_true_lang-DUJ6ftNJ.js";
|
|
7
|
+
import { _ as R } from "./SaberInfo.vue_vue_type_script_setup_true_lang-B_1ugpqI.js";
|
|
8
|
+
import { _ as T } from "./SaberInfoProvider.vue_vue_type_script_setup_true_lang-3rF6bSCn.js";
|
|
9
|
+
import { _ as E } from "./SaberModalWithMobile.vue_vue_type_script_setup_true_lang-aQlToncY.js";
|
|
10
|
+
import O from "@nuxt/ui/components/Pagination.vue";
|
|
11
|
+
import G from "@nuxt/ui/components/Select.vue";
|
|
12
|
+
import { _ as K } from "./SaberStatus.vue_vue_type_script_setup_true_lang-D9aRVCow.js";
|
|
13
|
+
import { _ as q } from "./SaberSwitchBar.vue_vue_type_script_setup_true_lang-CIbFBx5r.js";
|
|
14
|
+
import { _ as J } from "./SaberAppLayout.vue_vue_type_script_setup_true_lang-Hr4TdNqR.js";
|
|
15
|
+
import { _ as Q } from "./SaberAppSidebar.vue_vue_type_script_setup_true_lang-Cwuj9VNi.js";
|
|
16
|
+
import { _ as X } from "./SaberNavigationSearch.vue_vue_type_script_setup_true_lang-Bj96kMla.js";
|
|
17
|
+
import { k as Y } from "./plugin-Cg7MKH3t.js";
|
|
18
|
+
import { _ as Ne, a as Pe, b as we, c as De, d as Me, e as Ve } from "./plugin-Cg7MKH3t.js";
|
|
19
|
+
import { _ as Fe } from "./SaberModal.vue_vue_type_script_setup_true_lang-DJno3jA3.js";
|
|
20
|
+
import { _ as We } from "./SaberDictCheckbox.vue_vue_type_script_setup_true_lang-DUbzy_C6.js";
|
|
21
|
+
import { _ as He, a as Re } from "./SaberDictRadio.vue_vue_type_script_setup_true_lang-DR6-jSID.js";
|
|
22
|
+
import { _ as Ee } from "./SaberDictSelect.vue_vue_type_script_setup_true_lang-BKdOdlFX.js";
|
|
23
|
+
import { _ as Ge } from "./SaberDistrictSelect.vue_vue_type_script_setup_true_lang-jkl2AOay.js";
|
|
24
|
+
import { _ as qe } from "./SaberPopSelect.vue_vue_type_script_setup_true_lang-eH8jkkzK.js";
|
|
25
|
+
const y = {
|
|
27
26
|
red: { 500: "#ef4444", 600: "#dc2626" },
|
|
28
27
|
orange: { 500: "#f97316", 600: "#ea580c" },
|
|
29
28
|
amber: { 500: "#f59e0b", 600: "#d97706" },
|
|
@@ -46,16 +45,16 @@ const z = {
|
|
|
46
45
|
zinc: { 500: "#71717a", 600: "#52525b" },
|
|
47
46
|
neutral: { 500: "#737373", 600: "#525252" },
|
|
48
47
|
stone: { 500: "#78716c", 600: "#57534e" }
|
|
49
|
-
},
|
|
50
|
-
function
|
|
48
|
+
}, Z = y.gray;
|
|
49
|
+
function w(e, a) {
|
|
51
50
|
var t, s;
|
|
52
|
-
return ((t =
|
|
51
|
+
return ((t = y[e]) == null ? void 0 : t[a]) ?? ((s = y[e]) == null ? void 0 : s[500]) ?? Z[500];
|
|
53
52
|
}
|
|
54
|
-
function
|
|
53
|
+
function ee(e, a) {
|
|
55
54
|
const t = parseInt(e.slice(1, 3), 16), s = parseInt(e.slice(3, 5), 16), n = parseInt(e.slice(5, 7), 16);
|
|
56
55
|
return `rgba(${t}, ${s}, ${n}, ${a / 100})`;
|
|
57
56
|
}
|
|
58
|
-
const
|
|
57
|
+
const te = /* @__PURE__ */ z({
|
|
59
58
|
__name: "BadgeStatus",
|
|
60
59
|
props: {
|
|
61
60
|
value: {},
|
|
@@ -64,40 +63,40 @@ const oe = /* @__PURE__ */ h({
|
|
|
64
63
|
textColorWeight: { default: 500 }
|
|
65
64
|
},
|
|
66
65
|
setup(e) {
|
|
67
|
-
const a = e, t =
|
|
66
|
+
const a = e, t = p(() => {
|
|
68
67
|
const n = String(a.value);
|
|
69
68
|
for (const l of a.config) {
|
|
70
|
-
const
|
|
71
|
-
if (
|
|
72
|
-
const g =
|
|
73
|
-
if (
|
|
74
|
-
return { label: g, color:
|
|
69
|
+
const i = l.split(":");
|
|
70
|
+
if (i.length < 2) continue;
|
|
71
|
+
const g = i[0], o = i[1], r = i[2] || "gray";
|
|
72
|
+
if (o === n)
|
|
73
|
+
return { label: g, color: r };
|
|
75
74
|
}
|
|
76
75
|
return { label: n, color: "gray" };
|
|
77
|
-
}), s =
|
|
78
|
-
const { color: n } = t.value, l =
|
|
76
|
+
}), s = p(() => {
|
|
77
|
+
const { color: n } = t.value, l = w(n, 500), i = w(n, a.textColorWeight);
|
|
79
78
|
return {
|
|
80
|
-
backgroundColor:
|
|
81
|
-
color:
|
|
79
|
+
backgroundColor: ee(l, a.bgOpacity),
|
|
80
|
+
color: i
|
|
82
81
|
};
|
|
83
82
|
});
|
|
84
83
|
return (n, l) => {
|
|
85
|
-
const
|
|
86
|
-
return
|
|
87
|
-
style:
|
|
84
|
+
const i = V;
|
|
85
|
+
return m(), A(i, {
|
|
86
|
+
style: F(s.value),
|
|
88
87
|
class: "inline-flex items-center rounded-full border-0 pt-0.75 pb-0.75 px-2 text-xs font-medium"
|
|
89
88
|
}, {
|
|
90
|
-
default:
|
|
91
|
-
|
|
89
|
+
default: L(() => [
|
|
90
|
+
x(S(t.value.label), 1)
|
|
92
91
|
]),
|
|
93
92
|
_: 1
|
|
94
93
|
}, 8, ["style"]);
|
|
95
94
|
};
|
|
96
95
|
}
|
|
97
|
-
}),
|
|
96
|
+
}), ae = { class: "rounded-md border border-accented p-3" }, oe = { class: "flex flex-col gap-1" }, re = { class: "text-base font-semibold mb-2 text-highlighted w-60" }, se = {
|
|
98
97
|
key: 0,
|
|
99
98
|
class: "text-sm text-muted w-60"
|
|
100
|
-
},
|
|
99
|
+
}, ne = { key: 0 }, ie = { key: 1 }, le = /* @__PURE__ */ z({
|
|
101
100
|
name: "SaberNoData",
|
|
102
101
|
__name: "SaberNoData",
|
|
103
102
|
props: {
|
|
@@ -109,139 +108,139 @@ const oe = /* @__PURE__ */ h({
|
|
|
109
108
|
},
|
|
110
109
|
setup(e) {
|
|
111
110
|
return (a, t) => {
|
|
112
|
-
const s =
|
|
113
|
-
return
|
|
111
|
+
const s = W;
|
|
112
|
+
return m(), d("div", {
|
|
114
113
|
class: c([
|
|
115
114
|
"flex flex-col items-center justify-center gap-6 rounded-md p-10 text-center bg-default",
|
|
116
115
|
e.border && "border border-accented",
|
|
117
116
|
a.$props.class
|
|
118
117
|
])
|
|
119
118
|
}, [
|
|
120
|
-
|
|
121
|
-
|
|
119
|
+
u("div", ae, [
|
|
120
|
+
v(s, {
|
|
122
121
|
name: e.icon,
|
|
123
122
|
class: "size-5"
|
|
124
123
|
}, null, 8, ["name"])
|
|
125
124
|
]),
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
e.description ? (
|
|
125
|
+
u("div", oe, [
|
|
126
|
+
u("h4", re, S(e.title), 1),
|
|
127
|
+
e.description ? (m(), d("p", se, S(e.description), 1)) : f("", !0)
|
|
129
128
|
]),
|
|
130
|
-
a.$slots.default ? (
|
|
131
|
-
|
|
132
|
-
])) :
|
|
133
|
-
a.$slots.extra ? (
|
|
134
|
-
|
|
135
|
-
])) :
|
|
129
|
+
a.$slots.default ? (m(), d("div", ne, [
|
|
130
|
+
$(a.$slots, "default")
|
|
131
|
+
])) : f("", !0),
|
|
132
|
+
a.$slots.extra ? (m(), d("p", ie, [
|
|
133
|
+
$(a.$slots, "extra")
|
|
134
|
+
])) : f("", !0)
|
|
136
135
|
], 2);
|
|
137
136
|
};
|
|
138
137
|
}
|
|
139
|
-
}),
|
|
138
|
+
}), ce = /* @__PURE__ */ z({
|
|
140
139
|
__name: "SaberPagination",
|
|
141
140
|
props: {
|
|
142
141
|
page: { default: 1 },
|
|
143
142
|
pageSize: { default: 10 },
|
|
144
143
|
total: {},
|
|
145
144
|
pageSizes: { default: () => [10, 20, 50, 100] },
|
|
146
|
-
size: { default: "
|
|
145
|
+
size: { default: "sm" },
|
|
147
146
|
ui: {}
|
|
148
147
|
},
|
|
149
148
|
emits: ["update:page", "update:pageSize"],
|
|
150
149
|
setup(e, { emit: a }) {
|
|
151
|
-
const t = e, s = a, n =
|
|
150
|
+
const t = e, s = a, n = p({
|
|
152
151
|
get: () => t.page,
|
|
153
152
|
set: (o) => s("update:page", o)
|
|
154
|
-
}), l =
|
|
153
|
+
}), l = p({
|
|
155
154
|
get: () => t.pageSize,
|
|
156
155
|
set: (o) => s("update:pageSize", o)
|
|
157
|
-
}),
|
|
158
|
-
var o,
|
|
156
|
+
}), i = p(() => t.pageSizes.map((o) => ({ label: `${o} 条/页`, value: o }))), g = p(() => {
|
|
157
|
+
var o, r, b;
|
|
159
158
|
return {
|
|
160
159
|
...(o = t.ui) == null ? void 0 : o.pageSizeUi,
|
|
161
|
-
base: [
|
|
160
|
+
base: ["text-sm rounded-sm h-auto saberButton", (b = (r = t.ui) == null ? void 0 : r.pageSizeUi) == null ? void 0 : b.base].filter(Boolean).join(" ")
|
|
162
161
|
};
|
|
163
162
|
});
|
|
164
|
-
return (o,
|
|
165
|
-
var B, C, I,
|
|
166
|
-
const
|
|
167
|
-
return
|
|
168
|
-
class: c(["flex w-full items-center justify-between", (
|
|
163
|
+
return (o, r) => {
|
|
164
|
+
var h, B, k, C, I, U, N, P;
|
|
165
|
+
const b = G, D = O;
|
|
166
|
+
return m(), d("div", {
|
|
167
|
+
class: c(["flex w-full items-center justify-between", (h = t.ui) == null ? void 0 : h.root])
|
|
169
168
|
}, [
|
|
170
|
-
|
|
171
|
-
class: c(["flex flex-col gap-1", (
|
|
169
|
+
u("div", {
|
|
170
|
+
class: c(["flex flex-col gap-1", (B = t.ui) == null ? void 0 : B.info])
|
|
172
171
|
}, [
|
|
173
|
-
|
|
174
|
-
class: c(["text-xs mr-4", (
|
|
172
|
+
u("span", {
|
|
173
|
+
class: c(["text-xs mr-4", (k = t.ui) == null ? void 0 : k.total])
|
|
175
174
|
}, [
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
175
|
+
r[2] || (r[2] = x("总计 ", -1)),
|
|
176
|
+
u("b", null, S(t.total), 1),
|
|
177
|
+
r[3] || (r[3] = x(" 条", -1))
|
|
179
178
|
], 2),
|
|
180
|
-
o.$slots.tips ? (
|
|
179
|
+
o.$slots.tips ? (m(), d("div", {
|
|
181
180
|
key: 0,
|
|
182
|
-
class: c((
|
|
181
|
+
class: c((C = t.ui) == null ? void 0 : C.tips)
|
|
183
182
|
}, [
|
|
184
|
-
|
|
185
|
-
], 2)) :
|
|
183
|
+
$(o.$slots, "tips")
|
|
184
|
+
], 2)) : f("", !0)
|
|
186
185
|
], 2),
|
|
187
|
-
|
|
188
|
-
class: c(["flex items-center gap-2", (
|
|
186
|
+
u("div", {
|
|
187
|
+
class: c(["flex items-center gap-2", (I = t.ui) == null ? void 0 : I.controls])
|
|
189
188
|
}, [
|
|
190
|
-
|
|
189
|
+
v(b, {
|
|
191
190
|
modelValue: l.value,
|
|
192
|
-
"onUpdate:modelValue":
|
|
193
|
-
items:
|
|
194
|
-
ui:
|
|
195
|
-
size:
|
|
196
|
-
class: c(["w-28", (U = t.ui) == null ? void 0 : U.pageSize])
|
|
191
|
+
"onUpdate:modelValue": r[0] || (r[0] = (_) => l.value = _),
|
|
192
|
+
items: i.value,
|
|
193
|
+
ui: g.value,
|
|
194
|
+
size: t.size,
|
|
195
|
+
class: c(["w-28 max-[768px]:hidden", (U = t.ui) == null ? void 0 : U.pageSize])
|
|
197
196
|
}, null, 8, ["modelValue", "items", "ui", "size", "class"]),
|
|
198
|
-
|
|
197
|
+
v(D, {
|
|
199
198
|
page: n.value,
|
|
200
|
-
"onUpdate:page":
|
|
201
|
-
size:
|
|
199
|
+
"onUpdate:page": r[1] || (r[1] = (_) => n.value = _),
|
|
200
|
+
size: t.size,
|
|
202
201
|
"active-color": "primary",
|
|
203
202
|
"active-variant": "subtle",
|
|
204
203
|
total: t.total,
|
|
205
204
|
"items-per-page": l.value,
|
|
206
|
-
ui: (
|
|
207
|
-
class: c(
|
|
205
|
+
ui: (N = t.ui) == null ? void 0 : N.paginationUi,
|
|
206
|
+
class: c((P = t.ui) == null ? void 0 : P.pagination)
|
|
208
207
|
}, null, 8, ["page", "size", "total", "items-per-page", "ui", "class"])
|
|
209
208
|
], 2)
|
|
210
209
|
], 2);
|
|
211
210
|
};
|
|
212
211
|
}
|
|
213
|
-
}),
|
|
212
|
+
}), Ce = {
|
|
214
213
|
install(e, a = {}) {
|
|
215
|
-
e.use(
|
|
214
|
+
e.use(M), e.component("SaberBadgeStatus", te), e.component("SaberNoData", le), e.component("SaberConfirmModal", j), e.component("SaberConfirmProvider", H), e.component("SaberInfo", R), e.component("SaberInfoProvider", T), e.component("SaberModalWithMobile", E), e.component("SaberPagination", ce), e.component("SaberStatus", K), e.component("SaberSwitchBar", q), e.component("SaberAppSidebar", Q), e.component("SaberNavigationSearch", X), e.component("SaberAppLayout", J), Y(e, a.forms);
|
|
216
215
|
}
|
|
217
216
|
};
|
|
218
217
|
export {
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
218
|
+
J as SaberAppLayout,
|
|
219
|
+
Q as SaberAppSidebar,
|
|
220
|
+
te as SaberBadgeStatus,
|
|
221
|
+
j as SaberConfirmModal,
|
|
222
|
+
H as SaberConfirmProvider,
|
|
223
|
+
We as SaberDictCheckbox,
|
|
224
|
+
He as SaberDictRadio,
|
|
225
|
+
Ee as SaberDictSelect,
|
|
226
|
+
Ge as SaberDistrictSelect,
|
|
227
|
+
Ne as SaberFilterBar,
|
|
228
|
+
Pe as SaberFormModal,
|
|
229
|
+
R as SaberInfo,
|
|
230
|
+
T as SaberInfoProvider,
|
|
231
|
+
we as SaberInput,
|
|
232
|
+
De as SaberInputNumber,
|
|
233
|
+
Fe as SaberModal,
|
|
234
|
+
E as SaberModalWithMobile,
|
|
235
|
+
X as SaberNavigationSearch,
|
|
236
|
+
le as SaberNoData,
|
|
237
|
+
ce as SaberPagination,
|
|
238
|
+
qe as SaberPopSelect,
|
|
239
|
+
Re as SaberRadioGroup,
|
|
240
|
+
Me as SaberSelect,
|
|
241
|
+
K as SaberStatus,
|
|
242
|
+
q as SaberSwitchBar,
|
|
243
|
+
Ve as SaberTextarea,
|
|
244
|
+
Ce as default,
|
|
245
|
+
Y as installSaberForms
|
|
247
246
|
};
|