-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bec5b95
commit 22b0c24
Showing
13 changed files
with
232 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,103 @@ | ||
<template> | ||
<div class="mis-tab-navi"> | ||
<div class="tab-item">测试菜单1</div> | ||
<div class="tab-item">测试菜单1</div> | ||
<div class="tab-item">测试菜单1</div> | ||
<div class="tab-item">测试菜单1</div> | ||
<div class="tab-item">测试菜单1</div> | ||
<div style="position: relative; overflow: hidden;"> | ||
<div class="tab-navi-container"> | ||
<span @click="handlePrev" class="tab-navi-prev"> | ||
<Icon type="ios-arrow-back" /> | ||
</span> | ||
<div class="tab-navi-scroll"> | ||
<div class="tab-navi"> | ||
<div class="tab-item">测试菜单1<Icon style="margin-right: -6px;" type="md-close" /></div> | ||
<div class="tab-item">测试菜单1<Icon type="md-close" /></div> | ||
<div class="tab-item">测试菜单1<Icon type="md-close" /></div> | ||
<div class="tab-item">测试菜单1<Icon type="md-close" /></div> | ||
<div class="tab-item">测试菜单1<Icon type="md-close" /></div> | ||
<div class="tab-item">测试菜单1<Icon type="md-close" /></div> | ||
<div class="tab-item">测试菜单1<Icon type="md-close" /></div> | ||
<div class="tab-item">测试菜单1<Icon type="md-close" /></div> | ||
<div class="tab-item">测试菜单1<Icon type="md-close" /></div> | ||
<div class="tab-item">测试菜单1<Icon type="md-close" /></div> | ||
</div> | ||
</div> | ||
<span @click="handleNext" class="tab-navi-next"> | ||
<Icon type="ios-arrow-forward" /> | ||
</span> | ||
</div> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
name: 'MisTabNavi' | ||
} | ||
name: "MisTabNavi", | ||
methods: { | ||
handlePrev () { | ||
}, | ||
handleNext () { | ||
} | ||
} | ||
}; | ||
</script> | ||
|
||
<style lang="less" scoped> | ||
.mis-tab-navi { | ||
width: 100%; | ||
width: calc(100% - 284px); | ||
height: 44px; | ||
background-color: transparent;; | ||
padding: 6px 10px; | ||
.tab-item { | ||
width: 100px; | ||
margin-right: 10px; | ||
height: 32px; | ||
line-height: 32px; | ||
background-color: white; | ||
float: left; | ||
padding: 0 10px; | ||
background-color: transparent; | ||
position: fixed; | ||
margin: 0 12px; | ||
z-index: 2; | ||
.tab-navi-container { | ||
padding: 6px 32px; | ||
position: relative; | ||
.tab-navi-prev { | ||
width: 32px; | ||
text-align: center; | ||
position: absolute; | ||
line-height: 32px; | ||
cursor: pointer; | ||
left: 0; | ||
font-size: 16px; | ||
} | ||
.tab-navi-scroll { | ||
overflow: hidden; | ||
white-space: nowrap; | ||
.tab-navi { | ||
padding-left: 0; | ||
margin: 0; | ||
float: left; | ||
list-style: none; | ||
box-sizing: border-box; | ||
position: relative; | ||
transition: transform 0.5s ease-in-out; | ||
.tab-item { | ||
width: 100px; | ||
margin-right: 10px; | ||
height: 32px; | ||
line-height: 32px; | ||
background-color: white; | ||
padding: 0 10px; | ||
display: inline-block; | ||
cursor: pointer; | ||
position: relative; | ||
} | ||
.tab-item:hover { | ||
background-color: #f5f7f9; | ||
} | ||
} | ||
} | ||
.tab-navi-next { | ||
width: 32px; | ||
text-align: center; | ||
position: absolute; | ||
line-height: 32px; | ||
cursor: pointer; | ||
right: 0; | ||
top: 6px; | ||
font-size: 16px; | ||
} | ||
} | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.