mirror of
https://gitee.com/yiming_chang/vue-pure-admin.git
synced 2024-11-30 02:07:38 +08:00
feat(backtop): add backtop (#71)
This commit is contained in:
parent
8d2824fe82
commit
ae161e8b48
@ -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
|
||||
|
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user