radio.d.ts 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  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. align?: {
  18. type: StringConstructor;
  19. value?: "left" | "right";
  20. };
  21. allowUncheck?: {
  22. type: BooleanConstructor;
  23. value?: boolean;
  24. };
  25. checked?: {
  26. type: BooleanConstructor;
  27. value?: boolean;
  28. };
  29. defaultChecked?: {
  30. type: BooleanConstructor;
  31. value?: boolean;
  32. };
  33. color?: {
  34. type: StringConstructor;
  35. value?: string;
  36. };
  37. content?: {
  38. type: StringConstructor;
  39. value?: string;
  40. };
  41. contentDisabled?: {
  42. type: BooleanConstructor;
  43. value?: boolean;
  44. };
  45. disabled?: {
  46. type: BooleanConstructor;
  47. value?: boolean;
  48. };
  49. externalClasses?: {
  50. type: ArrayConstructor;
  51. value?: ["t-class", "t-class-icon", "t-class-label", "t-class-content", "t-class-border"];
  52. };
  53. icon?: {
  54. type: StringConstructor;
  55. optionalTypes: ArrayConstructor[];
  56. value?: string[] | "fill-circle" | "stroke-line";
  57. };
  58. label?: {
  59. type: StringConstructor;
  60. value?: string;
  61. };
  62. maxContentRow?: {
  63. type: NumberConstructor;
  64. value?: number;
  65. };
  66. maxLabelRow?: {
  67. type: NumberConstructor;
  68. value?: number;
  69. };
  70. name?: {
  71. type: StringConstructor;
  72. value?: string;
  73. };
  74. value?: {
  75. type: StringConstructor;
  76. optionalTypes: (NumberConstructor | BooleanConstructor)[];
  77. value?: import("./type").RadioValue;
  78. };
  79. };
  80. controlledProps: {
  81. key: string;
  82. event: string;
  83. }[];
  84. observers: {
  85. checked(isChecked: Boolean): void;
  86. };
  87. data: {
  88. prefix: string;
  89. active: boolean;
  90. classPrefix: string;
  91. customIcon: 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. }