checkbox.d.ts 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. import { SuperComponent, ComponentsOptionsType, RelationsOptions } from '../common/src/index';
  2. export default class CheckBox extends SuperComponent {
  3. externalClasses: string[];
  4. behaviors: string[];
  5. relations: RelationsOptions;
  6. options: ComponentsOptionsType;
  7. properties: {
  8. theme: {
  9. type: StringConstructor;
  10. value: string;
  11. };
  12. borderless: {
  13. type: BooleanConstructor;
  14. value: boolean;
  15. };
  16. align?: {
  17. type: StringConstructor;
  18. value?: "left" | "right";
  19. };
  20. checkAll?: {
  21. type: BooleanConstructor;
  22. value?: boolean;
  23. };
  24. checked?: {
  25. type: BooleanConstructor;
  26. value?: boolean;
  27. };
  28. defaultChecked?: {
  29. type: BooleanConstructor;
  30. value?: boolean;
  31. };
  32. color?: {
  33. type: StringConstructor;
  34. value?: string;
  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. externalClasses?: {
  49. type: ArrayConstructor;
  50. value?: ["t-class", "t-class-icon", "t-class-label", "t-class-content", "t-class-border"];
  51. };
  52. icon?: {
  53. type: ArrayConstructor;
  54. value?: string[];
  55. };
  56. indeterminate?: {
  57. type: BooleanConstructor;
  58. value?: boolean;
  59. };
  60. label?: {
  61. type: StringConstructor;
  62. value?: string;
  63. };
  64. maxContentRow?: {
  65. type: NumberConstructor;
  66. value?: number;
  67. };
  68. maxLabelRow?: {
  69. type: NumberConstructor;
  70. value?: number;
  71. };
  72. name?: {
  73. type: StringConstructor;
  74. value?: string;
  75. };
  76. readonly?: {
  77. type: BooleanConstructor;
  78. value?: boolean;
  79. };
  80. value?: {
  81. type: StringConstructor;
  82. optionalTypes: NumberConstructor[];
  83. value?: string | number;
  84. };
  85. };
  86. data: {
  87. prefix: string;
  88. classPrefix: string;
  89. };
  90. controlledProps: {
  91. key: string;
  92. event: string;
  93. }[];
  94. methods: {
  95. onChange(e: WechatMiniprogram.TouchEvent): void;
  96. };
  97. }