eight
2024-09-26 8921a768f01fd4e052e184c4665fb4e3c015e619
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>