添加列表刷新组件
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user