checkbox.d.ts 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. import { SuperComponent } from '../common/src/index';
  2. export default class CheckBox extends SuperComponent {
  3. externalClasses: string[];
  4. behaviors: string[];
  5. relations: {
  6. '../checkbox-group/checkbox-group': {
  7. type: "ancestor";
  8. };
  9. };
  10. options: {
  11. multipleSlots: boolean;
  12. };
  13. properties: {
  14. defaultChecked: {
  15. type: any;
  16. value: any;
  17. };
  18. align?: {
  19. type: StringConstructor;
  20. value?: "left" | "right";
  21. };
  22. checkAll?: {
  23. type: BooleanConstructor;
  24. value?: boolean;
  25. };
  26. checked?: {
  27. type: BooleanConstructor;
  28. value?: boolean;
  29. };
  30. color?: {
  31. type: StringConstructor;
  32. value?: string;
  33. };
  34. content?: {
  35. type: StringConstructor;
  36. value?: string;
  37. };
  38. contentDisabled?: {
  39. type: BooleanConstructor;
  40. value?: boolean;
  41. };
  42. disabled?: {
  43. type: BooleanConstructor;
  44. value?: boolean;
  45. };
  46. externalClasses?: {
  47. type: ArrayConstructor;
  48. value?: ["t-class", "t-class-icon", "t-class-label", "t-class-content", "t-class-border"];
  49. };
  50. icon?: {
  51. type: ArrayConstructor;
  52. value?: string[];
  53. };
  54. indeterminate?: {
  55. type: BooleanConstructor;
  56. value?: boolean;
  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. readonly?: {
  75. type: BooleanConstructor;
  76. value?: boolean;
  77. };
  78. value?: {
  79. type: StringConstructor;
  80. optionalTypes: NumberConstructor[];
  81. value?: string | number;
  82. };
  83. };
  84. data: {
  85. classPrefix: string;
  86. prefix: string;
  87. active: boolean;
  88. halfChecked: boolean;
  89. optionLinked: boolean;
  90. canCancel: boolean;
  91. };
  92. lifetimes: {
  93. attached(): void;
  94. };
  95. observers: {
  96. checked: (isChecked: any) => void;
  97. };
  98. controlledProps: {
  99. key: string;
  100. event: string;
  101. }[];
  102. methods: {
  103. onChange(e: any): void;
  104. initStatus(): void;
  105. setCancel(cancel: boolean): void;
  106. setDisabled(disabled: Boolean): void;
  107. changeCheckAllHalfStatus(active: boolean): void;
  108. setOptionLinked(linked: Boolean): void;
  109. };
  110. }