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