@cainiaofe/cn-ui-m
Version:
28 lines (27 loc) • 820 B
TypeScript
/// <reference types="react" />
import type { CnBottomNavBarItemProps } from './cn-bottom-navBar-item-props';
import type { PlatformH5MenuItemProps } from './platform-h5-menuItem-props';
export interface CnBottomNavBarProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'> {
/**
* 数据源
* @default []
*/
menuDataSource?: CnBottomNavBarItemProps[];
/**
* 低码数据源
* @default []
*/
lowCodeMenuDataSource?: PlatformH5MenuItemProps[];
/**
* 当前激活 tab 面板的 key
*/
activeKey?: string;
/**
* 初始化选中面板的 key,如果没有设置 activeKey 时生效
*/
defaultActiveKey?: string;
/**
* 切换面板的回调
*/
onChange?: (key: string, item: CnBottomNavBarItemProps) => void;
}