utils.d.ts 346 B

12345678910111213141516
  1. import type { ComputedRef, Ref } from 'vue';
  2. export type DynamicProps<T> = {
  3. [P in keyof T]: Ref<T[P]> | T[P] | ComputedRef<T[P]>;
  4. };
  5. export type SmartAuthDisplayMode = 'hide' | 'disabled';
  6. /**
  7. * 权限
  8. */
  9. export interface SmartAuth {
  10. permission: string | string[];
  11. displayMode?: SmartAuthDisplayMode;
  12. multipleMode?: 'and' | 'or';
  13. }