@solar-taro/ui-sun 3.0.0 → 3.1.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 (82) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/index.d.ts +1 -0
  3. package/index.js +20 -18
  4. package/index10.js +1 -1
  5. package/index15.js +1 -1
  6. package/index16.js +1 -1
  7. package/index17.js +1 -1
  8. package/index18.js +4 -4
  9. package/index20.js +77 -23
  10. package/index21.js +20 -42
  11. package/index22.js +42 -23
  12. package/index23.js +21 -9
  13. package/index24.js +10 -27
  14. package/index25.js +29 -18
  15. package/index26.js +18 -30
  16. package/index27.js +30 -119
  17. package/index28.js +118 -9
  18. package/index29.js +14 -11
  19. package/index30.js +5 -5
  20. package/index31.js +5 -5
  21. package/index32.js +9 -6
  22. package/index33.js +6 -8
  23. package/index34.js +9 -9
  24. package/index35.js +10 -2
  25. package/index36.js +1 -1
  26. package/index37.js +1 -1
  27. package/index38.js +1 -1
  28. package/index39.js +1 -1
  29. package/index4.js +1 -1
  30. package/index40.js +1 -1
  31. package/index41.js +1 -1
  32. package/index43.js +1 -1
  33. package/index44.js +1 -1
  34. package/index45.js +1 -1
  35. package/index46.js +1 -1
  36. package/index47.js +1 -1
  37. package/index48.js +1 -1
  38. package/index49.js +1 -1
  39. package/index50.js +1 -1
  40. package/index51.js +1 -1
  41. package/index53.js +2 -526
  42. package/index54.js +2 -3
  43. package/index55.js +1 -1
  44. package/index56.js +1 -1
  45. package/index57.js +1 -1
  46. package/index58.js +1 -1
  47. package/index59.js +1 -1
  48. package/index60.js +1 -1
  49. package/index61.js +1 -1
  50. package/index62.js +1 -1
  51. package/index63.js +1 -1
  52. package/index64.js +3 -66
  53. package/index65.js +526 -12
  54. package/index66.js +64 -23
  55. package/index67.js +11 -13
  56. package/index68.js +25 -26
  57. package/index69.js +14 -2
  58. package/index7.js +1 -1
  59. package/index70.js +24 -504
  60. package/index71.js +2 -79
  61. package/index72.js +498 -62
  62. package/index73.js +58 -48
  63. package/index74.js +62 -535
  64. package/index75.js +69 -2
  65. package/index76.js +543 -2
  66. package/index77.js +2 -2
  67. package/index78.js +2 -4
  68. package/index79.js +2 -2
  69. package/index80.js +4 -4
  70. package/index82.js +4 -2
  71. package/index84.js +2 -48
  72. package/index85.js +2 -82
  73. package/index86.js +48 -2
  74. package/index87.js +82 -2
  75. package/index88.js +2 -2
  76. package/index89.js +2 -2
  77. package/index90.js +4 -0
  78. package/index91.js +4 -0
  79. package/package.json +1 -1
  80. package/stepper/index.d.ts +1 -0
  81. package/stepper/index.scss +61 -0
  82. package/stepper/index.vue.d.ts +19 -0
package/CHANGELOG.md CHANGED
@@ -1,3 +1,19 @@
1
+ # 3.0.0 (2026-07-08)
2
+
3
+ ### 🚀 Features
4
+
5
+ - **ui-sun/list:** add List component
6
+ - **ui-sun/empty:** add Empty component
7
+ - **ui-sun/item-divider:** add ItemDivider component
8
+
9
+ ### 🩹 Fixes
10
+
11
+ - **ui-sun/toggle:** fix bug
12
+
13
+ ### ❤️ Thank You
14
+
15
+ - HyperLife1119
16
+
1
17
  ## 2.9.0 (2026-07-08)
2
18
 
3
19
  ### 🚀 Features
