radio.d.ts 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. import { SuperComponent, RelationsOptions } from '../common/src/index';
  2. export default class Radio extends SuperComponent {
  3. externalClasses: string[];
  4. behaviors: string[];
  5. parent: any;
  6. relations: RelationsOptions;
  7. options: {
  8. multipleSlots: boolean;
  9. };
  10. lifetimes: {
  11. attached(): void;
  12. };
  13. properties: {
  14. borderless: {
  15. type: BooleanConstructor;
  16. value: boolean;
  17. };
  18. align?: {
  19. type: StringConstructor;
  20. value?: "left" | "right";
  21. };
  22. allowUncheck?: {
  23. type: BooleanConstructor;
  24. value?: boolean;
  25. };
  26. block?: {
  27. type: BooleanConstructor;
  28. value?: boolean;
  29. };
  30. checked?: {
  31. type: BooleanConstructor;
  32. value?: boolean;
  33. };
  34. defaultChecked?: {
  35. type: BooleanConstructor;
  36. value?: boolean;
  37. };
  38. content?: {
  39. type: StringConstructor;
  40. value?: string;
  41. };
  42. contentDisabled?: {
  43. type: BooleanConstructor;
  44. value?: boolean;
  45. };
  46. style?: {
  47. type: StringConstructor;
  48. value?: string;
  49. };
  50. disabled?: {
  51. type: BooleanConstructor;
  52. value?: boolean;
  53. };
  54. externalClasses?: {
  55. type: ArrayConstructor;
  56. value?: ["t-class", "t-class-icon", "t-class-label", "t-class-content", "t-class-border"];
  57. };
  58. icon?: {
  59. type: null;
  60. value?: string[] | "circle" | "line";
  61. };
  62. label?: {
  63. type: StringConstructor;
  64. value?: string;
  65. };
  66. maxContentRow?: {
  67. type: NumberConstructor;
  68. value?: number;
  69. };
  70. maxLabelRow?: {
  71. type: NumberConstructor;
  72. value?: number;
  73. };
  74. name?: {
  75. type: StringConstructor;
  76. value?: string;
  77. };
  78. value?: {
  79. type: null;
  80. value?: import("./type").RadioValue;
  81. };
  82. };
  83. controlledProps: {
  84. key: string;
  85. event: string;
  86. }[];
  87. data: {
  88. prefix: string;
  89. classPrefix: string;
  90. customIcon: boolean;
  91. slotIcon: boolean;
  92. optionLinked: boolean;
  93. iconVal: any[];
  94. };
  95. methods: {
  96. handleTap(e: any): void;
  97. doChange(): void;
  98. initStatus(): void;
  99. setDisabled(disabled: Boolean): void;
  100. };
  101. }