refactor: model instance item

This commit is contained in:
jialin
2026-03-26 18:20:55 +08:00
committed by jialin
parent a95b7e9561
commit 33fe180997
15 changed files with 1057 additions and 765 deletions
+3 -1
View File
@@ -69,7 +69,7 @@ declare namespace Global {
onCancel: () => void;
}
interface ActionItem {
interface ActionItem<T> {
label: string;
key: string;
icon: React.ReactNode;
@@ -77,6 +77,8 @@ declare namespace Global {
props?: {
danger?: boolean;
};
visible?: (record: T) => boolean;
disabled?: (record: T) => boolean;
}
}