package/index.d.ts CHANGED
@@ -19,6 +19,7 @@ export * from './segment';
19
19
  export * from './skeleton';
20
20
  export * from './slider-captcha';
21
21
  export * from './spinner';
22
+ export * from './stepper';
22
23
  export * from './sudoku';
23
24
  export * from './tabbar';
24
25
  export * from './table';
package/index.js CHANGED
@@ -3,7 +3,7 @@ import { default as t } from "./index3.js";
3
3
  import { default as f } from "./index4.js";
4
4
  import { default as n } from "./index5.js";
5
5
  import { default as d } from "./index6.js";
6
- import { default as p } from "./index7.js";
6
+ import { default as m } from "./index7.js";
7
7
  import { default as x } from "./index8.js";
8
8
  import { default as b } from "./index9.js";
9
9
  import { default as g } from "./index10.js";
@@ -30,39 +30,41 @@ import { default as te } from "./index30.js";
30
30
  import { default as fe } from "./index31.js";
31
31
  import { default as ne } from "./index32.js";
32
32
  import { default as de } from "./index33.js";
33
- import { default as pe } from "./index34.js";
33
+ import { default as me } from "./index34.js";
34
+ import { default as xe } from "./index35.js";
34
35
  export {
35
36
  o as SolarSun,
36
37
  t as SunAccordion,
37
38
  f as SunBackButton,
38
39
  n as SunChip,
39
40
  d as SunCircularProgress,
40
- p as SunEmpty,
41
+ m as SunEmpty,
41
42
  b as SunFab,
42
43
  x as SunFabGroup,
43
- ee as SunIcon,
44
+ oe as SunIcon,
44
45
  g as SunItem,
45
- oe as SunItemDivider,
46
+ te as SunItemDivider,
46
47
  k as SunLazyRender,
47
48
  I as SunList,
48
- te as SunListHeader,
49
+ fe as SunListHeader,
49
50
  B as SunNavbar,
50
- fe as SunPageHeader,
51
+ ne as SunPageHeader,
51
52
  P as SunPopover,
52
53
  y as SunQrcode,
53
54
  w as SunSegment,
54
55
  H as SunSegmentBtn,
55
- ne as SunSkeleton,
56
+ de as SunSkeleton,
56
57
  A as SunSliderCaptcha,
57
58
  E as SunSpinner,
58
- N as SunSudoku,
59
- de as SunSudokuItem,
60
- V as SunTabbar,
61
- W as SunTag,
62
- O as SunTb,
63
- q as SunTbCell,
64
- K as SunTbRow,
65
- pe as SunTitle,
66
- Y as SunToggle,
67
- _ as SunVirtualScroll
59
+ N as SunStepper,
60
+ V as SunSudoku,
61
+ me as SunSudokuItem,
62
+ q as SunTabbar,
63
+ Y as SunTag,
64
+ W as SunTb,
65
+ K as SunTbCell,
66
+ O as SunTbRow,
67
+ xe as SunTitle,
68
+ _ as SunToggle,
69
+ ee as SunVirtualScroll
68
70
  };
