feat: modalLoading and DrawerLoading

This commit is contained in:
dap
2024-09-12 08:04:31 +08:00
parent e1a1a23923
commit 530ec6c4fb
4 changed files with 54 additions and 117 deletions

View File

@@ -86,6 +86,14 @@ export class DrawerApi {
}
}
drawerLoading(loading: boolean) {
this.store.setState((prev) => ({
...prev,
confirmLoading: loading,
loading,
}));
}
getData<T extends object = Record<string, any>>() {
return (this.sharedData?.payload ?? {}) as T;
}