mobile-more
Version:
基于 antd-mobile v5 扩展移动端 UI 组件
13 lines (12 loc) • 587 B
TypeScript
import { SwitchProps } from 'antd-mobile';
import React from 'react';
import { BizFormItemProps } from '../FormItem';
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;