0.0.15 • Published 1 month ago

@thtf/pro-layout v0.0.15

Weekly downloads
-
License
-
Repository
-
Last release
1 month ago

布局

依赖

Vue 2.6.14+

Vue-Router 3.5.4+

Element-UI 2.15.8+

svg-sprite-loader 6.0.11+

安装

npm install @thtf/pro-layout

属性

参数说明类型可选值默认值
device显示模式:手机、电脑Stringdesktopdesktop
logoTitlelayout 的左上角 的 titleString-''
headerHeight顶部导航高度Number-60
sideWidth左侧菜单栏宽度Number-200
sideCollpaseWidth左侧菜单栏收缩宽度Number-48
menuRoutes路由数组Array-[]
predefine预设颜色Array-'#2e59a7', '#80d1c8', '#0095b6', '#ff770f', '#1a7bb0'
settings布局配置Object--

menuRoutes

参数说明类型可选值默认值
path路由路径String
name路由的名字String
component路由组件Vue
hiddren路由是否隐藏Booleanfalse, truefalse
alwaysShow路由是否总是显示Booleanfalse, truetrue
redirect在面包屑导航中是否可点击StringnoRedirect
query默认传递参数String
roles访问路由的角色权限Array
permissions访问路由的菜单权限Array
meta路由元数据信息Object

settings

参数说明类型可选值默认值
showSettings是否显示配置Booleantrue, falsefalse
sideTheme侧边栏风格Stringtheme-dark, theme-lighttheme-light
theme主题色String-#2E59A7
navMode导航模式Stringaside, top, mixmix
fixedHeader是否固定顶部导航Booleantrue, falsetrue
fixedSide是否固定侧边菜单Booleantrue, falsetrue
autoMenu是否自动分割菜单Booleantrue, falsetrue
showHeader是否显示顶栏Booleantrue, falsetrue
showSide是否显示菜单Booleantrue, falsetrue
showLogo是否显示 LogoBooleantrue, falsetrue

插槽

名称说明
logolayout 的左上角 logo
logoRenderlayout 的左上角
rightMenu导航栏最右侧菜单区域
default默认插槽

发布流程

  1. 登录(登录过可忽略)
npm login
  1. 发布
npm publish
0.0.15

1 month ago

0.0.14

6 months ago

0.0.13

6 months ago

0.0.12

7 months ago

0.0.11

7 months ago

0.0.10

7 months ago

0.0.9

7 months ago

0.0.8

7 months ago

0.0.7

8 months ago

0.0.6

8 months ago

0.0.5

8 months ago

0.0.4

8 months ago

0.0.3

8 months ago

0.0.2

8 months ago

0.0.1

8 months ago