yxh
2026-09-27 c314661d7353b58f926aa5a99abfc40313638521
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<script lang="ts" setup>
import { ElBacktop } from 'element-plus'
import { useDesign } from '@/hooks/web/useDesign'
 
defineOptions({ name: 'BackTop' })
 
const { getPrefixCls, variables } = useDesign()
 
const prefixCls = getPrefixCls('backtop')
</script>
 
<template>
  <ElBacktop
    :class="`${prefixCls}-backtop`"
    :target="`.${variables.namespace}-layout-content-scrollbar .${variables.elNamespace}-scrollbar__wrap`"
  />
</template>