checkbox-group.d.ts 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. import { SuperComponent } from '../common/src/index';
  2. export default class CheckBoxGroup extends SuperComponent {
  3. externalClasses: string[];
  4. relations: {
  5. '../checkbox/checkbox': {
  6. type: "descendant";
  7. linked(): void;
  8. };
  9. };
  10. data: {
  11. classPrefix: string;
  12. checkboxOptions: any[];
  13. };
  14. properties: {
  15. defaultValue: {
  16. type: any;
  17. value: any;
  18. };
  19. disabled?: {
  20. type: BooleanConstructor;
  21. value?: boolean;
  22. };
  23. max?: {
  24. type: NumberConstructor;
  25. value?: number;
  26. };
  27. name?: {
  28. type: StringConstructor;
  29. value?: string;
  30. };
  31. options?: {
  32. type: ArrayConstructor;
  33. value?: import("../checkbox/type").CheckboxOption[];
  34. };
  35. value?: {
  36. type: ArrayConstructor;
  37. value?: import("../checkbox/type").CheckboxGroupValue;
  38. };
  39. };
  40. observers: {
  41. value: () => void;
  42. };
  43. lifetimes: {
  44. attached(): void;
  45. };
  46. controlledProps: {
  47. key: string;
  48. event: string;
  49. }[];
  50. methods: {
  51. getChilds(): any;
  52. updateChildren(): void;
  53. updateValue({ name, checked }: {
  54. name: any;
  55. checked: any;
  56. }): void;
  57. handleCreateMulCheckbox(): void;
  58. handleCheckAll(e: any): void;
  59. handleHalfCheck(len: number): void;
  60. handleOptionLinked(): void;
  61. };
  62. }