interface.ts 369 B

12345678910111213141516
  1. export interface ActionMenu<T = unknown> {
  2. name: string;
  3. label: string;
  4. type?: string;
  5. className?: string;
  6. icon?: string;
  7. disabled?: boolean;
  8. hide?: boolean;
  9. record?: T;
  10. }
  11. export interface ActionMenuOptions {
  12. authCode?: string;
  13. queryFn?: (name?: string) => void;
  14. preventDefault?: boolean; // 阻止按钮事件重复提交
  15. }