luyanan vor 6 Jahren
Ursprung
Commit
41817b4b08
1 geänderte Dateien mit 5 neuen und 6 gelöschten Zeilen
  1. 5 6
      src/components/global-component/backtop/BackTop.vue

+ 5 - 6
src/components/global-component/backtop/BackTop.vue

@ -1,9 +1,7 @@
1 1
<template>
2
    <div>
3
        <div class="scroll" :class="{show:isActive}">
4
            <div id="toTop" @click="toTop(step)"><i class="el-icon-arrow-up"></i></div>
5
            <div id="toBottom" @click="toBottom(step)"><i class="el-icon-arrow-down"></i></div>
6
        </div>
2
    <div class="scroll" :class="{'showScroll':isActive}">
3
        <div id="toTop" @click="toTop(step)"><i class="el-icon-arrow-up"></i></div>
4
        <div id="toBottom" @click="toBottom(step)"><i class="el-icon-arrow-down"></i></div>
7 5
    </div>
8 6
</template>
9 7
<script>
@ -62,6 +60,7 @@
62 60
    height: 90px
63 61
    cursor: pointer
64 62
    display: none
63
    z-index: 10
65 64
    div
66 65
      width: 45px
67 66
      height: 45px
@ -73,6 +72,6 @@
73 72
      &:hover
74 73
        background-color: rgba(0,0,0,.5)
75 74
76
  .show
75
  &.showScroll
77 76
    display: block;
78 77
</style>