@gizwits/vantui
Version:
机智云组件库
19 lines (16 loc) • 479 B
TypeScript
import { FunctionComponent, CSSProperties } from 'react'
import { ITouchEvent, ViewProps } from '@tarojs/components'
export interface SwitchProps extends ViewProps {
checked?: boolean
loading?: boolean
disabled?: boolean
activeColor?: string
inactiveColor?: string
size?: string
wapperStyle?: CSSProperties
activeValue?: any
inactiveValue?: any
onChange?: (event: ITouchEvent) => any
}
declare const Switch: FunctionComponent<SwitchProps>
export { Switch }