type.d.ts 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. import { PopupProps } from '../popup/index';
  2. export interface TdActionSheetProps {
  3. align?: {
  4. type: StringConstructor;
  5. value?: 'center' | 'left';
  6. };
  7. cancelText?: {
  8. type: StringConstructor;
  9. value?: string;
  10. };
  11. count?: {
  12. type: NumberConstructor;
  13. value?: number;
  14. };
  15. description?: {
  16. type: StringConstructor;
  17. value?: string;
  18. };
  19. items: {
  20. type: ArrayConstructor;
  21. value?: Array<string | ActionSheetItem>;
  22. required?: boolean;
  23. };
  24. popupProps?: {
  25. type: ObjectConstructor;
  26. value?: PopupProps;
  27. };
  28. showCancel?: {
  29. type: BooleanConstructor;
  30. value?: boolean;
  31. };
  32. showOverlay?: {
  33. type: BooleanConstructor;
  34. value?: boolean;
  35. };
  36. theme?: {
  37. type: StringConstructor;
  38. value?: 'list' | 'grid';
  39. };
  40. usingCustomNavbar?: {
  41. type: BooleanConstructor;
  42. value?: boolean;
  43. };
  44. visible?: {
  45. type: BooleanConstructor;
  46. value?: boolean;
  47. };
  48. defaultVisible?: {
  49. type: BooleanConstructor;
  50. value?: boolean;
  51. };
  52. }
  53. export interface ActionSheetItem {
  54. label: string;
  55. color?: string;
  56. disabled?: boolean;
  57. icon?: string;
  58. suffixIcon?: string;
  59. }