@solar-taro/ui-sun 1.1.12 → 1.2.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.
- package/CHANGELOG.md +8 -0
- package/index18.js +15 -15
- package/index19.js +1 -1
- package/index20.js +1 -1
- package/index21.js +1 -1
- package/index22.js +1 -1
- package/index23.js +1 -1
- package/index24.js +1 -1
- package/index25.js +2 -7
- package/index26.js +7 -2
- package/index27.js +1 -1
- package/index28.js +1 -1
- package/index29.js +1 -1
- package/index30.js +1 -1
- package/index31.js +1 -1
- package/index32.js +1 -1
- package/index33.js +1 -1
- package/index34.js +1 -1
- package/index36.js +1 -1
- package/index37.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
## 1.1.13 (2025-07-21)
|
|
2
|
+
|
|
3
|
+
This was a version bump only for ui-sun to align it with other projects, there were no code changes.
|
|
4
|
+
|
|
5
|
+
## 1.1.12 (2025-07-21)
|
|
6
|
+
|
|
7
|
+
This was a version bump only for ui-sun to align it with other projects, there were no code changes.
|
|
8
|
+
|
|
1
9
|
## 1.1.11 (2025-07-18)
|
|
2
10
|
|
|
3
11
|
### 🚀 Features
|
package/index18.js
CHANGED
|
@@ -3,12 +3,12 @@ import { withPixel as S } from "@solar-kit/core";
|
|
|
3
3
|
import { rpxToPx as X, vibrator as Y } from "@solar-taro/core";
|
|
4
4
|
import { createSelectorQuery as G } from "@tarojs/taro";
|
|
5
5
|
import H from "./index13.js";
|
|
6
|
-
const J = P, U = I,
|
|
6
|
+
const J = P, U = I, s = E, u = L, w = D, p = M, Z = A, ee = K, te = R, k = j, re = q, le = O, b = Q, oe = W, ne = ["id", "refresher-enabled", "refresher-triggered", "refresher-background", "scroll-x", "scroll-y"], ie = {
|
|
7
7
|
key: 0,
|
|
8
8
|
class: "sun-virtual-scroll-placeholder",
|
|
9
9
|
style: { display: "flex", "justify-content": "center", "align-items": "center", height: "85%" }
|
|
10
10
|
};
|
|
11
|
-
let
|
|
11
|
+
let ae = 1;
|
|
12
12
|
const de = /* @__PURE__ */ F({
|
|
13
13
|
__name: "index",
|
|
14
14
|
props: {
|
|
@@ -19,7 +19,7 @@ const de = /* @__PURE__ */ F({
|
|
|
19
19
|
items: {},
|
|
20
20
|
itemSize: {},
|
|
21
21
|
itemKey: {},
|
|
22
|
-
id: { default: () => `sun-virtual-scroll-${
|
|
22
|
+
id: { default: () => `sun-virtual-scroll-${ae++}` },
|
|
23
23
|
bottomSpace: { default: 0 },
|
|
24
24
|
loading: { type: Boolean },
|
|
25
25
|
loadingText: { default: "Loading" }
|
|
@@ -28,7 +28,7 @@ const de = /* @__PURE__ */ F({
|
|
|
28
28
|
setup(z, { emit: B }) {
|
|
29
29
|
const h = B, r = z;
|
|
30
30
|
let c;
|
|
31
|
-
const
|
|
31
|
+
const a = f(0), m = f(0), d = f(0), l = i(() => r.direction === "vertical"), $ = i(() => ({
|
|
32
32
|
right: l.value ? "0" : "auto",
|
|
33
33
|
transform: `translate${l.value ? "Y" : "X"}(${d.value}px)`,
|
|
34
34
|
"white-space": l.value ? "normal" : "nowrap"
|
|
@@ -39,29 +39,29 @@ const de = /* @__PURE__ */ F({
|
|
|
39
39
|
[l.value ? "height" : "width"]: S(n.value)
|
|
40
40
|
})), V = i(
|
|
41
41
|
() => r.items.slice(
|
|
42
|
-
Math.max(m.value -
|
|
43
|
-
m.value +
|
|
42
|
+
Math.max(m.value - a.value, 0),
|
|
43
|
+
m.value + a.value * 2
|
|
44
44
|
)
|
|
45
45
|
);
|
|
46
46
|
function T({ detail: e }) {
|
|
47
47
|
c && cancelAnimationFrame(c), c = requestAnimationFrame(() => {
|
|
48
48
|
const t = l.value ? e.scrollTop : e.scrollLeft;
|
|
49
|
-
m.value = ~~(t / n.value), m.value >
|
|
49
|
+
m.value = ~~(t / n.value), m.value > a.value - 1 ? d.value = t - n.value * a.value - t % n.value : d.value = t - t % (n.value * a.value), c = 0;
|
|
50
50
|
});
|
|
51
51
|
}
|
|
52
52
|
function g() {
|
|
53
53
|
setTimeout(() => {
|
|
54
54
|
G().select(`#${r.id}`).boundingClientRect((e) => {
|
|
55
|
-
if (!e)
|
|
55
|
+
if (e = e, !(e != null && e.height) || !(e != null && e.width))
|
|
56
56
|
return g();
|
|
57
57
|
const { height: t, width: o } = e, v = l.value ? t : o;
|
|
58
|
-
|
|
58
|
+
a.value = Math.ceil(v / n.value);
|
|
59
59
|
}).exec();
|
|
60
60
|
});
|
|
61
61
|
}
|
|
62
62
|
return N(() => {
|
|
63
63
|
g();
|
|
64
|
-
}), (e, t) => (
|
|
64
|
+
}), (e, t) => (s(), u("scroll-view", oe(e.$attrs, {
|
|
65
65
|
id: e.id,
|
|
66
66
|
class: "sun-virtual-scroll",
|
|
67
67
|
"refresher-enabled": e.refresher,
|
|
@@ -82,9 +82,9 @@ const de = /* @__PURE__ */ F({
|
|
|
82
82
|
class: "sun-virtual-scroll-content-container",
|
|
83
83
|
style: p($.value)
|
|
84
84
|
}, [
|
|
85
|
-
(
|
|
85
|
+
(s(!0), u(U, null, J(V.value, (o, v) => {
|
|
86
86
|
var y;
|
|
87
|
-
return
|
|
87
|
+
return s(), u("view", {
|
|
88
88
|
key: (y = o[e.itemKey]) != null ? y : v,
|
|
89
89
|
class: "sun-virtual-scroll-item",
|
|
90
90
|
style: p(C.value)
|
|
@@ -96,8 +96,8 @@ const de = /* @__PURE__ */ F({
|
|
|
96
96
|
], 4);
|
|
97
97
|
}), 128))
|
|
98
98
|
], 4),
|
|
99
|
-
e.items.length ? b("", !0) : (
|
|
100
|
-
e.loading ? (
|
|
99
|
+
e.items.length ? b("", !0) : (s(), u("view", ie, [
|
|
100
|
+
e.loading ? (s(), le(k(H), {
|
|
101
101
|
key: 0,
|
|
102
102
|
spinning: !0
|
|
103
103
|
}, {
|
|
@@ -107,7 +107,7 @@ const de = /* @__PURE__ */ F({
|
|
|
107
107
|
_: 1
|
|
108
108
|
})) : w(e.$slots, "empty", { key: 1 })
|
|
109
109
|
])),
|
|
110
|
-
e.items.length ? (
|
|
110
|
+
e.items.length ? (s(), u("view", {
|
|
111
111
|
key: 1,
|
|
112
112
|
class: "sun-virtual-scroll-spacer",
|
|
113
113
|
style: p(_.value)
|
package/index19.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { renderSlot as r, mergeProps as o, openBlock as t, createElementBlock as n } from "vue";
|
|
2
|
-
import c from "./
|
|
2
|
+
import c from "./index26.js";
|
|
3
3
|
const s = {}, l = r, a = o, f = t, _ = n;
|
|
4
4
|
function m(e, p) {
|
|
5
5
|
return f(), _("view", a(e.$attrs, { class: "sun-fab" }), [
|
package/index20.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { renderSlot as o, mergeProps as r, openBlock as t, createElementBlock as s } from "vue";
|
|
2
|
-
import n from "./
|
|
2
|
+
import n from "./index26.js";
|
|
3
3
|
const c = {}, l = o, m = r, _ = t, a = s;
|
|
4
4
|
function u(e, d) {
|
|
5
5
|
return _(), a("view", m(e.$attrs, { class: "sun-sudoku-item" }), [
|
package/index21.js
CHANGED
package/index22.js
CHANGED
package/index23.js
CHANGED
package/index24.js
CHANGED
package/index25.js
CHANGED
package/index26.js
CHANGED
package/index27.js
CHANGED
package/index28.js
CHANGED
package/index29.js
CHANGED
package/index30.js
CHANGED
package/index31.js
CHANGED
package/index32.js
CHANGED
package/index33.js
CHANGED
package/index34.js
CHANGED
package/index36.js
CHANGED
package/index37.js
CHANGED