feat: add model access control

This commit is contained in:
jialin
2025-10-13 15:21:17 +08:00
parent c41e5d9c55
commit bcd1a339f9
9 changed files with 289 additions and 2 deletions
+10
View File
@@ -1,3 +1,4 @@
import { PageActionType } from './types';
declare namespace Global {
type WithFalse<T> = T | false;
interface Pagination {
@@ -53,6 +54,15 @@ declare namespace Global {
type SearchParams = Pagination & { search?: string };
type MessageType = 'transition' | 'warning' | 'danger' | 'success' | 'info';
interface ScrollerModalProps<T = unknown, U = unknown> {
title?: string;
action?: PageActionType;
open: boolean;
currentData?: T | null;
onOk?: (values: U) => void;
onCancel: () => void;
}
}
interface Window {