radio.d.ts 2.6 KB

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