@owocow/saber-ui 0.1.12 → 0.1.14

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 (37) hide show
  1. package/dist/SaberAppLayout.vue_vue_type_script_setup_true_lang-DaxscIFe.js +418 -0
  2. package/dist/{SaberAppSidebar.vue_vue_type_script_setup_true_lang-HXyIXiau.js → SaberAppSidebar.vue_vue_type_script_setup_true_lang-Cwuj9VNi.js} +104 -95
  3. package/dist/{SaberDictSelect.vue_vue_type_script_setup_true_lang-B8PTKNKX.js → SaberDictSelect.vue_vue_type_script_setup_true_lang-BKdOdlFX.js} +1 -1
  4. package/dist/SaberDistrictSelect.vue_vue_type_script_setup_true_lang-jkl2AOay.js +272 -0
  5. package/dist/SaberPopSelect.vue_vue_type_script_setup_true_lang-eH8jkkzK.js +162 -0
  6. package/dist/SaberSwitchBar.vue_vue_type_script_setup_true_lang-CIbFBx5r.js +47 -0
  7. package/dist/components/SaberAppLayout.mjs +4 -0
  8. package/dist/components/SaberAppSidebar.mjs +1 -1
  9. package/dist/components/SaberPagination.vue.d.ts +49 -0
  10. package/dist/components/SaberSwitchBar.mjs +1 -1
  11. package/dist/components/layout/SaberAppLayout.types.d.ts +51 -0
  12. package/dist/components/layout/SaberAppLayout.vue.d.ts +78 -0
  13. package/dist/components/navigation/SaberAppSidebar.types.d.ts +1 -0
  14. package/dist/components/navigation/SaberAppSidebar.vue.d.ts +1 -0
  15. package/dist/composables/use-page-header.mjs +10 -8
  16. package/dist/control-size.d.ts +33 -0
  17. package/dist/forms/components/SaberFilterBar.vue.d.ts +3 -0
  18. package/dist/forms/components/SaberFormModal.vue.d.ts +2 -0
  19. package/dist/forms/components/fields/SaberDistrictSelect.vue.d.ts +5 -0
  20. package/dist/forms/components/fields/SaberInput.vue.d.ts +5 -0
  21. package/dist/forms/components/fields/SaberInputNumber.vue.d.ts +10 -2
  22. package/dist/forms/components/fields/SaberPopSelect.vue.d.ts +5 -2
  23. package/dist/forms/components/fields/SaberSelect.vue.d.ts +10 -2
  24. package/dist/forms/components/fields/SaberUploadImage.vue.d.ts +2 -2
  25. package/dist/forms/dict-select.mjs +1 -1
  26. package/dist/forms/district-select.mjs +1 -1
  27. package/dist/forms/index.d.ts +1 -0
  28. package/dist/forms/pop-select.mjs +1 -1
  29. package/dist/forms.mjs +4 -4
  30. package/dist/index.d.ts +7 -1
  31. package/dist/index.mjs +176 -96
  32. package/dist/plugin-DvH6j00c.js +442 -0
  33. package/package.json +6 -1
  34. package/dist/SaberDistrictSelect.vue_vue_type_script_setup_true_lang-BX8nLC35.js +0 -257
  35. package/dist/SaberPopSelect.vue_vue_type_script_setup_true_lang-BcS27NXI.js +0 -125
  36. package/dist/SaberSwitchBar.vue_vue_type_script_setup_true_lang-CDx3Dcas.js +0 -47
  37. package/dist/plugin-Dr3z0YFg.js +0 -396
@@ -1,3 +1,4 @@
1
+ export type { SaberControlSize } from '../control-size';
1
2
  export { default as SaberFilterBar } from './components/SaberFilterBar.vue';
2
3
  export { default as SaberFormModal } from './components/SaberFormModal.vue';
3
4
  export { default as SaberModal } from './components/SaberModal.vue';
@@ -1,4 +1,4 @@
1
- import { _ as f } from "../SaberPopSelect.vue_vue_type_script_setup_true_lang-BcS27NXI.js";
1
+ import { _ as f } from "../SaberPopSelect.vue_vue_type_script_setup_true_lang-eH8jkkzK.js";
2
2
  export {
3
3
  f as default
4
4
  };
