Skip to content

Commit

Permalink
Fix (#258)
Browse files Browse the repository at this point in the history
* fix(tabs): 修复导航地图中按钮的居中问题

* fix(tabbar): 去掉to属性为外链时的下划线样式
  • Loading branch information
zhongzhijie authored Dec 25, 2020
1 parent d5a18b2 commit f4aee07
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 6 deletions.
16 changes: 10 additions & 6 deletions examples/demo/route.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,20 @@ const router = new Router({
children: [
...pagesRouter
]
},
{
path: '*',
redirect: {
name: 'Index'
}
}
]
})

router.beforeEach((to, from, next) => {
if (to.matched.length === 0) {
next({
name: 'Index'
})
} else {
next()
}
})

router.afterEach(() => {
window.scrollTo(0, 0)
})
Expand Down
4 changes: 4 additions & 0 deletions examples/docs/docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
- 修复属性 placement 为 top/right 系列位置时,arrow样式位置失效问题 (by [@HXCStudio123](https://github.com/HXCStudio123) )
- Search
- 修复样式超出右侧边界问题 (by [@yawuling](https://github.com/yawuling) ) )
- Tabbar
- 去掉 `to` 属性为外链时的下划线样式 (by [@yawuling](https://github.com/yawuling) ) )
- Tabs
- 修复导航地图中按钮的居中问题 (by [@yawuling](https://github.com/yawuling) ) )

### 2.2.0

Expand Down
1 change: 1 addition & 0 deletions src/style/tabbar-item.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
text-align: center;
color: $-tabbar-color;
user-select: none;
text-decoration: none;
-webkit-tap-highlight-color: transparent;

@include e(icon-container) {
Expand Down
1 change: 1 addition & 0 deletions src/style/tabs.scss
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@
display: inline-block;
width: 107px;
height: 32px;
line-height: 32px;
background-color: $-tabs-nav-map-button-back-color;
margin-bottom: 10px;
border-color: transparent;
Expand Down

0 comments on commit f4aee07

Please sign in to comment.