feat(backtop): add backtop (#71)

This commit is contained in:
一万 2021-10-25 08:55:17 +08:00 committed by GitHub
parent 8d2824fe82
commit ae161e8b48
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View File

@ -16,6 +16,7 @@ const transition = computed(() => {
<template>
<section class="app-main">
<el-scrollbar>
<el-backtop target=".app-main .el-scrollbar__wrap"></el-backtop>
<router-view>
<template #default="{ Component, route }">
<transition

View File

@ -33,7 +33,8 @@ import {
ElRadioButton,
ElRadioGroup,
ElDescriptions,
ElDescriptionsItem
ElDescriptionsItem,
ElBacktop
} from "element-plus";
const components = [
@ -69,7 +70,8 @@ const components = [
ElRadioButton,
ElRadioGroup,
ElDescriptions,
ElDescriptionsItem
ElDescriptionsItem,
ElBacktop
];
const plugins = [ElLoading];