Xiao_123 1 ماه پیش
والد
کامیت
17a673cc91
1فایلهای تغییر یافته به همراه5 افزوده شده و 1 حذف شده
  1. 5 1
      src/components/BackTop/index.vue

+ 5 - 1
src/components/BackTop/index.vue

@@ -1,5 +1,5 @@
 <template>
-  <el-backtop :bottom="bottom" class="text-center" :style="{'width': width + 'px', height: height + 'px'}">
+  <el-backtop :bottom="bottom" :right="right" class="text-center" :style="{'width': width + 'px', height: height + 'px'}">
     <div class="customStyle" :style="{'line-height': (Number(height) - 7) + 'px'}">
       <v-icon color="#fff">mdi-menu-up</v-icon>
     </div>
@@ -13,6 +13,10 @@ defineProps({
   bottom: {
     type: Number,
     default: 50
+  },
+	right: {
+    type: Number,
+    default: 25
   },
 	width: {
 		type: [Number, String],