@solar-taro/ui-sun 3.0.0 → 3.1.1
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/CHANGELOG.md +26 -0
- package/index.d.ts +1 -0
- package/index.js +20 -18
- package/index10.js +1 -1
- package/index15.js +1 -1
- package/index16.js +1 -1
- package/index17.js +1 -1
- package/index18.js +4 -4
- package/index20.js +86 -23
- package/index21.js +20 -42
- package/index22.js +42 -23
- package/index23.js +21 -9
- package/index24.js +10 -27
- package/index25.js +29 -18
- package/index26.js +18 -30
- package/index27.js +30 -119
- package/index28.js +118 -9
- package/index29.js +14 -11
- package/index30.js +5 -5
- package/index31.js +5 -5
- package/index32.js +10 -7
- package/index33.js +6 -8
- package/index34.js +9 -9
- package/index35.js +10 -2
- package/index36.js +1 -1
- package/index37.js +1 -1
- package/index38.js +7 -2
- package/index39.js +1 -1
- package/index4.js +1 -1
- package/index40.js +1 -1
- package/index41.js +1 -1
- package/index42.js +2 -7
- package/index43.js +1 -1
- package/index44.js +1 -1
- package/index45.js +1 -1
- package/index46.js +1 -1
- package/index47.js +1 -1
- package/index48.js +1 -1
- package/index49.js +1 -1
- package/index50.js +1 -1
- package/index51.js +1 -1
- package/index52.js +1 -1
- package/index53.js +2 -526
- package/index54.js +2 -3
- package/index55.js +526 -2
- package/index56.js +3 -2
- package/index57.js +1 -1
- package/index58.js +1 -1
- package/index61.js +1 -1
- package/index62.js +1 -1
- package/index63.js +1 -1
- package/index64.js +2 -66
- package/index65.js +2 -12
- package/index66.js +64 -23
- package/index67.js +11 -13
- package/index68.js +25 -26
- package/index69.js +14 -2
- package/index7.js +1 -1
- package/index70.js +24 -504
- package/index71.js +2 -79
- package/index72.js +498 -62
- package/index73.js +58 -48
- package/index74.js +62 -535
- package/index75.js +69 -2
- package/index76.js +543 -2
- package/index77.js +2 -2
- package/index78.js +2 -4
- package/index79.js +2 -2
- package/index80.js +4 -4
- package/index82.js +4 -2
- package/index84.js +2 -48
- package/index85.js +2 -82
- package/index86.js +48 -2
- package/index87.js +82 -2
- package/index88.js +2 -2
- package/index89.js +2 -2
- package/index90.js +4 -0
- package/index91.js +4 -0
- package/package.json +1 -1
- package/stepper/index.d.ts +1 -0
- package/stepper/index.scss +79 -0
- package/stepper/index.vue.d.ts +23 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,29 @@
|
|
|
1
|
+
## 3.1.0 (2026-07-09)
|
|
2
|
+
|
|
3
|
+
### 🚀 Features
|
|
4
|
+
|
|
5
|
+
- **ui-sun/stepper:** add Stepper component
|
|
6
|
+
|
|
7
|
+
### ❤️ Thank You
|
|
8
|
+
|
|
9
|
+
- HyperLife1119
|
|
10
|
+
|
|
11
|
+
# 3.0.0 (2026-07-08)
|
|
12
|
+
|
|
13
|
+
### 🚀 Features
|
|
14
|
+
|
|
15
|
+
- **ui-sun/list:** add List component
|
|
16
|
+
- **ui-sun/empty:** add Empty component
|
|
17
|
+
- **ui-sun/item-divider:** add ItemDivider component
|
|
18
|
+
|
|
19
|
+
### 🩹 Fixes
|
|
20
|
+
|
|
21
|
+
- **ui-sun/toggle:** fix bug
|
|
22
|
+
|
|
23
|
+
### ❤️ Thank You
|
|
24
|
+
|
|
25
|
+
- HyperLife1119
|
|
26
|
+
|
|
1
27
|
## 2.9.0 (2026-07-08)
|
|
2
28
|
|
|
3
29
|
### 🚀 Features
|
package/index.d.ts
CHANGED
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
|
|
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
|
|
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
|
-
|
|
41
|
+
m as SunEmpty,
|
|
41
42
|
b as SunFab,
|
|
42
43
|
x as SunFabGroup,
|
|
43
|
-
|
|
44
|
+
oe as SunIcon,
|
|
44
45
|
g as SunItem,
|
|
45
|
-
|
|
46
|
+
te as SunItemDivider,
|
|
46
47
|
k as SunLazyRender,
|
|
47
48
|
I as SunList,
|
|
48
|
-
|
|
49
|
+
fe as SunListHeader,
|
|
49
50
|
B as SunNavbar,
|
|
50
|
-
|
|
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
|
-
|
|
56
|
+
de as SunSkeleton,
|
|
56
57
|
A as SunSliderCaptcha,
|
|
57
58
|
E as SunSpinner,
|
|
58
|
-
N as
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
K as
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
_ as
|
|
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 "./
|
|
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 "./
|
|
3
|
+
import { QrCode as U, QrCodeEcc as a } from "./index55.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 "./
|
|
2
|
+
import { ACTIVE_CHILD as d, PARENT as g } from "./index56.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 "./
|
|
2
|
+
import { ACTIVE_CHILD as N, PARENT as P } from "./index56.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 "./
|
|
11
|
-
import { e as D } from "./
|
|
12
|
-
import me from "./
|
|
13
|
-
import ve from "./
|
|
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,90 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
1
|
+
import { defineComponent as w, mergeModels as C, useModel as D, ref as f, computed as a, effect as T, unref as _, createVNode as h, normalizeClass as S, createElementVNode as j, openBlock as q, createElementBlock as A } from "vue";
|
|
2
|
+
import { vibrator as b } from "@solar-taro/core";
|
|
3
|
+
import x from "./index29.js";
|
|
4
|
+
const V = _, y = h, d = S, p = j, G = q, H = A, J = ["type", "value", "disabled"], P = /* @__PURE__ */ w({
|
|
5
|
+
__name: "index",
|
|
6
|
+
props: /* @__PURE__ */ C({
|
|
7
|
+
type: { default: "decimal" },
|
|
8
|
+
expand: { default: "inline" },
|
|
9
|
+
size: { default: "middle" },
|
|
10
|
+
min: { default: -1 / 0 },
|
|
11
|
+
max: { default: 1 / 0 },
|
|
12
|
+
disabled: { type: Boolean }
|
|
13
|
+
}, {
|
|
14
|
+
modelValue: { default: 0 },
|
|
15
|
+
modelModifiers: {}
|
|
16
|
+
}),
|
|
17
|
+
emits: ["update:modelValue"],
|
|
18
|
+
setup(m) {
|
|
19
|
+
const e = m, l = D(m, "modelValue"), s = f(""), M = a(() => e.type === "integer" ? "number" : "digit"), g = a(() => ({
|
|
20
|
+
"sun-stepper-disabled": e.disabled,
|
|
21
|
+
"sun-stepper-inline": e.expand === "inline",
|
|
22
|
+
"sun-stepper-block": e.expand === "block",
|
|
23
|
+
"sun-stepper-small": e.size === "small",
|
|
24
|
+
"sun-stepper-middle": e.size === "middle",
|
|
25
|
+
"sun-stepper-large": e.size === "large"
|
|
26
|
+
})), r = f(!1), z = a(() => l.value <= e.min), B = a(() => l.value >= e.max), v = a(() => e.disabled || z.value), c = a(() => e.disabled || B.value);
|
|
27
|
+
function k() {
|
|
28
|
+
if (c.value) return;
|
|
29
|
+
const n = l.value;
|
|
30
|
+
l.value = o(Math.min(e.max, n + 1)), s.value = i(l.value), b.short();
|
|
31
|
+
}
|
|
32
|
+
function F() {
|
|
33
|
+
if (v.value) return;
|
|
34
|
+
const n = l.value;
|
|
35
|
+
l.value = o(Math.max(e.min, n - 1)), s.value = i(l.value), b.short();
|
|
36
|
+
}
|
|
37
|
+
function N(n) {
|
|
38
|
+
s.value = n.detail.value;
|
|
39
|
+
let t = E(s.value);
|
|
40
|
+
t > e.max ? t = e.max : t < e.min && (t = e.min), l.value = t;
|
|
41
|
+
}
|
|
42
|
+
function I() {
|
|
43
|
+
r.value = !0;
|
|
44
|
+
}
|
|
45
|
+
function $() {
|
|
46
|
+
s.value = i(l.value), r.value = !1;
|
|
47
|
+
}
|
|
48
|
+
function E(n) {
|
|
49
|
+
return n ? o(Number.parseFloat(n) || 0) : 0;
|
|
50
|
+
}
|
|
51
|
+
function i(n) {
|
|
52
|
+
return n = +n, Number.isFinite(n) ? (e.type === "integer" ? Math.trunc(n) : n).toString() : "";
|
|
53
|
+
}
|
|
54
|
+
function o(n) {
|
|
55
|
+
return e.type === "integer" ? Math.trunc(n) : +n.toFixed(2);
|
|
56
|
+
}
|
|
57
|
+
return T(() => {
|
|
58
|
+
r.value || (s.value = i(l.value));
|
|
59
|
+
}), (n, t) => (G(), H("view", {
|
|
60
|
+
class: d(["sun-stepper", g.value])
|
|
61
|
+
}, [
|
|
62
|
+
p("view", {
|
|
63
|
+
class: d(["sun-stepper-btn sun-stepper-btn-dec", { "sun-stepper-btn-disabled": v.value }]),
|
|
64
|
+
"hover-class": "hover",
|
|
65
|
+
onTap: t[0] || (t[0] = (u) => F())
|
|
66
|
+
}, [
|
|
67
|
+
y(V(x), { name: "remove" })
|
|
68
|
+
], 34),
|
|
69
|
+
p("input", {
|
|
70
|
+
class: "sun-stepper-input",
|
|
71
|
+
type: M.value,
|
|
72
|
+
value: s.value,
|
|
73
|
+
disabled: n.disabled,
|
|
74
|
+
onInput: t[1] || (t[1] = (u) => N(u)),
|
|
75
|
+
onFocus: t[2] || (t[2] = (u) => I()),
|
|
76
|
+
onBlur: t[3] || (t[3] = (u) => $())
|
|
77
|
+
}, null, 40, J),
|
|
78
|
+
p("view", {
|
|
79
|
+
class: d(["sun-stepper-btn sun-stepper-btn-inc", { "sun-stepper-btn-disabled": c.value }]),
|
|
80
|
+
"hover-class": "hover",
|
|
81
|
+
onTap: t[4] || (t[4] = (u) => k())
|
|
82
|
+
}, [
|
|
83
|
+
y(V(x), { name: "add" })
|
|
84
|
+
], 34)
|
|
85
|
+
], 2));
|
|
23
86
|
}
|
|
24
87
|
});
|
|
25
88
|
export {
|
|
26
|
-
|
|
89
|
+
P as default
|
|
27
90
|
};
|
package/index21.js
CHANGED
|
@@ -1,49 +1,27 @@
|
|
|
1
|
-
import { defineComponent as u, computed as
|
|
2
|
-
|
|
3
|
-
|
|
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
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
"
|
|
19
|
-
|
|
20
|
-
"
|
|
21
|
-
|
|
22
|
-
|
|
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
|
-
(
|
|
25
|
-
|
|
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
|
-
|
|
26
|
+
_ as default
|
|
49
27
|
};
|
package/index22.js
CHANGED
|
@@ -1,30 +1,49 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
|
|
3
|
-
|
|
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
|
-
|
|
6
|
-
|
|
7
|
-
width: {},
|
|
8
|
-
maxWidth: {},
|
|
9
|
-
ellipsis: { type: Boolean },
|
|
10
|
-
breakWord: { type: Boolean }
|
|
6
|
+
tabs: {},
|
|
7
|
+
active: { default: 0 }
|
|
11
8
|
},
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
"
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
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
|
-
|
|
25
|
-
|
|
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
|
-
|
|
48
|
+
I as default
|
|
30
49
|
};
|
package/index23.js
CHANGED
|
@@ -1,18 +1,30 @@
|
|
|
1
|
-
import { defineComponent as o, renderSlot as
|
|
2
|
-
const
|
|
3
|
-
__name: "table-
|
|
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
|
-
|
|
7
|
+
width: {},
|
|
8
|
+
maxWidth: {},
|
|
9
|
+
ellipsis: { type: Boolean },
|
|
10
|
+
breakWord: { type: Boolean }
|
|
7
11
|
},
|
|
8
|
-
setup(
|
|
9
|
-
|
|
10
|
-
|
|
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
|
-
|
|
24
|
+
d(t.$slots, "default")
|
|
13
25
|
], 16));
|
|
14
26
|
}
|
|
15
27
|
});
|
|
16
28
|
export {
|
|
17
|
-
|
|
29
|
+
b as default
|
|
18
30
|
};
|
package/index24.js
CHANGED
|
@@ -1,35 +1,18 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
const
|
|
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
|
-
|
|
6
|
-
|
|
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(
|
|
13
|
-
|
|
14
|
-
"sun-tb-
|
|
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
|
-
|
|
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
|
-
|
|
17
|
+
u as default
|
|
35
18
|
};
|
package/index25.js
CHANGED
|
@@ -1,24 +1,35 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
const
|
|
3
|
-
__name: "
|
|
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
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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(
|
|
10
|
-
const e =
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
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
|
-
|
|
34
|
+
k as default
|
|
24
35
|
};
|
package/index26.js
CHANGED
|
@@ -1,36 +1,24 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
const
|
|
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:
|
|
5
|
-
|
|
6
|
-
color: {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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
|
-
|
|
21
|
-
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
|
|
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
|
-
|
|
23
|
+
g as default
|
|
36
24
|
};
|