🎨 规范化代码

This commit is contained in:
BTMuli
2025-12-24 02:46:28 +08:00
parent 8500668213
commit 651a89145f
199 changed files with 5067 additions and 5390 deletions

View File

@@ -1,6 +1,5 @@
/**
* @file hooks/reachBottom.ts
* @description 触底检测
* 触底检测
* @since Beta v0.7.7
*/
@@ -11,10 +10,9 @@ type ReachBottomReturn = {
};
/**
* @function usePageReachBottom
* @description 页面触底检测
* 页面触底检测
* @since Beta v0.7.7
* @return ReachBottomReturn
* @returns ReachBottomReturn
*/
export function usePageReachBottom(): ReachBottomReturn {
const isReachBottom = ref<boolean>(false);
@@ -41,11 +39,10 @@ export function usePageReachBottom(): ReachBottomReturn {
}
/**
* @function useBoxReachBottom
* @description 元素触底检测
* 元素触底检测
* @since Beta v0.7.7
* @param {TemplateRef<HTMLElement>} boxRef - 需要检测的元素引用
* @return ReachBottomReturn
* @param boxRef - 需要检测的元素引用
* @returns ReachBottomReturn
*/
export function useBoxReachBottom(boxRef: TemplateRef<HTMLElement>): ReachBottomReturn {
const isReachBottom = ref<boolean>(false);