@iimm/formily-taro-vantui
Version:
form field components based on @antmjs/vantui and @formily/react
9 lines (8 loc) • 449 B
TypeScript
import { type SwitchProps } from "@antmjs/vantui";
import type { CommonFieldProps } from "../../types";
export interface SwitchBaseProps extends Omit<SwitchProps, "value" | "onChange">, CommonFieldProps<boolean> {
needConfirm?: boolean;
confirmContent?: string | ((currentChecked: boolean) => string);
confirmTitle?: string;
}
export declare const SwitchBase: (props: SwitchBaseProps) => import("react/jsx-runtime").JSX.Element;