| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- <template>
- <div
- class="tab-icon-button"
- :class="active ? 'active' : ''"
- >{{ tab.unicode }}</div>
- </template>
- <script>
- export default {
- props: ['tab', 'active', 'handleClick']
- }
- </script>
- <style lang="scss" scoped>
- @import '~@/style/theme.scss';
- .tab-icon-button {
- -webkit-tap-highlight-color: transparent;
- z-index: 2;
- overflow: hidden;
- user-select: none;
- position: relative;
- width: 42px;
- height: 42px;
- display: flex;
- align-items: center;
- justify-content: center;
- border-radius: 1000px;
- cursor: pointer;
- text-align: center;
- font-family: 'iconfont', sans-serif;
- font-size: 34px;
- color: $icon-normal-color;
- transition: color 0.1s ease-out;
- &:hover {
- color: $icon-hover-color;
- }
- }
- .active {
- color: $theme-blue;
- }
- .line {
- height: 0;
- padding: 6px;
- margin: 0 4px 12px 4px;
- border-bottom: 2px solid $icon-normal-color;
- }
- a {
- outline: none;
- text-decoration: none;
- color: black;
- }
- </style>
|