优化前端展示界面

pull/17/head
youngS 4 years ago
parent e1a34c1fa8
commit 9157a9b43f
  1. 3
      fir_client/src/components/FirBase.vue
  2. 7
      fir_client/src/components/base/BackToTop.vue

@ -13,7 +13,8 @@
<FirFooter/> <FirFooter/>
</el-footer> </el-footer>
<el-tooltip placement="top" content="回到顶部"> <el-tooltip placement="top" content="回到顶部">
<back-to-top :custom-style="myBackToTopStyle" :visibility-height="300" :back-position="50" transition-name="fade" /> <back-to-top :custom-style="myBackToTopStyle" :visibility-height="300" :back-position="50"
transition-name="fade"/>
</el-tooltip> </el-tooltip>
</el-container> </el-container>
</div> </div>

@ -1,7 +1,10 @@
<template> <template>
<transition :name="transitionName"> <transition :name="transitionName">
<div v-show="visible" :style="customStyle" class="back-to-ceiling" @click="backToTop"> <div v-show="visible" :style="customStyle" class="back-to-ceiling" @click="backToTop">
<svg width="16" height="16" viewBox="0 0 17 17" xmlns="http://www.w3.org/2000/svg" class="Icon Icon--backToTopArrow" aria-hidden="true" style="height:16px;width:16px"><path d="M12.036 15.59a1 1 0 0 1-.997.995H5.032a.996.996 0 0 1-.997-.996V8.584H1.03c-1.1 0-1.36-.633-.578-1.416L7.33.29a1.003 1.003 0 0 1 1.412 0l6.878 6.88c.782.78.523 1.415-.58 1.415h-3.004v7.004z" /></svg> <svg width="16" height="16" viewBox="0 0 17 17" xmlns="http://www.w3.org/2000/svg"
class="Icon Icon--backToTopArrow" aria-hidden="true" style="height:16px;width:16px">
<path d="M12.036 15.59a1 1 0 0 1-.997.995H5.032a.996.996 0 0 1-.997-.996V8.584H1.03c-1.1 0-1.36-.633-.578-1.416L7.33.29a1.003 1.003 0 0 1 1.412 0l6.878 6.88c.782.78.523 1.415-.58 1.415h-3.004v7.004z"/>
</svg>
</div> </div>
</transition> </transition>
</template> </template>
@ -20,7 +23,7 @@
}, },
customStyle: { customStyle: {
type: Object, type: Object,
default: function() { default: function () {
return { return {
right: '50px', right: '50px',
bottom: '50px', bottom: '50px',

Loading…
Cancel
Save