package/dist/forms.mjs CHANGED
@@ -1,10 +1,10 @@
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-Dr3z0YFg.js";
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-DvH6j00c.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";
5
- import { _ as C } from "./SaberDictSelect.vue_vue_type_script_setup_true_lang-B8PTKNKX.js";
6
- import { _ as K } from "./SaberPopSelect.vue_vue_type_script_setup_true_lang-BcS27NXI.js";
7
- import { _ as U } from "./SaberDistrictSelect.vue_vue_type_script_setup_true_lang-BX8nLC35.js";
5
+ import { _ as C } from "./SaberDictSelect.vue_vue_type_script_setup_true_lang-BKdOdlFX.js";
6
+ import { _ as K } from "./SaberPopSelect.vue_vue_type_script_setup_true_lang-eH8jkkzK.js";
7
+ import { _ as U } from "./SaberDistrictSelect.vue_vue_type_script_setup_true_lang-jkl2AOay.js";
8
8
  import { _ as k } from "./SaberUploadImage.vue_vue_type_script_setup_true_lang-CAwci2Vr.js";
9
9
  import { D as G, u as j } from "./use-dict-options-DjtbYYIa.js";
10
10
  import { U as N } from "./upload-image-source-On8NHgmx.js";
package/dist/index.d.ts CHANGED
@@ -6,8 +6,10 @@ import { default as SaberConfirmProvider } from './components/SaberConfirmProvid
6
6
  import { default as SaberInfo } from './components/SaberInfo.vue';
7
7
  import { default as SaberInfoProvider } from './components/SaberInfoProvider.vue';
8
8
  import { default as SaberModalWithMobile } from './components/SaberModalWithMobile.vue';
9
+ import { default as SaberPagination } from './components/SaberPagination.vue';
9
10
  import { default as SaberStatus } from './components/SaberStatus.vue';
10
11
  import { default as SaberSwitchBar } from './components/SaberSwitchBar.vue';
12
+ import { default as SaberAppLayout } from './components/layout/SaberAppLayout.vue';
11
13
  import { default as SaberAppSidebar } from './components/navigation/SaberAppSidebar.vue';
12
14
  import { default as SaberNavigationSearch } from './components/navigation/SaberNavigationSearch.vue';
13
15
  import { default as SaberFilterBar } from './forms/components/SaberFilterBar.vue';
@@ -24,6 +26,7 @@ import { default as SaberRadioGroup } from './forms/components/fields/SaberRadio
24
26
  import { default as SaberSelect } from './forms/components/fields/SaberSelect.vue';
25
27
  import { default as SaberTextarea } from './forms/components/fields/SaberTextarea.vue';
26
28
  import { SaberFormsOptions } from './forms/plugin';
29
+ export type { SaberControlSize } from './control-size';
27
30
  export interface SaberUIOptions {
28
31
  forms?: SaberFormsOptions;
29
32
  }
@@ -33,10 +36,11 @@ export { BadgeStatus as SaberBadgeStatus };
33
36
  export type { BadgeStatusProps } from './BadgeStatus.types';
34
37
  export { SaberNoData };
35
38
  export type { SaberNoDataProps } from './SaberNoData.types';
36
- export { SaberConfirmModal, SaberConfirmProvider, SaberInfo, SaberInfoProvider, SaberModalWithMobile, SaberAppSidebar, SaberNavigationSearch, SaberStatus, SaberSwitchBar, };
39
+ export { SaberConfirmModal, SaberConfirmProvider, SaberInfo, SaberInfoProvider, SaberModalWithMobile, SaberPagination, SaberAppLayout, SaberAppSidebar, SaberNavigationSearch, SaberStatus, SaberSwitchBar, };
37
40
  export type { SaberInfoContext, SaberInfoMode, SaberInfoProps, SaberInfoVariant } from './components/SaberInfo.types';
38
41
  export type { SaberStatusType } from './components/SaberStatus.types';
39
42
  export type { SaberSwitchBarItem, SaberSwitchBarUI, SaberSwitchBarValue } from './components/SaberSwitchBar.types';
