aot-ui 0.2.38 → 0.2.41
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/dist-lib/aot-ui.js
CHANGED
|
@@ -927,9 +927,12 @@ var ze = s(function({ children: e, height: t, maxHeight: n, fill: r = !1, native
|
|
|
927
927
|
});
|
|
928
928
|
}, [g]), q = l(() => {
|
|
929
929
|
let e = P.current;
|
|
930
|
-
|
|
930
|
+
if (!e || !A) return;
|
|
931
|
+
let t = e.scrollHeight - e.clientHeight;
|
|
932
|
+
t <= 4 ? B.current = !1 : t - e.scrollTop <= E ? B.current || (B.current = !0, A()) : B.current = !1;
|
|
931
933
|
}, [E, A]), J = l(() => {
|
|
932
|
-
|
|
934
|
+
let e = P.current;
|
|
935
|
+
!e || e.scrollHeight - e.clientHeight <= 4 || (B.current = !1, q());
|
|
933
936
|
}, [q]), Y = l(() => {
|
|
934
937
|
let e = P.current;
|
|
935
938
|
e && (K(), k?.({
|
|
@@ -75,7 +75,10 @@ export type ScrollbarProps = {
|
|
|
75
75
|
style?: CSSProperties;
|
|
76
76
|
/** 滚动时回调 */
|
|
77
77
|
onScroll?: (state: ScrollbarScrollState) => void;
|
|
78
|
-
/**
|
|
78
|
+
/**
|
|
79
|
+
* 到达底部(含 distance)时触发。
|
|
80
|
+
* 仅在容器已有纵向滚动溢出时触发,避免子内容高度未撑开时连环回调。
|
|
81
|
+
*/
|
|
79
82
|
onEndReached?: () => void;
|
|
80
83
|
};
|
|
81
84
|
export type ScrollbarHandle = {
|