@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.
@@ -1,18 +1,18 @@
1
- import { reactive as z, ref as N, watch as h, computed as R } from "vue";
2
- import { klona as b } from "klona/json";
3
- import { useBoolean as C } from "./use-boolean.mjs";
4
- import { useLoading as D } from "./use-loading.mjs";
5
- function I(n) {
6
- const e = n == null ? void 0 : n.data;
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(e == null ? void 0 : e.rows) ? e.rows : [],
9
- total: Number((e == null ? void 0 : e.total) ?? 0)
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 H(n) {
13
- const { loading: e, startLoading: d, endLoading: g } = D(), { bool: y, setBool: w } = C(), { apiFn: j, apiParams: f, transformer: p, responseAdapter: P, immediate: O = !0, paginConfig: k } = n, s = z(b({ ...f })), S = N([]), { pageSizes: v, pageSize: x, disabled: A = !1 } = k || {}, t = z({
14
- pageSizes: v || [10, 20, 50, 100],
15
- pageSize: x || 10,
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 || i();
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, i();
29
+ u = !0, t.currentPage = 1, u = !1, s();
30
30
  },
31
31
  { flush: "sync" }
32
32
  );
33
- function E(a) {
33
+ function L(e) {
34
34
  const o = t.currentPage || 1, c = t.pageSize > 0 ? t.pageSize : 10;
35
- return a.map((m, r) => ({
35
+ return e.map((m, r) => ({
36
36
  ...m,
37
37
  _index: (o - 1) * c + r + 1
38
38
  }));
39
39
  }
40
- async function i() {
41
- var a;
42
- d();
40
+ async function s() {
41
+ var e;
42
+ g();
43
43
  try {
44
- const o = T(s), c = await j(o), m = P ? P(c) : I(c), r = E(m.rows), l = p ? p(r) : r;
45
- return t.total = m.total, S.value = l, w(l.length === 0), await ((a = n.onFetched) == null ? void 0 : a.call(n, l)), 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
- g();
47
+ d();
48
48
  }
49
49
  }
50
- function L() {
51
- return A ? {} : {
50
+ function T() {
51
+ return E ? {} : {
52
52
  pageNum: t.currentPage,
53
53
  pageSize: t.pageSize
54
54
  };
55
55
  }
56
- function T(a) {
57
- const o = {}, c = { ...L(), ...a };
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 B(a) {
63
- return Object.assign(s, a), i();
62
+ function F(e) {
63
+ return Object.assign(i, e), s();
64
64
  }
65
- function F() {
65
+ function N() {
66
66
  u = !0, t.currentPage = 1, u = !1;
67
- const a = b({ ...f });
68
- return Object.keys(s).forEach((o) => delete s[o]), Object.assign(s, a), i();
67
+ const e = w({ ...f });
68
+ return Object.keys(i).forEach((o) => delete i[o]), Object.assign(i, e), s();
69
69
  }
70
- return O && i(), {
71
- loading: e,
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: i,
75
- params: s,
76
- updateSearchParams: B,
77
- resetSearchParams: F,
76
+ getData: s,
77
+ params: i,
78
+ updateSearchParams: F,
79
+ resetSearchParams: N,
78
80
  pagination: t,
79
- total: R(() => t.total),
80
- startLoading: d,
81
- endLoading: g
81
+ total: b(() => t.total),
82
+ startLoading: g,
83
+ endLoading: d,
84
+ showPagination: R
82
85
  };
83
86
  }
84
87
  export {
85
- I as normalizeTableResponse,
86
- H as useTable
88
+ W as normalizeTableResponse,
89
+ J as useTable
87
90
  };
@@ -1,25 +1,27 @@
1
- import { useBoolean as r } from "./composables/use-boolean.mjs";
2
- import { useLoading as t } from "./composables/use-loading.mjs";
3
- import { settleConfirm as f, useConfirm as m, useConfirmState as u } from "./composables/use-confirm.mjs";
4
- import { useDelete as n } from "./composables/use-delete.mjs";
5
- import { useSkeleton as l } from "./composables/use-skeleton.mjs";
6
- import { useDelayUnmount as i } from "./composables/use-delay-unmount.mjs";
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 H, usePageHeader as S, usePageHeaderSuffix as b } from "./composables/use-page-header.mjs";
9
- import { normalizeTableResponse as T, useTable as k } from "./composables/use-table.mjs";
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
- T as normalizeTableResponse,
12
- H as providePageHeader,
11
+ k as normalizeTableResponse,
12
+ S as providePageHeader,
13
13
  f as settleConfirm,
14
14
  P as useAddressParse,
15
- r as useBoolean,
16
- m as useConfirm,
17
- u as useConfirmState,
18
- i as useDelayUnmount,
19
- n as useDelete,
20
- t as useLoading,
21
- S as usePageHeader,
22
- b as usePageHeaderSuffix,
23
- l as useSkeleton,
24
- k as useTable
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-DvH6j00c.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-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 A from "@nuxt/ui/vue-plugin";
1
+ import M from "@nuxt/ui/vue-plugin";
2
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 = {
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
- }, te = z.gray;
50
- function D(e, a) {
48
+ }, Z = y.gray;
49
+ function w(e, a) {
51
50
  var t, s;
52
- return ((t = z[e]) == null ? void 0 : t[a]) ?? ((s = z[e]) == null ? void 0 : s[500]) ?? te[500];
51
+ return ((t = y[e]) == null ? void 0 : t[a]) ?? ((s = y[e]) == null ? void 0 : s[500]) ?? Z[500];
53
52
  }
54
- function ae(e, a) {
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 oe = /* @__PURE__ */ h({
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 = m(() => {
66
+ const a = e, t = p(() => {
68
67
  const n = String(a.value);
69
68
  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 };
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 = m(() => {
78
- const { color: n } = t.value, l = D(n, 500), r = D(n, a.textColorWeight);
76
+ }), s = p(() => {
77
+ const { color: n } = t.value, l = w(n, 500), i = w(n, a.textColorWeight);
79
78
  return {
80
- backgroundColor: ae(l, a.bgOpacity),
81
- color: r
79
+ backgroundColor: ee(l, a.bgOpacity),
80
+ color: i
82
81
  };
83
82
  });
84
83
  return (n, l) => {
85
- const r = V;
86
- return u(), F(r, {
87
- style: L(s.value),
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: O(() => [
91
- v(S(t.value.label), 1)
89
+ default: L(() => [
90
+ x(S(t.value.label), 1)
92
91
  ]),
93
92
  _: 1
94
93
  }, 8, ["style"]);
95
94
  };
96
95
  }
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 = {
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
- }, le = { key: 0 }, ce = { key: 1 }, me = /* @__PURE__ */ h({
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 = R;
113
- return u(), d("div", {
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
- p("div", re, [
121
- $(s, {
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
- 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
+ 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 ? (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)
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
- }), ue = /* @__PURE__ */ h({
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: "lg" },
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 = m({
150
+ const t = e, s = a, n = p({
152
151
  get: () => t.page,
153
152
  set: (o) => s("update:page", o)
154
- }), l = m({
153
+ }), l = p({
155
154
  get: () => t.pageSize,
156
155
  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;
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: [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(" ")
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, 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])
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
- p("div", {
171
- class: c(["flex flex-col gap-1", (C = t.ui) == null ? void 0 : C.info])
169
+ u("div", {
170
+ class: c(["flex flex-col gap-1", (B = t.ui) == null ? void 0 : B.info])
172
171
  }, [
173
- p("span", {
174
- class: c(["text-xs mr-4", (I = t.ui) == null ? void 0 : I.total])
172
+ u("span", {
173
+ class: c(["text-xs mr-4", (k = t.ui) == null ? void 0 : k.total])
175
174
  }, [
176
- i[2] || (i[2] = v("总计 ", -1)),
177
- p("b", null, S(t.total), 1),
178
- i[3] || (i[3] = v(" 条", -1))
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 ? (u(), d("div", {
179
+ o.$slots.tips ? (m(), d("div", {
181
180
  key: 0,
182
- class: c((k = t.ui) == null ? void 0 : k.tips)
181
+ class: c((C = t.ui) == null ? void 0 : C.tips)
183
182
  }, [
184
- y(o.$slots, "tips")
185
- ], 2)) : b("", !0)
183
+ $(o.$slots, "tips")
184
+ ], 2)) : f("", !0)
186
185
  ], 2),
187
- p("div", {
188
- class: c(["flex items-center gap-2", (N = t.ui) == null ? void 0 : N.controls])
186
+ u("div", {
187
+ class: c(["flex items-center gap-2", (I = t.ui) == null ? void 0 : I.controls])
189
188
  }, [
190
- $(f, {
189
+ v(b, {
191
190
  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])
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
- $(M, {
197
+ v(D, {
199
198
  page: n.value,
200
- "onUpdate:page": i[1] || (i[1] = (x) => n.value = x),
201
- size: r.value.nuxtSize,
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: (P = t.ui) == null ? void 0 : P.paginationUi,
207
- class: c([r.value.paginationButtons, (w = t.ui) == null ? void 0 : w.pagination])
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
- }), Ue = {
212
+ }), Ce = {
214
213
  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);
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
- 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
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
  };