添加列表刷新组件

This commit is contained in:
icssoa
2025-08-11 09:54:23 +08:00
parent 30147ed73a
commit 4f2d437ef8
13 changed files with 482 additions and 108 deletions

View File

@@ -2,7 +2,7 @@ import { computed, ref, type ComputedRef } from "vue";
import type { ClFormRule, ClFormValidateError } from "../types";
import { useParent } from "@/cool";
class UseForm {
class Form {
public formRef = ref<ClFormComponentPublicInstance | null>(null);
public disabled: ComputedRef<boolean>;
@@ -82,5 +82,5 @@ class UseForm {
}
export function useForm() {
return new UseForm();
return new Form();
}

View File

@@ -79,6 +79,25 @@ class Ui {
instance.showToast(options);
}
}
/**
* 显示加载中弹窗
* @param title 提示内容
* @param mask 是否显示蒙层
*/
showLoading(title: string, mask: boolean | null = null): void {
uni.showLoading({
title,
mask: mask ?? true
});
}
/**
* 隐藏加载中弹窗
*/
hideLoading(): void {
uni.hideLoading();
}
}
/**