43
+ export type { SaberAppLayoutMaxWidth, SaberAppLayoutMode, SaberAppLayoutNavigationSlotContext, SaberAppLayoutProps, SaberAppLayoutUI, } from './components/layout/SaberAppLayout.types';
40
44
  export type { SaberAppSidebarUI, SaberNavigationGroup, SaberNavigationItem, SaberNavigationSearchGroup, SaberNavigationSearchUI, SaberNavigationSection, SaberNavigationSelectPayload, SaberNavigationSelectSource, } from './components/navigation/SaberAppSidebar.types';
41
45
  export { SaberFilterBar, SaberFormModal, SaberDictCheckbox, SaberDictRadio, SaberDictSelect, SaberDistrictSelect, SaberInput, SaberInputNumber, SaberModal, SaberPopSelect, SaberRadioGroup, SaberSelect, SaberTextarea, };
42
46
  export { installSaberForms, type SaberFormsOptions } from './forms/plugin';
@@ -51,10 +55,12 @@ declare module 'vue' {
51
55
  SaberInfo: typeof SaberInfo;
52
56
  SaberInfoProvider: typeof SaberInfoProvider;
53
57
  SaberModalWithMobile: typeof SaberModalWithMobile;
58
+ SaberPagination: typeof SaberPagination;
54
59
  SaberStatus: typeof SaberStatus;
55
60
  SaberSwitchBar: typeof SaberSwitchBar;
56
61
  SaberAppSidebar: typeof SaberAppSidebar;
57
62
  SaberNavigationSearch: typeof SaberNavigationSearch;
63
+ SaberAppLayout: typeof SaberAppLayout;
58
64
  SaberFilterBar: typeof SaberFilterBar;
59
65
  SaberFormModal: typeof SaberFormModal;
60
66
  SaberModal: typeof SaberModal;
package/dist/index.mjs CHANGED
@@ -1,25 +1,29 @@
1
- import h from "@nuxt/ui/vue-plugin";
2
- import y from "@nuxt/ui/components/Badge.vue";
3
- import { defineComponent as _, computed as f, openBlock as s, createBlock as $, normalizeStyle as v, withCtx as C, createTextVNode as k, toDisplayString as d, createElementBlock as i, normalizeClass as B, createElementVNode as l, createVNode as I, createCommentVNode as m, renderSlot as u } from "vue";
4
- import N from "@nuxt/ui/runtime/vue/components/Icon.vue";
5
- import { _ as D } from "./SaberConfirmModal.vue_vue_type_script_setup_true_lang-Cqp9krYl.js";
6
- import { _ as M } from "./SaberConfirmProvider.vue_vue_type_script_setup_true_lang-DUJ6ftNJ.js";
7
- import { _ as w } from "./SaberInfo.vue_vue_type_script_setup_true_lang-B3W5VsGR.js";
8
- import { _ as P } from "./SaberInfoProvider.vue_vue_type_script_setup_true_lang-3rF6bSCn.js";
9
- import { _ as z } from "./SaberModalWithMobile.vue_vue_type_script_setup_true_lang-aQlToncY.js";
10
- import { _ as A } from "./SaberStatus.vue_vue_type_script_setup_true_lang-D9aRVCow.js";
11
- import { _ as F } from "./SaberSwitchBar.vue_vue_type_script_setup_true_lang-CDx3Dcas.js";
12
- import { _ as U } from "./SaberAppSidebar.vue_vue_type_script_setup_true_lang-HXyIXiau.js";
13
- import { _ as V } from "./SaberNavigationSearch.vue_vue_type_script_setup_true_lang-Bj96kMla.js";
14
- import { k as W } from "./plugin-Dr3z0YFg.js";
15
- import { _ as be, a as fe, b as ue, c as Se, d as _e, e as pe } from "./plugin-Dr3z0YFg.js";
16
- import { _ as xe } from "./SaberModal.vue_vue_type_script_setup_true_lang-DJno3jA3.js";
17
- import { _ as ye } from "./SaberDictCheckbox.vue_vue_type_script_setup_true_lang-DUbzy_C6.js";
18
- import { _ as ve, a as Ce } from "./SaberDictRadio.vue_vue_type_script_setup_true_lang-DR6-jSID.js";
19
- import { _ as Be } from "./SaberDictSelect.vue_vue_type_script_setup_true_lang-B8PTKNKX.js";
20
- import { _ as Ne } from "./SaberDistrictSelect.vue_vue_type_script_setup_true_lang-BX8nLC35.js";
21
- import { _ as Me } from "./SaberPopSelect.vue_vue_type_script_setup_true_lang-BcS27NXI.js";
22
- const b = {
1
+ import A from "@nuxt/ui/vue-plugin";
2
+ import V from "@nuxt/ui/components/Badge.vue";
3
+ import { defineComponent as h, computed as m, openBlock as u, createBlock as F, normalizeStyle as L, withCtx as O, createTextVNode as v, toDisplayString as S, createElementBlock as d, normalizeClass as c, createElementVNode as p, createVNode as $, createCommentVNode as b, renderSlot as y } from "vue";
4
+ import R from "@nuxt/ui/runtime/vue/components/Icon.vue";
5
+ import { _ as E } from "./SaberConfirmModal.vue_vue_type_script_setup_true_lang-Cqp9krYl.js";
6
+ import { _ as T } from "./SaberConfirmProvider.vue_vue_type_script_setup_true_lang-DUJ6ftNJ.js";
7
+ import { _ as W } from "./SaberInfo.vue_vue_type_script_setup_true_lang-B3W5VsGR.js";
8
+ import { _ as j } from "./SaberInfoProvider.vue_vue_type_script_setup_true_lang-3rF6bSCn.js";
9
+ import { _ as H } from "./SaberModalWithMobile.vue_vue_type_script_setup_true_lang-aQlToncY.js";
10
+ import G from "@nuxt/ui/components/Pagination.vue";
11
+ import K from "@nuxt/ui/components/Select.vue";
12
+ import { S as Z } from "./SaberPopSelect.vue_vue_type_script_setup_true_lang-eH8jkkzK.js";
13
+ import { _ as De } from "./SaberPopSelect.vue_vue_type_script_setup_true_lang-eH8jkkzK.js";
14
+ import { _ as q } from "./SaberStatus.vue_vue_type_script_setup_true_lang-D9aRVCow.js";
15
+ import { _ as J } from "./SaberSwitchBar.vue_vue_type_script_setup_true_lang-CIbFBx5r.js";
16
+ import { _ as Q } from "./SaberAppLayout.vue_vue_type_script_setup_true_lang-DaxscIFe.js";
17
+ import { _ as X } from "./SaberAppSidebar.vue_vue_type_script_setup_true_lang-Cwuj9VNi.js";
18
+ import { _ as Y } from "./SaberNavigationSearch.vue_vue_type_script_setup_true_lang-Bj96kMla.js";
19
+ import { k as ee } from "./plugin-DvH6j00c.js";
20
+ import { _ as Ae, a as Ve, b as Fe, c as Le, d as Oe, e as Re } from "./plugin-DvH6j00c.js";
21
+ import { _ as Te } from "./SaberModal.vue_vue_type_script_setup_true_lang-DJno3jA3.js";
22
+ import { _ as je } from "./SaberDictCheckbox.vue_vue_type_script_setup_true_lang-DUbzy_C6.js";
23
+ import { _ as Ge, a as Ke } from "./SaberDictRadio.vue_vue_type_script_setup_true_lang-DR6-jSID.js";
24
+ import { _ as qe } from "./SaberDictSelect.vue_vue_type_script_setup_true_lang-BKdOdlFX.js";
25
+ import { _ as Qe } from "./SaberDistrictSelect.vue_vue_type_script_setup_true_lang-jkl2AOay.js";
26
+ const z = {
23
27
  red: { 500: "#ef4444", 600: "#dc2626" },
24
28
  orange: { 500: "#f97316", 600: "#ea580c" },
25
29
  amber: { 500: "#f59e0b", 600: "#d97706" },
@@ -42,16 +46,16 @@ const b = {
42
46
  zinc: { 500: "#71717a", 600: "#52525b" },
43
47
  neutral: { 500: "#737373", 600: "#525252" },
44
48
  stone: { 500: "#78716c", 600: "#57534e" }
45
- }, H = b.gray;
46
- function S(e, t) {
47
- var o, a;
48
- return ((o = b[e]) == null ? void 0 : o[t]) ?? ((a = b[e]) == null ? void 0 : a[500]) ?? H[500];
49
+ }, te = z.gray;
50
+ function D(e, a) {
51
+ var t, s;
52
+ return ((t = z[e]) == null ? void 0 : t[a]) ?? ((s = z[e]) == null ? void 0 : s[500]) ?? te[500];
49
53
  }
50
- function R(e, t) {
51
- const o = parseInt(e.slice(1, 3), 16), a = parseInt(e.slice(3, 5), 16), r = parseInt(e.slice(5, 7), 16);
52
- return `rgba(${o}, ${a}, ${r}, ${t / 100})`;
54
+ function ae(e, a) {
55
+ const t = parseInt(e.slice(1, 3), 16), s = parseInt(e.slice(3, 5), 16), n = parseInt(e.slice(5, 7), 16);
56
+ return `rgba(${t}, ${s}, ${n}, ${a / 100})`;
53
57
  }
54
- const T = /* @__PURE__ */ _({
58
+ const oe = /* @__PURE__ */ h({
55
59
  __name: "BadgeStatus",
56
60
  props: {
57
61
  value: {},
@@ -60,40 +64,40 @@ const T = /* @__PURE__ */ _({
60
64
  textColorWeight: { default: 500 }
61
65
  },
62
66
  setup(e) {
63
- const t = e, o = f(() => {
64
- const r = String(t.value);
65
- for (const c of t.config) {
66
- const n = c.split(":");
67
- if (n.length < 2) continue;
68
- const p = n[0], g = n[1], x = n[2] || "gray";
69
- if (g === r)
70
- return { label: p, color: x };
67
+ const a = e, t = m(() => {
68
+ const n = String(a.value);
69
+ for (const l of a.config) {
70
+ const r = l.split(":");
71
+ if (r.length < 2) continue;
72
+ const g = r[0], _ = r[1], o = r[2] || "gray";
73
+ if (_ === n)
74
+ return { label: g, color: o };
71
75
  }
72
- return { label: r, color: "gray" };
73
- }), a = f(() => {
74
- const { color: r } = o.value, c = S(r, 500), n = S(r, t.textColorWeight);
76
+ return { label: n, color: "gray" };
77
+ }), s = m(() => {
78
+ const { color: n } = t.value, l = D(n, 500), r = D(n, a.textColorWeight);
75
79
  return {
76
- backgroundColor: R(c, t.bgOpacity),
77
- color: n
80
+ backgroundColor: ae(l, a.bgOpacity),
81
+ color: r
78
82
  };
79
83
  });
80
- return (r, c) => {
81
- const n = y;
82
- return s(), $(n, {
83
- style: v(a.value),
84
+ return (n, l) => {
85
+ const r = V;
86
+ return u(), F(r, {
87
+ style: L(s.value),
84
88
  class: "inline-flex items-center rounded-full border-0 pt-0.75 pb-0.75 px-2 text-xs font-medium"
85
89
  }, {
86
- default: C(() => [
87
- k(d(o.value.label), 1)
90
+ default: O(() => [
91
+ v(S(t.value.label), 1)
88
92
  ]),
89
93
  _: 1
90
94
  }, 8, ["style"]);
91
95
  };
92
96
  }
93
- }), E = { class: "rounded-md border border-accented p-3" }, L = { class: "flex flex-col gap-1" }, O = { class: "text-base font-semibold mb-2 text-highlighted w-60" }, j = {
97
+ }), re = { class: "rounded-md border border-accented p-3" }, se = { class: "flex flex-col gap-1" }, ne = { class: "text-base font-semibold mb-2 text-highlighted w-60" }, ie = {
94
98
  key: 0,
95
99
  class: "text-sm text-muted w-60"
96
- }, G = { key: 0 }, K = { key: 1 }, q = /* @__PURE__ */ _({
100
+ }, le = { key: 0 }, ce = { key: 1 }, me = /* @__PURE__ */ h({
97
101
  name: "SaberNoData",
98
102
  __name: "SaberNoData",
99
103
  props: {
@@ -104,64 +108,140 @@ const T = /* @__PURE__ */ _({
104
108
  description: { default: "当前列表为空,还没有任何数据" }
105
109
  },
106
110
  setup(e) {
107
- return (t, o) => {
108
- const a = N;
109
- return s(), i("div", {
110
- class: B([
111
+ return (a, t) => {
112
+ const s = R;
113
+ return u(), d("div", {
114
+ class: c([
111
115
  "flex flex-col items-center justify-center gap-6 rounded-md p-10 text-center bg-default",
112
116
  e.border && "border border-accented",
113
- t.$props.class
117
+ a.$props.class
114
118
  ])
115
119
  }, [
116
- l("div", E, [
117
- I(a, {
120
+ p("div", re, [
121
+ $(s, {
118
122
  name: e.icon,
119
123
  class: "size-5"
120
124
  }, null, 8, ["name"])
121
125
  ]),
122
- l("div", L, [
123
- l("h4", O, d(e.title), 1),
124
- e.description ? (s(), i("p", j, d(e.description), 1)) : m("", !0)
126
+ p("div", se, [
127
+ p("h4", ne, S(e.title), 1),
128
+ e.description ? (u(), d("p", ie, S(e.description), 1)) : b("", !0)
125
129
  ]),
126
- t.$slots.default ? (s(), i("div", G, [
127
- u(t.$slots, "default")
128
- ])) : m("", !0),
129
- t.$slots.extra ? (s(), i("p", K, [
130
- u(t.$slots, "extra")
131
- ])) : m("", !0)
130
+ a.$slots.default ? (u(), d("div", le, [
131
+ y(a.$slots, "default")
132
+ ])) : b("", !0),
133
+ a.$slots.extra ? (u(), d("p", ce, [
134
+ y(a.$slots, "extra")
135
+ ])) : b("", !0)
132
136
  ], 2);
133
137
  };
134
138
  }
135
- }), le = {
136
- install(e, t = {}) {
137
- e.use(h), e.component("SaberBadgeStatus", T), e.component("SaberNoData", q), e.component("SaberConfirmModal", D), e.component("SaberConfirmProvider", M), e.component("SaberInfo", w), e.component("SaberInfoProvider", P), e.component("SaberModalWithMobile", z), e.component("SaberStatus", A), e.component("SaberSwitchBar", F), e.component("SaberAppSidebar", U), e.component("SaberNavigationSearch", V), W(e, t.forms);
139
+ }), ue = /* @__PURE__ */ h({
140
+ __name: "SaberPagination",
141
+ props: {
142
+ page: { default: 1 },
143
+ pageSize: { default: 10 },
144
+ total: {},
145
+ pageSizes: { default: () => [10, 20, 50, 100] },
146
+ size: { default: "lg" },
147
+ ui: {}
148
+ },
149
+ emits: ["update:page", "update:pageSize"],
150
+ setup(e, { emit: a }) {
151
+ const t = e, s = a, n = m({
152
+ get: () => t.page,
153
+ set: (o) => s("update:page", o)
154
+ }), l = m({
155
+ get: () => t.pageSize,
156
+ set: (o) => s("update:pageSize", o)
157
+ }), r = m(() => Z[t.size]), g = m(() => t.pageSizes.map((o) => ({ label: `${o} 条/页`, value: o }))), _ = m(() => {
158
+ var o, i, f;
159
+ return {
160
+ ...(o = t.ui) == null ? void 0 : o.pageSizeUi,
161
+ base: [r.value.height, "text-sm rounded-sm saberButton", (f = (i = t.ui) == null ? void 0 : i.pageSizeUi) == null ? void 0 : f.base].filter(Boolean).join(" ")
162
+ };
163
+ });
164
+ return (o, i) => {
165
+ var B, C, I, k, N, U, P, w;
166
+ const f = K, M = G;
167
+ return u(), d("div", {
168
+ class: c(["flex w-full items-center justify-between", (B = t.ui) == null ? void 0 : B.root])
169
+ }, [
170
+ p("div", {
171
+ class: c(["flex flex-col gap-1", (C = t.ui) == null ? void 0 : C.info])
172
+ }, [
173
+ p("span", {
174
+ class: c(["text-xs mr-4", (I = t.ui) == null ? void 0 : I.total])
175
+ }, [
176
+ i[2] || (i[2] = v("总计 ", -1)),
177
+ p("b", null, S(t.total), 1),
178
+ i[3] || (i[3] = v(" 条", -1))
179
+ ], 2),
180
+ o.$slots.tips ? (u(), d("div", {
181
+ key: 0,
182
+ class: c((k = t.ui) == null ? void 0 : k.tips)
183
+ }, [
184
+ y(o.$slots, "tips")
185
+ ], 2)) : b("", !0)
186
+ ], 2),
187
+ p("div", {
188
+ class: c(["flex items-center gap-2", (N = t.ui) == null ? void 0 : N.controls])
189
+ }, [
190
+ $(f, {
191
+ modelValue: l.value,
192
+ "onUpdate:modelValue": i[0] || (i[0] = (x) => l.value = x),
193
+ items: g.value,
194
+ ui: _.value,
195
+ size: r.value.nuxtSize,
196
+ class: c(["w-28", (U = t.ui) == null ? void 0 : U.pageSize])
197
+ }, null, 8, ["modelValue", "items", "ui", "size", "class"]),
198
+ $(M, {
199
+ page: n.value,
200
+ "onUpdate:page": i[1] || (i[1] = (x) => n.value = x),
201
+ size: r.value.nuxtSize,
202
+ "active-color": "primary",
203
+ "active-variant": "subtle",
204
+ total: t.total,
205
+ "items-per-page": l.value,
206
+ ui: (P = t.ui) == null ? void 0 : P.paginationUi,
207
+ class: c([r.value.paginationButtons, (w = t.ui) == null ? void 0 : w.pagination])
208
+ }, null, 8, ["page", "size", "total", "items-per-page", "ui", "class"])
209
+ ], 2)
210
+ ], 2);
211
+ };
212
+ }
213
+ }), Ue = {
214
+ install(e, a = {}) {
215
+ e.use(A), e.component("SaberBadgeStatus", oe), e.component("SaberNoData", me), e.component("SaberConfirmModal", E), e.component("SaberConfirmProvider", T), e.component("SaberInfo", W), e.component("SaberInfoProvider", j), e.component("SaberModalWithMobile", H), e.component("SaberPagination", ue), e.component("SaberStatus", q), e.component("SaberSwitchBar", J), e.component("SaberAppSidebar", X), e.component("SaberNavigationSearch", Y), e.component("SaberAppLayout", Q), ee(e, a.forms);
138
216
  }
139
217
  };
140
218
  export {
141
- U as SaberAppSidebar,
142
- T as SaberBadgeStatus,
143
- D as SaberConfirmModal,
144
- M as SaberConfirmProvider,
145
- ye as SaberDictCheckbox,
146
- ve as SaberDictRadio,
147
- Be as SaberDictSelect,
148
- Ne as SaberDistrictSelect,
149
- be as SaberFilterBar,
150
- fe as SaberFormModal,
151
- w as SaberInfo,
152
- P as SaberInfoProvider,
153
- ue as SaberInput,
154
- Se as SaberInputNumber,
155
- xe as SaberModal,
156
- z as SaberModalWithMobile,
157
- V as SaberNavigationSearch,
158
- q as SaberNoData,
159
- Me as SaberPopSelect,
160
- Ce as SaberRadioGroup,
161
- _e as SaberSelect,
162
- A as SaberStatus,
163
- F as SaberSwitchBar,
164
- pe as SaberTextarea,
165
- le as default,
166
- W as installSaberForms
219
+ Q as SaberAppLayout,
220
+ X as SaberAppSidebar,
221
+ oe as SaberBadgeStatus,
222
+ E as SaberConfirmModal,
223
+ T as SaberConfirmProvider,
224
+ je as SaberDictCheckbox,
225
+ Ge as SaberDictRadio,
226
+ qe as SaberDictSelect,
227
+ Qe as SaberDistrictSelect,
228
+ Ae as SaberFilterBar,
229
+ Ve as SaberFormModal,
230
+ W as SaberInfo,
231
+ j as SaberInfoProvider,
232
+ Fe as SaberInput,
233
+ Le as SaberInputNumber,
234
+ Te as SaberModal,
235
+ H as SaberModalWithMobile,
236
+ Y as SaberNavigationSearch,
237
+ me as SaberNoData,
238
+ ue as SaberPagination,
239
+ De as SaberPopSelect,
240
+ Ke as SaberRadioGroup,
241
+ Oe as SaberSelect,
242
+ q as SaberStatus,
243
+ J as SaberSwitchBar,
244
+ Re as SaberTextarea,
245
+ Ue as default,
246
+ ee as installSaberForms
167
247
  };