fix: 修复类型定义及多处逻辑缺陷
- 补充字典项备注字段及部门排序必填约束 - 使用 Ref/ComputedRef 替代 ReturnType 简化类型 - 兜底胶囊按钮默认尺寸,避免获取失败时导航栏异常 - 移除不可靠的新版 API 降级调用,统一使用 getSystemInfoSync - 修复防抖函数定时器未清空及类型不严谨问题
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { ref, computed } from "vue";
|
||||
import { type Ref, type ComputedRef } from "vue";
|
||||
|
||||
/**
|
||||
* 加载状态管理
|
||||
@@ -35,11 +35,11 @@ export interface UseLoadingOptions {
|
||||
|
||||
export interface UseLoadingReturn {
|
||||
/** 是否处于加载状态 */
|
||||
isLoading: ReturnType<typeof computed<boolean>>;
|
||||
isLoading: ComputedRef<boolean>;
|
||||
/** 加载计数(支持并发) */
|
||||
loadingCount: ReturnType<typeof ref<number>>;
|
||||
loadingCount: Ref<number>;
|
||||
/** 当前加载消息 */
|
||||
message: ReturnType<typeof ref<string>>;
|
||||
message: Ref<string>;
|
||||
/** 开始加载 */
|
||||
start: (msg?: string) => void;
|
||||
/** 结束加载 */
|
||||
|
||||
Reference in New Issue
Block a user