context.ts 507 B

123456789101112131415
  1. import React from 'react';
  2. // import { BasicCheckboxEvent } from '@douyinfe/semi-foundation/checkbox/checkboxFoundation';
  3. type CheckboxContextType = {
  4. checkboxGroup?: {
  5. // onChange: (evt: BasicCheckboxEvent) => void;
  6. onChange: (evt: any) => void;
  7. value: any[];
  8. disabled: boolean;
  9. name: any;
  10. isCardType: boolean;
  11. isPureCardType: boolean
  12. }
  13. };
  14. const Context = React.createContext<CheckboxContextType>({});
  15. export { Context, CheckboxContextType };