index.d.ts 482 B

12345678910111213141516
  1. import { GUI } from '../../core';
  2. import type { Group } from '../../shapes';
  3. import type { SwitchOptions, SwitchStyleProps } from './types';
  4. export type { SwitchStyleProps, SwitchOptions };
  5. export declare class Switch extends GUI<SwitchStyleProps> {
  6. /**
  7. * 组件 switch
  8. */
  9. static tag: string;
  10. /**
  11. * 开关
  12. */
  13. private checked;
  14. constructor(options: SwitchOptions);
  15. render(attributes: Required<SwitchStyleProps>, container: Group): void;
  16. }