UNPKG

@ray-js/smart-ui-typings

Version:

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

28 lines (27 loc) 746 B
/// <reference types="wechat-miniprogram" /> import { VantBaseExternalClassName, VantComponent, VantEventHandler } from '../base'; export interface VantSidebarProps { /** * 选中项的索引 * * @default 0 */ activeKey?: string | number; } /** * @deprecated */ export interface VantSidebarChangeEvent extends WechatMiniprogram.BaseEvent { /** * 当前选中徽章的索引 */ detail: number; } export interface VantSidebarEvents { /** * 切换徽章时触发 */ onChange?: VantEventHandler<number>; } export type VantSidebarExternalClassName = VantBaseExternalClassName; export type VantSidebar = VantComponent<VantSidebarProps, VantSidebarEvents, VantSidebarExternalClassName>;