合伙人运营小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

radio.d.ts 2.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  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. placement?: {
  18. type: StringConstructor;
  19. value?: "left" | "right";
  20. };
  21. allowUncheck?: {
  22. type: BooleanConstructor;
  23. value?: boolean;
  24. };
  25. block?: {
  26. type: BooleanConstructor;
  27. value?: boolean;
  28. };
  29. checked?: {
  30. type: BooleanConstructor;
  31. value?: boolean;
  32. };
  33. defaultChecked?: {
  34. type: BooleanConstructor;
  35. value?: boolean;
  36. };
  37. content?: {
  38. type: StringConstructor;
  39. value?: string;
  40. };
  41. contentDisabled?: {
  42. type: BooleanConstructor;
  43. value?: boolean;
  44. };
  45. style?: {
  46. type: StringConstructor;
  47. value?: string;
  48. };
  49. readonly?: {
  50. type: BooleanConstructor;
  51. value?: boolean;
  52. };
  53. disabled?: {
  54. type: BooleanConstructor;
  55. value?: boolean;
  56. };
  57. externalClasses?: {
  58. type: ArrayConstructor;
  59. value?: ["t-class", "t-class-icon", "t-class-label", "t-class-content", "t-class-border"];
  60. };
  61. icon?: {
  62. type: null;
  63. value?: string[] | "circle" | "line";
  64. };
  65. label?: {
  66. type: StringConstructor;
  67. value?: string;
  68. };
  69. maxContentRow?: {
  70. type: NumberConstructor;
  71. value?: number;
  72. };
  73. maxLabelRow?: {
  74. type: NumberConstructor;
  75. value?: number;
  76. };
  77. name?: {
  78. type: StringConstructor;
  79. value?: string;
  80. };
  81. value?: {
  82. type: null;
  83. value?: import("./type").RadioValue;
  84. };
  85. };
  86. controlledProps: {
  87. key: string;
  88. event: string;
  89. }[];
  90. data: {
  91. prefix: string;
  92. classPrefix: string;
  93. customIcon: boolean;
  94. slotIcon: boolean;
  95. optionLinked: boolean;
  96. iconVal: any[];
  97. _placement: string;
  98. _disabled: boolean;
  99. };
  100. observers: {
  101. disabled(v: any): void;
  102. };
  103. methods: {
  104. handleTap(e: any): void;
  105. doChange(): void;
  106. init(): void;
  107. setDisabled(disabled: Boolean): void;
  108. };
  109. }