Commit 6b514b24 by 展昭

tabheader新增

parent 0191efd1
<template> <template>
<div id="showheader" :class="this.top?'iosStyle header-warp':'header-warp'"> <div id="showheader" :class="this.top?'iosStyle header-warp':'header-warp'">
<van-nav-bar id="nav" :title="title" left-text left-arrow /> <van-nav-bar id="nav" :title="title" left-text left-arrow>
<van-nav-bar id="nav" :title="title" left-text left-arrow /> <template #title>
<a class="header-title title-active" href="/bill">人事服务</a>
<a class="header-title" href="./more">更多服务</a>
</template>
</van-nav-bar>
</div> </div>
</template> </template>
...@@ -9,7 +14,7 @@ ...@@ -9,7 +14,7 @@
import { NavBar, Icon } from "vant"; import { NavBar, Icon } from "vant";
export default { export default {
components: { components: {
[NavBar.name]: NavBar, [NavBar.name]: NavBar
}, },
props: { props: {
title: String title: String
...@@ -36,16 +41,23 @@ export default { ...@@ -36,16 +41,23 @@ export default {
top: 0; top: 0;
width: 100%; width: 100%;
z-index: 1100; z-index: 1100;
background-color: #ffffff;
}
.van-hairline--bottom::after {
border: 0 !important;
}
.van-nav-bar__title {
font-size: 18px;
} }
.van-nav-bar .van-icon { .van-nav-bar .van-icon {
color: #333333 !important; color: #333333 !important;
font-size: 25px !important; font-size: 25px !important;
} }
.van-nav-bar {
background: linear-gradient(
135deg,
rgba(37, 141, 244, 1) 0%,
rgba(6, 115, 223, 1) 100%
);
}
.header-title {
color: #fff;
font-size: 16px;
margin-right: 30px;
}
</style> </style>
...@@ -13,7 +13,7 @@ export default { ...@@ -13,7 +13,7 @@ export default {
}, },
data() { data() {
return { return {
title: "test123" title: "TAB页面"
}; };
} }
}; };
......
...@@ -51,9 +51,10 @@ ...@@ -51,9 +51,10 @@
<script> <script>
import { Icon } from "vant"; import { NavBar, Icon } from "vant";
export default { export default {
components: { components: {
[NavBar.name]: NavBar,
[Icon.name]: Icon [Icon.name]: Icon
}, },
methods: { methods: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment