UNPKG

@ray-js/smart-ui-typings

Version:

@ray-js/smart-ui 智能小程序 UI 框架的类型声明文件

38 lines (37 loc) 863 B
/// <reference types="wechat-miniprogram" /> import { VantComponent, VantEventHandler } from '../base'; export interface VantRadioGroupProps { /** * 在表单内提交时的标识符 */ name?: string; /** * 当前选中项的标识符 */ value?: any; /** * 是否禁用所有单选框 * * @default false */ disabled?: boolean; /** * 排列方向 * * @version v1.6.7 */ direction?: 'horizontal' | 'vertical'; } /** * @deprecated */ export interface VantRadioGroupChangeEvent extends WechatMiniprogram.BaseEvent { detail: string; } export interface VantRadioGroupEvents { /** * 当绑定值变化时触发的事件 */ 'bind:change'?: VantEventHandler<string>; } export type VantRadioGroup = VantComponent<VantRadioGroupProps, VantRadioGroupEvents>;