UNPKG

mobile-more

Version:

基于 antd-mobile v5 扩展移动端 UI 组件

14 lines (13 loc) 615 B
import { SwitchProps } from 'antd-mobile'; import * as React from 'react'; import { BizFormItemProps } from '../FormItem'; import './index.less'; export interface BizFormItemSwitchProps extends Omit<BizFormItemProps, 'children'>, Pick<SwitchProps, 'loading' | 'beforeChange' | 'checkedText' | 'uncheckedText'> { /** * @description 透传 Switch 组件属性。 * @see {@link https://mobile.ant.design/zh/components/switch#属性|SwitchProps} */ switchProps?: Omit<SwitchProps, 'checked'>; } declare const BizFormItemSwitch: React.FC<BizFormItemSwitchProps>; export default BizFormItemSwitch;