index.d.ts 557 B

12345678910111213141516
  1. import { GUI } from '../../core';
  2. import type { Group } from '../../shapes';
  3. import type { CheckboxOptions, CheckboxStyleProps } from './types';
  4. export type { CheckboxStyleProps, CheckboxOptions };
  5. export declare class Checkbox extends GUI<CheckboxStyleProps> {
  6. /**
  7. * 组件 checkbox
  8. */
  9. static tag: string;
  10. /** checkbox 的背景方框组件 */
  11. private checkboxBoxShape;
  12. /** 值 */
  13. private checked;
  14. constructor(options: CheckboxOptions);
  15. render(attributes: Required<CheckboxStyleProps>, container: Group): void;
  16. }