package/index10.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as r, computed as c, renderSlot as i, createElementVNode as m, unref as d, openBlock as u, createBlock as p, createCommentVNode as _, normalizeClass as f, createElementBlock as k } from "vue";
2
- import B from "./index28.js";
2
+ import B from "./index29.js";
3
3
  const n = i, o = m, v = d, s = u, h = p, w = _, C = f, y = k, E = { class: "sun-item-inner" }, N = { class: "sun-item-content-wrapper" }, z = /* @__PURE__ */ r({
4
4
  __name: "index",
5
5
  props: {
package/index15.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as C, watch as I, onMounted as L, onUnmounted as M, createElementVNode as k, unref as w, openBlock as z, createElementBlock as R } from "vue";
2
2
  import { createSelectorQuery as y, getWindowInfo as Q, previewImage as S } from "@tarojs/taro";
3
- import { QrCode as U, QrCodeEcc as a } from "./index53.js";
3
+ import { QrCode as U, QrCodeEcc as a } from "./index65.js";
4
4
  const h = k, A = w, B = z, D = R;
5
5
  let T = 1;
6
6
  const N = /* @__PURE__ */ C({
package/index16.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as p, inject as a, getCurrentInstance as c, onUnmounted as m, unref as u, renderSlot as i, mergeProps as _, openBlock as f, createElementBlock as v } from "vue";
2
- import { ACTIVE_CHILD as d, PARENT as g } from "./index54.js";
2
+ import { ACTIVE_CHILD as d, PARENT as g } from "./index64.js";
3
3
  const o = u, k = i, C = _, B = f, E = v, $ = /* @__PURE__ */ p({
4
4
  __name: "segment-btn",
5
5
  props: {
package/index17.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as x, getCurrentInstance as V, shallowRef as E, shallowReactive as k, computed as a, provide as i, watch as C, onMounted as w, renderSlot as y, createElementVNode as B, mergeProps as I, openBlock as O, createElementBlock as A } from "vue";
2
- import { ACTIVE_CHILD as N, PARENT as P } from "./index54.js";
2
+ import { ACTIVE_CHILD as N, PARENT as P } from "./index64.js";
3
3
  const R = y, T = B, b = I, L = O, S = A, $ = { class: "sun-segment-inner" }, M = /* @__PURE__ */ x({
4
4
  __name: "segment",
5
5
  props: {
package/index18.js CHANGED
@@ -7,10 +7,10 @@ import { useCommonInterceptor as re } from "@solar-taro/http";
7
7
  import { SunSpinner as ce } from "@solar-taro/ui-sun";
8
8
  import { attachLoading as le } from "@solar-vue/core";
9
9
  import { createSelectorQuery as pe, getWindowInfo as ue } from "@tarojs/taro";
10
- import { a as de } from "./index64.js";
11
- import { e as D } from "./index65.js";
12
- import me from "./index66.js";
13
- import ve from "./index67.js";
10
+ import { a as de } from "./index66.js";
11
+ import { e as D } from "./index67.js";
12
+ import me from "./index68.js";
13
+ import ve from "./index69.js";
14
14
  const g = K, H = O, o = Q, w = X, fe = Y, N = ee, he = te, U = ae, $ = ne, ye = { class: "sun-slider-captcha" }, ge = { class: "sun-slider-captcha-container" }, we = { class: "sun-slider-captcha-mask" }, ke = { class: "sun-slider-captcha-track" }, _e = ["x", "disabled"], V = "sun-slider-captcha", be = 155, Ie = 310, ze = 155, xe = 50, Le = /* @__PURE__ */ J({
15
15
  __name: "index",
16
16
  props: {
package/index20.js CHANGED
@@ -1,27 +1,81 @@
1
- import { defineComponent as u, computed as n, renderSlot as c, mergeProps as r, openBlock as l, createElementBlock as d } from "vue";
2
- const a = c, m = r, p = l, k = d, _ = /* @__PURE__ */ u({
3
- __name: "sudoku",
4
- props: {
5
- size: String,
6
- count: {
7
- type: Number,
8
- default: 9
9
- }
10
- },
11
- setup(o) {
12
- const e = o, t = n(() => ({
13
- "sun-sudoku-sm": e.count === 1,
14
- "sun-sudoku-md": e.count === 2 || e.count === 4,
15
- "sun-sudoku-lg": e.count === 3 || e.count > 4
16
- }));
17
- return (s, i) => (p(), k("view", m(s.$attrs, {
18
- class: ["sun-sudoku", t.value],
19
- style: { "--sudoku-width": o.size }
20
- }), [
21
- a(s.$slots, "default")
22
- ], 16));
1
+ import { defineComponent as I, mergeModels as w, useModel as z, ref as f, computed as r, effect as C, unref as T, createVNode as _, normalizeClass as h, createElementVNode as S, openBlock as j, createElementBlock as q } from "vue";
2
+ import { vibrator as v } from "@solar-taro/core";
3
+ import c from "./index29.js";
4
+ const b = T, V = _, m = h, d = S, A = j, D = q, G = ["type", "value", "disabled"], L = /* @__PURE__ */ I({
5
+ __name: "index",
6
+ props: /* @__PURE__ */ w({
7
+ type: { default: "decimal" },
8
+ min: { default: -1 / 0 },
9
+ max: { default: 1 / 0 },
10
+ disabled: { type: Boolean }
11
+ }, {
12
+ modelValue: { default: 0 },
13
+ modelModifiers: {}
14
+ }),
15
+ emits: ["update:modelValue"],
16
+ setup(p) {
17
+ const t = p, u = z(p, "modelValue"), a = f(""), x = r(() => t.type === "integer" ? "number" : "digit"), y = r(() => ({
18
+ "sun-stepper-disabled": t.disabled
19
+ })), o = f(!1), M = r(() => u.value <= t.min), B = r(() => u.value >= t.max);
20
+ function g() {
21
+ const e = u.value;
22
+ e >= t.max || (u.value = i(Math.min(t.max, e + 1)), a.value = s(u.value), v.short());
23
+ }
24
+ function F() {
25
+ const e = u.value;
26
+ e <= t.min || (u.value = i(Math.max(t.min, e - 1)), a.value = s(u.value), v.short());
27
+ }
28
+ function N(e) {
29
+ a.value = e.detail.value;
30
+ let n = E(a.value);
31
+ n > t.max ? n = t.max : n < t.min && (n = t.min), u.value = n;
32
+ }
33
+ function $() {
34
+ o.value = !0;
35
+ }
36
+ function k() {
37
+ a.value = s(u.value), o.value = !1;
38
+ }
39
+ function E(e) {
40
+ return e ? i(Number.parseFloat(e) || 0) : 0;
41
+ }
42
+ function s(e) {
43
+ return e = +e, Number.isFinite(e) ? (t.type === "integer" ? Math.trunc(e) : e).toString() : "";
44
+ }
45
+ function i(e) {
46
+ return t.type === "integer" ? Math.trunc(e) : +e.toFixed(2);
47
+ }
48
+ return C(() => {
49
+ o.value || (a.value = s(u.value));
50
+ }), (e, n) => (A(), D("view", {
51
+ class: m(["sun-stepper", y.value])
52
+ }, [
53
+ d("view", {
54
+ class: m(["sun-stepper-btn sun-stepper-btn-dec", { "sun-stepper-btn-disabled": M.value }]),
55
+ "hover-class": "hover",
56
+ onTap: n[0] || (n[0] = (l) => F())
57
+ }, [
58
+ V(b(c), { name: "remove" })
59
+ ], 34),
60
+ d("input", {
61
+ class: "sun-stepper-input",
62
+ type: x.value,
63
+ value: a.value,
64
+ disabled: e.disabled,
65
+ onInput: n[1] || (n[1] = (l) => N(l)),
66
+ onFocus: n[2] || (n[2] = (l) => $()),
67
+ onBlur: n[3] || (n[3] = (l) => k())
68
+ }, null, 40, G),
69
+ d("view", {
70
+ class: m(["sun-stepper-btn sun-stepper-btn-inc", { "sun-stepper-btn-disabled": B.value }]),
71
+ "hover-class": "hover",
72
+ onTap: n[4] || (n[4] = (l) => g())
73
+ }, [
74
+ V(b(c), { name: "add" })
75
+ ], 34)
76
+ ], 2));
23
77
  }
24
78
  });
25
79
  export {
26
- _ as default
80
+ L as default
27
81
  };
package/index21.js CHANGED
@@ -1,49 +1,27 @@
1
- import { defineComponent as u, computed as p, renderList as _, Fragment as f, openBlock as d, createElementBlock as g, renderSlot as v, unref as b, createBlock as k, createCommentVNode as h, toDisplayString as B, createTextVNode as y, normalizeClass as C, mergeProps as $ } from "vue";
2
- import w from "./index28.js";
3
- const N = _, S = f, r = d, n = g, T = v, V = b, L = k, z = h, D = B, E = y, F = C, P = $, j = ["scroll-left"], q = ["onTap"], I = /* @__PURE__ */ u({
4
- __name: "index",
1
+ import { defineComponent as u, computed as n, renderSlot as c, mergeProps as r, openBlock as l, createElementBlock as d } from "vue";
2
+ const a = c, m = r, p = l, k = d, _ = /* @__PURE__ */ u({
3
+ __name: "sudoku",
5
4
  props: {
6
- tabs: {},
7
- active: { default: 0 }
8
- },
9
- emits: ["update:active", "toggle"],
10
- setup(s, { emit: c }) {
11
- const a = c, l = s, i = p(() => l.active > 2 ? (l.active - 2) * 150 + "rpx" : 0);
12
- function m(e) {
13
- a("toggle", e), a("update:active", e);
5
+ size: String,
6
+ count: {
7
+ type: Number,
8
+ default: 9
14
9
  }
15
- return (e, x) => (r(), n("scroll-view", P(e.$attrs, {
16
- class: "sun-tabbar",
17
- "scroll-x": !0,
18
- "enable-flex": !0,
19
- enhanced: !0,
20
- "show-scrollbar": !1,
21
- "scroll-with-animation": !0,
22
- "scroll-left": i.value
10
+ },
11
+ setup(o) {
12
+ const e = o, t = n(() => ({
13
+ "sun-sudoku-sm": e.count === 1,
14
+ "sun-sudoku-md": e.count === 2 || e.count === 4,
15
+ "sun-sudoku-lg": e.count === 3 || e.count > 4
16
+ }));
17
+ return (s, i) => (p(), k("view", m(s.$attrs, {
18
+ class: ["sun-sudoku", t.value],
19
+ style: { "--sudoku-width": o.size }
23
20
  }), [
24
- (r(!0), n(S, null, N(e.tabs, (t, o) => (r(), n("view", {
25
- key: o,
26
- class: F(["sun-tabbar-item", {
27
- "sun-tabbar-item-active": e.active === o,
28
- "sun-tabbar-item-icon-only": !t.text
29
- }]),
30
- onTap: (A) => m(o)
31
- }, [
32
- T(e.$slots, "default", {
33
- tab: t,
34
- index: o
35
- }, () => [
36
- t.icon ? (r(), L(V(w), {
37
- key: 0,
38
- class: "sun-tabbar-item-icon",
39
- name: e.active === o ? t.icon[0] : t.icon[1] || `${t.icon[0]}-outline`
40
- }, null, 8, ["name"])) : z("", !0),
41
- E(" " + D(t.text), 1)
42
- ])
43
- ], 42, q))), 128))
44
- ], 16, j));
21
+ a(s.$slots, "default")
22
+ ], 16));
45
23
  }
46
24
  });
47
25
  export {
48
- I as default
26
+ _ as default
49
27
  };
package/index22.js CHANGED
@@ -1,30 +1,49 @@
1
- import { defineComponent as o, computed as r, renderSlot as n, mergeProps as i, openBlock as a, createElementBlock as c } from "vue";
2
- const d = n, p = i, h = a, m = c, b = /* @__PURE__ */ o({
3
- __name: "table-cell",
1
+ import { defineComponent as u, computed as p, renderList as _, Fragment as f, openBlock as d, createElementBlock as g, renderSlot as v, unref as b, createBlock as k, createCommentVNode as h, toDisplayString as B, createTextVNode as y, normalizeClass as C, mergeProps as $ } from "vue";
2
+ import w from "./index29.js";
3
+ const N = _, S = f, r = d, n = g, T = v, V = b, L = k, z = h, D = B, E = y, F = C, P = $, j = ["scroll-left"], q = ["onTap"], I = /* @__PURE__ */ u({
4
+ __name: "index",
4
5
  props: {
5
- sticky: {},
6
- head: { type: Boolean },
7
- width: {},
8
- maxWidth: {},
9
- ellipsis: { type: Boolean },
10
- breakWord: { type: Boolean }
6
+ tabs: {},
7
+ active: { default: 0 }
11
8
  },
12
- setup(l) {
13
- const e = l, s = r(() => ({
14
- "sun-tb-cell-sticky-left": e.sticky === "left",
15
- "sun-tb-cell-sticky-right": e.sticky === "right",
16
- "sun-tb-cell-ellipsis": e.ellipsis,
17
- "sun-tb-cell-head": e.head,
18
- "sun-tb-cell-break-word": e.breakWord
19
- }));
20
- return (t, u) => (h(), m("view", p(t.$attrs, {
21
- class: ["sun-tb-cell", s.value],
22
- style: { width: t.width, "min-width": t.width, "max-width": t.maxWidth }
9
+ emits: ["update:active", "toggle"],
10
+ setup(s, { emit: c }) {
11
+ const a = c, l = s, i = p(() => l.active > 2 ? (l.active - 2) * 150 + "rpx" : 0);
12
+ function m(e) {
13
+ a("toggle", e), a("update:active", e);
14
+ }
15
+ return (e, x) => (r(), n("scroll-view", P(e.$attrs, {
16
+ class: "sun-tabbar",
17
+ "scroll-x": !0,
18
+ "enable-flex": !0,
19
+ enhanced: !0,
20
+ "show-scrollbar": !1,
21
+ "scroll-with-animation": !0,
22
+ "scroll-left": i.value
23
23
  }), [
24
- d(t.$slots, "default")
25
- ], 16));
24
+ (r(!0), n(S, null, N(e.tabs, (t, o) => (r(), n("view", {
25
+ key: o,
26
+ class: F(["sun-tabbar-item", {
27
+ "sun-tabbar-item-active": e.active === o,
28
+ "sun-tabbar-item-icon-only": !t.text
29
+ }]),
30
+ onTap: (A) => m(o)
31
+ }, [
32
+ T(e.$slots, "default", {
33
+ tab: t,
34
+ index: o
35
+ }, () => [
36
+ t.icon ? (r(), L(V(w), {
37
+ key: 0,
38
+ class: "sun-tabbar-item-icon",
39
+ name: e.active === o ? t.icon[0] : t.icon[1] || `${t.icon[0]}-outline`
40
+ }, null, 8, ["name"])) : z("", !0),
41
+ E(" " + D(t.text), 1)
42
+ ])
43
+ ], 42, q))), 128))
44
+ ], 16, j));
26
45
  }
27
46
  });
28
47
  export {
29
- b as default
48
+ I as default
30
49
  };
package/index23.js CHANGED
@@ -1,18 +1,30 @@
1
- import { defineComponent as o, renderSlot as t, mergeProps as r, openBlock as n, createElementBlock as s } from "vue";
2
- const a = t, l = r, p = n, c = s, u = /* @__PURE__ */ o({
3
- __name: "table-row",
1
+ import { defineComponent as o, computed as r, renderSlot as n, mergeProps as i, openBlock as a, createElementBlock as c } from "vue";
2
+ const d = n, p = i, h = a, m = c, b = /* @__PURE__ */ o({
3
+ __name: "table-cell",
4
4
  props: {
5
+ sticky: {},
5
6
  head: { type: Boolean },
6
- foot: { type: Boolean }
7
+ width: {},
8
+ maxWidth: {},
9
+ ellipsis: { type: Boolean },
10
+ breakWord: { type: Boolean }
7
11
  },
8
- setup(m) {
9
- return (e, d) => (p(), c("view", l(e.$attrs, {
10
- class: ["sun-tb-row", { "sun-tb-head": e.head, "sun-tb-foot": e.foot }]
12
+ setup(l) {
13
+ const e = l, s = r(() => ({
14
+ "sun-tb-cell-sticky-left": e.sticky === "left",
15
+ "sun-tb-cell-sticky-right": e.sticky === "right",
16
+ "sun-tb-cell-ellipsis": e.ellipsis,
17
+ "sun-tb-cell-head": e.head,
18
+ "sun-tb-cell-break-word": e.breakWord
19
+ }));
20
+ return (t, u) => (h(), m("view", p(t.$attrs, {
21
+ class: ["sun-tb-cell", s.value],
22
+ style: { width: t.width, "min-width": t.width, "max-width": t.maxWidth }
11
23
  }), [
12
- a(e.$slots, "default")
24
+ d(t.$slots, "default")
13
25
  ], 16));
14
26
  }
15
27
  });
16
28
  export {
17
- u as default
29
+ b as default
18
30
  };
package/index24.js CHANGED
@@ -1,35 +1,18 @@
1
- import { defineComponent as s, computed as o, renderSlot as l, normalizeClass as u, createElementVNode as d, mergeProps as b, openBlock as c, createElementBlock as p } from "vue";
2
- const m = l, i = u, B = d, _ = b, f = c, z = p, k = /* @__PURE__ */ s({
3
- __name: "table",
1
+ import { defineComponent as o, renderSlot as t, mergeProps as r, openBlock as n, createElementBlock as s } from "vue";
2
+ const a = t, l = r, p = n, c = s, u = /* @__PURE__ */ o({
3
+ __name: "table-row",
4
4
  props: {
5
- rounded: { type: Boolean, default: !0 },
6
- bordered: { type: Boolean },
7
- outerBordered: { type: Boolean, default: !0 },
8
- zebra: { type: Boolean },
9
- size: { default: "default" },
10
- layout: {}
5
+ head: { type: Boolean },
6
+ foot: { type: Boolean }
11
7
  },
12
- setup(r) {
13
- const e = r, n = o(() => ({
14
- "sun-tb-rounded": e.rounded,
15
- "sun-tb-bordered": e.bordered,
16
- "sun-tb-outer-bordered": e.outerBordered,
17
- [`sun-tb-size-${e.size}`]: e.size
18
- })), a = o(() => ({
19
- "sun-tb-zebra": e.zebra,
20
- [`sun-tb-layout-${e.layout}`]: e.layout
21
- }));
22
- return (t, y) => (f(), z("view", _(t.$attrs, {
23
- class: ["sun-tb", n.value]
8
+ setup(m) {
9
+ return (e, d) => (p(), c("view", l(e.$attrs, {
10
+ class: ["sun-tb-row", { "sun-tb-head": e.head, "sun-tb-foot": e.foot }]
24
11
  }), [
25
- B("view", {
26
- class: i(["sun-tb-inner", a.value])
27
- }, [
28
- m(t.$slots, "default")
29
- ], 2)
12
+ a(e.$slots, "default")
30
13
  ], 16));
31
14
  }
32
15
  });
33
16
  export {
34
- k as default
17
+ u as default
35
18
  };
package/index25.js CHANGED
@@ -1,24 +1,35 @@
1
- import { defineComponent as n, computed as a, renderSlot as l, normalizeClass as r, openBlock as c, createElementBlock as p } from "vue";
2
- const u = l, d = r, m = c, _ = p, g = /* @__PURE__ */ n({
3
- __name: "index",
1
+ import { defineComponent as s, computed as o, renderSlot as l, normalizeClass as u, createElementVNode as d, mergeProps as b, openBlock as c, createElementBlock as p } from "vue";
2
+ const m = l, i = u, B = d, _ = b, f = c, z = p, k = /* @__PURE__ */ s({
3
+ __name: "table",
4
4
  props: {
5
- type: { default: "solid" },
6
- color: {},
7
- shape: { default: "round" }
5
+ rounded: { type: Boolean, default: !0 },
6
+ bordered: { type: Boolean },
7
+ outerBordered: { type: Boolean, default: !0 },
8
+ zebra: { type: Boolean },
9
+ size: { default: "default" },
10
+ layout: {}
8
11
  },
9
- setup(o) {
10
- const e = o, t = a(() => [
11
- `sun-tag-${e.type}`,
12
- `sun-tag-${e.color}`,
13
- `sun-tag-${e.shape}`
14
- ]);
15
- return (s, i) => (m(), _("view", {
16
- class: d(["sun-tag", t.value])
17
- }, [
18
- u(s.$slots, "default")
19
- ], 2));
12
+ setup(r) {
13
+ const e = r, n = o(() => ({
14
+ "sun-tb-rounded": e.rounded,
15
+ "sun-tb-bordered": e.bordered,
16
+ "sun-tb-outer-bordered": e.outerBordered,
17
+ [`sun-tb-size-${e.size}`]: e.size
18
+ })), a = o(() => ({
19
+ "sun-tb-zebra": e.zebra,
20
+ [`sun-tb-layout-${e.layout}`]: e.layout
21
+ }));
22
+ return (t, y) => (f(), z("view", _(t.$attrs, {
23
+ class: ["sun-tb", n.value]
24
+ }), [
25
+ B("view", {
26
+ class: i(["sun-tb-inner", a.value])
27
+ }, [
28
+ m(t.$slots, "default")
29
+ ], 2)
30
+ ], 16));
20
31
  }
21
32
  });
22
33
  export {
23
- g as default
34
+ k as default
24
35
  };
package/index26.js CHANGED
@@ -1,36 +1,24 @@
1
- import { defineComponent as r, mergeModels as d, useModel as c, computed as u, createElementVNode as i, normalizeClass as m, openBlock as g, createElementBlock as p } from "vue";
2
- const t = i, v = m, f = g, k = p, w = /* @__PURE__ */ r({
1
+ import { defineComponent as n, computed as a, renderSlot as l, normalizeClass as r, openBlock as c, createElementBlock as p } from "vue";
2
+ const u = l, d = r, m = c, _ = p, g = /* @__PURE__ */ n({
3
3
  __name: "index",
4
- props: /* @__PURE__ */ d({
5
- disabled: { type: Boolean },
6
- color: { default: "primary" }
7
- }, {
8
- modelValue: { type: Boolean },
9
- modelModifiers: {}
10
- }),
11
- emits: ["update:modelValue"],
12
- setup(s) {
13
- const o = s, l = c(s, "modelValue"), n = u(() => [
14
- `sun-toggle-${o.color}`,
15
- {
16
- "sun-toggle-disabled": o.disabled,
17
- "sun-toggle-checked": l.value
18
- }
4
+ props: {
5
+ type: { default: "solid" },
6
+ color: {},
7
+ shape: { default: "round" }
8
+ },
9
+ setup(o) {
10
+ const e = o, t = a(() => [
11
+ `sun-tag-${e.type}`,
12
+ `sun-tag-${e.color}`,
13
+ `sun-tag-${e.shape}`
19
14
  ]);
20
- function a() {
21
- o.disabled || (l.value = !l.value);
22
- }
23
- return (B, e) => (f(), k("view", {
24
- class: v(["sun-toggle", n.value]),
25
- "hover-class": "hover",
26
- onTap: e[0] || (e[0] = (V) => a())
27
- }, e[1] || (e[1] = [
28
- t("view", { class: "sun-toggle-toggle-icon-wrapper" }, [
29
- t("view", { class: "sun-toggle-toggle-icon" })
30
- ], -1)
31
- ]), 34));
15
+ return (s, i) => (m(), _("view", {
16
+ class: d(["sun-tag", t.value])
17
+ }, [
18
+ u(s.$slots, "default")
19
+ ], 2));
32
20
  }
33
21
  });
34
22
  export {
35
- w as default
23
+ g as default
36
24
  };