type.d.ts 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. import { LoadingProps } from '../loading/index';
  2. export interface TdButtonProps {
  3. appParameter?: {
  4. type: StringConstructor;
  5. value?: string;
  6. };
  7. block?: {
  8. type: BooleanConstructor;
  9. value?: boolean;
  10. };
  11. content?: {
  12. type: StringConstructor;
  13. value?: string;
  14. };
  15. customDataset?: {
  16. type: null;
  17. value?: null;
  18. };
  19. disabled?: {
  20. type: BooleanConstructor;
  21. value?: boolean;
  22. };
  23. ghost?: {
  24. type: BooleanConstructor;
  25. value?: boolean;
  26. };
  27. hoverClass?: {
  28. type: StringConstructor;
  29. value?: string;
  30. };
  31. hoverStartTime?: {
  32. type: NumberConstructor;
  33. value?: number;
  34. };
  35. hoverStayTime?: {
  36. type: NumberConstructor;
  37. value?: number;
  38. };
  39. hoverStopPropagation?: {
  40. type: BooleanConstructor;
  41. value?: boolean;
  42. };
  43. icon?: {
  44. type: null;
  45. value?: string | object;
  46. };
  47. lang?: {
  48. type: StringConstructor;
  49. value?: 'en' | 'zh_CN' | 'zh_TW';
  50. };
  51. loading?: {
  52. type: BooleanConstructor;
  53. value?: boolean;
  54. };
  55. loadingProps?: {
  56. type: ObjectConstructor;
  57. value?: LoadingProps;
  58. };
  59. openType?: {
  60. type: StringConstructor;
  61. value?: 'contact' | 'share' | 'getPhoneNumber' | 'getUserInfo' | 'launchApp' | 'openSetting' | 'feedback' | 'chooseAvatar' | 'agreePrivacyAuthorization';
  62. };
  63. phoneNumberNoQuotaToast?: {
  64. type: BooleanConstructor;
  65. value?: boolean;
  66. };
  67. sendMessageImg?: {
  68. type: StringConstructor;
  69. value?: string;
  70. };
  71. sendMessagePath?: {
  72. type: StringConstructor;
  73. value?: string;
  74. };
  75. sendMessageTitle?: {
  76. type: StringConstructor;
  77. value?: string;
  78. };
  79. sessionFrom?: {
  80. type: StringConstructor;
  81. value?: string;
  82. };
  83. shape?: {
  84. type: StringConstructor;
  85. value?: 'rectangle' | 'square' | 'round' | 'circle';
  86. };
  87. showMessageCard?: {
  88. type: BooleanConstructor;
  89. value?: boolean;
  90. };
  91. size?: {
  92. type: StringConstructor;
  93. value?: 'extra-small' | 'small' | 'medium' | 'large';
  94. };
  95. tId?: {
  96. type: StringConstructor;
  97. value?: string;
  98. };
  99. theme?: {
  100. type: StringConstructor;
  101. value?: 'default' | 'primary' | 'danger' | 'light';
  102. };
  103. type?: {
  104. type: StringConstructor;
  105. value?: 'submit' | 'reset';
  106. };
  107. variant?: {
  108. type: StringConstructor;
  109. value?: 'base' | 'outline' | 'dashed' | 'text';
  110. };
  111. }