type.d.ts 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. export interface TdRadioProps<T = RadioValue> {
  2. allowUncheck?: {
  3. type: BooleanConstructor;
  4. value?: boolean;
  5. };
  6. block?: {
  7. type: BooleanConstructor;
  8. value?: boolean;
  9. };
  10. checked?: {
  11. type: BooleanConstructor;
  12. value?: boolean;
  13. };
  14. defaultChecked?: {
  15. type: BooleanConstructor;
  16. value?: boolean;
  17. };
  18. content?: {
  19. type: StringConstructor;
  20. value?: string;
  21. };
  22. contentDisabled?: {
  23. type: BooleanConstructor;
  24. value?: boolean;
  25. };
  26. disabled?: {
  27. type: BooleanConstructor;
  28. value?: boolean;
  29. };
  30. icon?: {
  31. type: null;
  32. value?: 'circle' | 'line' | 'dot' | Array<string>;
  33. };
  34. label?: {
  35. type: StringConstructor;
  36. value?: string;
  37. };
  38. maxContentRow?: {
  39. type: NumberConstructor;
  40. value?: number;
  41. };
  42. maxLabelRow?: {
  43. type: NumberConstructor;
  44. value?: number;
  45. };
  46. name?: {
  47. type: StringConstructor;
  48. value?: string;
  49. };
  50. placement?: {
  51. type: StringConstructor;
  52. value?: 'left' | 'right';
  53. };
  54. readonly?: {
  55. type: BooleanConstructor;
  56. value?: boolean;
  57. };
  58. value?: {
  59. type: null;
  60. value?: T;
  61. };
  62. }
  63. export declare type RadioValue = string | number | boolean;