diff --git a/@types/switch.d.ts b/@types/switch.d.ts index 3bca4b0ae..8b888ea0f 100644 --- a/@types/switch.d.ts +++ b/@types/switch.d.ts @@ -2,17 +2,17 @@ import { MouseEvent, ComponentClass } from 'react' import { BaseEventFunction, BaseEvent } from '@tarojs/components/types/common' export interface AtSwitchProps { - title: string + title?: string - color: string + color?: string - checked: boolean + checked?: boolean - border: boolean + border?: boolean - disabled: boolean + disabled?: boolean - onChange: (value: boolean) => void + onChange?: (value: boolean) => void } declare const AtSwitch: ComponentClass