安装与使用
# 安装插件
npm install @hvisions/plugin-default-layout
// 引入插件
import layoutPlugin from "@hvisions/plugin-default-layout";
import Core from "@hvisions/core";
// 使用插件
Core.plugin(layoutPlugin);
layout 配置
| 参数名 | 说明 | 类型 | 默认值 | 必须 | 版本 |
|---|---|---|---|---|---|
| title | 菜单标题 | string | 菜单栏 | - | - |
| company | 公司名称 | string | - | - | |
| searchPlaceholder | 搜索框占位符 | string | - | - | |
| logo | logo | string | - | - | |
| smallLogo | 小 logo, 菜单收起时显示 | string | - | - | |
| aboutTitle | 关于我们的标题 |
string | - | - | |
| aboutModalBodyStyle | 关于我们的自定义样式 |
cssProperty | - | - | |
| hideAbout | 隐藏 about 模态框,为 true 时隐藏 | boolean | - | - | |
| showBreadcrumb | 为 true 时显示面包屑 | boolean | - | - | |
| tabNum | tab 标签最多显示的数量 | number | 10 | - | - |