type.d.ts 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. import { ButtonProps } from '../button/index';
  2. import { OverlayProps } from '../overlay/index';
  3. export interface TdDialogProps {
  4. actions?: {
  5. type: ArrayConstructor;
  6. value?: Array<ButtonProps>;
  7. };
  8. buttonLayout?: {
  9. type: StringConstructor;
  10. value?: 'horizontal' | 'vertical';
  11. };
  12. cancelBtn?: {
  13. type: null;
  14. value?: string | ButtonProps | null;
  15. };
  16. closeBtn?: {
  17. type: null;
  18. value?: boolean | ButtonProps | null;
  19. };
  20. closeOnOverlayClick?: {
  21. type: BooleanConstructor;
  22. value?: boolean;
  23. };
  24. confirmBtn?: {
  25. type: null;
  26. value?: string | ButtonProps | null;
  27. };
  28. content?: {
  29. type: StringConstructor;
  30. value?: string;
  31. };
  32. overlayProps?: {
  33. type: ObjectConstructor;
  34. value?: OverlayProps;
  35. };
  36. preventScrollThrough?: {
  37. type: BooleanConstructor;
  38. value?: boolean;
  39. };
  40. showOverlay?: {
  41. type: BooleanConstructor;
  42. value?: boolean;
  43. };
  44. title?: {
  45. type: StringConstructor;
  46. value?: string;
  47. };
  48. usingCustomNavbar?: {
  49. type: BooleanConstructor;
  50. value?: boolean;
  51. };
  52. visible?: {
  53. type: BooleanConstructor;
  54. value?: boolean;
  55. };
  56. zIndex?: {
  57. type: NumberConstructor;
  58. value?: number;
  59. };
  60. }