/// import type { CommonPropsType } from '../../types'; import './style'; export type INavOption = { params: Array<{ key: string; value: string; }>; paramObj?: any; icon?: string; iconSrc?: string; title: string; tapStatus: 'tap' | 'inside' | 'outer'; insideUrl?: string; outerUrl?: string; newPage?: boolean; withParams?: boolean; }; export default function NavLayout({ navOption, mobileCol, pcCol, iconSize, textColor, fontSize, lineHeight, fontWeight, maxLines, tips, className, style, }: H5NavLayoutProps): JSX.Element; export interface H5NavLayoutProps extends CommonPropsType { /** * 导航配置 */ navOption?: Readonly; /** * 移动端每行列数 */ mobileCol?: number; /** * PC端每行列数 */ pcCol?: number; /** * icon尺寸 */ iconSize?: 'medium' | 'samll' | 'big'; /** * 标题颜色 */ textColor?: string; /** * 标题字重 */ fontWeight?: 'lighter' | 'normal' | 'bolder'; /** * 最大行数 */ maxLines?: number; /** * 是否显示文字气泡 */ tips?: boolean; /** * 字号 */ fontSize?: number; /** * 行高 */ lineHeight: string; /** * 点击事件 */ navTap?: (colInfo: any) => void; }