enn-navigation-bar
Advanced tools
Comparing version 0.0.9 to 0.0.11
{ | ||
"name": "enn-navigation-bar", | ||
"version": "0.0.9", | ||
"version": "0.0.11", | ||
"description": "", | ||
@@ -24,7 +24,8 @@ "main": "index.js", | ||
"vue": "^2.6.14", | ||
"vue-template-compiler": "^2.6.14" | ||
"vue-template-compiler": "^2.6.14", | ||
"element-ui": "^2.13.0" | ||
}, | ||
"dependencies": { | ||
"element-ui": "^2.15.5" | ||
"peerDependencies": { | ||
"element-ui": ">=2.13.0" | ||
} | ||
} |
@@ -77,12 +77,10 @@ # NavigationBar | ||
| 参数 | 类型 | 必填 | 默认值 | 说明 | | ||
| -------- | ------- | ---- | ------- | ------------------------------ | | ||
| logo | string | | - | logo 图片链接 | | ||
| logoHref | string | | - | 点击 logo 跳转的链接 | | ||
| title | string | | - | 页面标题 | | ||
| user | Object | 是 | - | 用户信息 | | ||
| isLogged | Boolean | 是 | false | 是否已登录 | | ||
| options | Array | | - | hover 显示的用户信息及相关操作 | | ||
| bgColor | string | | #ffffff | 导航栏背景颜色 | | ||
| color | string | | #333333 | 用户信息字体颜色 | | ||
| 参数 | 类型 | 必填 | 默认值 | 说明 | | ||
| -------- | ------- | ---- | ------ | ------------------------------ | | ||
| logo | string | | - | logo 图片链接 | | ||
| logoHref | string | | - | 点击 logo 跳转的链接 | | ||
| title | string | | - | 页面标题 | | ||
| user | Object | 是 | - | 用户信息 | | ||
| isLogged | Boolean | 是 | false | 是否已登录 | | ||
| options | Array | | - | hover 显示的用户信息及相关操作 | | ||
@@ -112,1 +110,18 @@ ### NavigationBar Events | ||
| handler | Function | | - | 手动处理点击事件的回调函数,参数为该项的值 | | ||
## 插槽 Slots | ||
| 插槽名称 | 绑定值 | 作用 | | ||
| ---------- | ------ | ------------------ | | ||
| centerSlot | | 中间空白部分的插槽 | | ||
#### | ||
```vue | ||
<Nav | ||
title="XXX 网络管理平台" | ||
@onLogin="onLogin" | ||
@onLogout="onLogout" | ||
> | ||
<template #centerSlot>centerSlot</template> | ||
</Nav> | ||
``` |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19132
126
5
- Removedelement-ui@^2.15.5