checkbox.d.ts 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  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. tId: {
  13. type: StringConstructor;
  14. };
  15. block?: {
  16. type: BooleanConstructor;
  17. value?: boolean;
  18. };
  19. borderless?: {
  20. type: BooleanConstructor;
  21. value?: boolean;
  22. };
  23. checkAll?: {
  24. type: BooleanConstructor;
  25. value?: boolean;
  26. };
  27. checked?: {
  28. type: BooleanConstructor;
  29. value?: boolean;
  30. };
  31. defaultChecked?: {
  32. type: BooleanConstructor;
  33. value?: boolean;
  34. };
  35. content?: {
  36. type: StringConstructor;
  37. value?: string;
  38. };
  39. contentDisabled?: {
  40. type: BooleanConstructor;
  41. value?: boolean;
  42. };
  43. disabled?: {
  44. type: BooleanConstructor;
  45. value?: boolean;
  46. };
  47. icon?: {
  48. type: null;
  49. value?: string[] | "rectangle" | "circle" | "line";
  50. };
  51. indeterminate?: {
  52. type: BooleanConstructor;
  53. value?: boolean;
  54. };
  55. label?: {
  56. type: StringConstructor;
  57. value?: string;
  58. };
  59. maxContentRow?: {
  60. type: NumberConstructor;
  61. value?: number;
  62. };
  63. maxLabelRow?: {
  64. type: NumberConstructor;
  65. value?: number;
  66. };
  67. name?: {
  68. type: StringConstructor;
  69. value?: string;
  70. };
  71. placement?: {
  72. type: StringConstructor;
  73. value?: "left" | "right";
  74. };
  75. readonly?: {
  76. type: BooleanConstructor;
  77. value?: boolean;
  78. };
  79. value?: {
  80. type: null;
  81. value?: string | number | boolean;
  82. };
  83. };
  84. data: {
  85. prefix: string;
  86. classPrefix: string;
  87. _disabled: boolean;
  88. };
  89. observers: {
  90. disabled(v: any): void;
  91. };
  92. controlledProps: {
  93. key: string;
  94. event: string;
  95. }[];
  96. methods: {
  97. handleTap(e: WechatMiniprogram.TouchEvent): void;
  98. setDisabled(disabled: Boolean): void;
  99. };
  100. }