UNPKG

@ray-js/smart-ui-typings

Version:

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

42 lines (41 loc) 941 B
/// <reference types="react" /> import { VantBaseExternalClassName, VantComponent } from '../base'; export interface VantTabProps { /** * 标签名称,作为匹配的标识符 * * @default 标签的索引值 */ name?: string | number; /** * 标题 */ title?: string; /** * 是否禁用标签 * * @default false */ disabled?: boolean; /** * 是否显示小红点 */ dot?: boolean; /** * 图标右上角提示信息 */ info?: string | number; /** * 自定义标题样式 */ titleStyle?: string; } export type VantTabEvents = {}; export type VantTabExternalClassName = VantBaseExternalClassName; export interface VantTabSlot { /** * 自定义标签页内容 */ children?: React.ReactNode; } export type VantTab = VantComponent<VantTabProps, VantTabEvents, VantTabExternalClassName, VantTabSlot>;