Template
1
0
mirror of https://github.com/un-pany/v3-admin-vite.git synced 2025-04-20 10:59:21 +08:00

perf: 右侧设置按钮定位方式改为百分比

This commit is contained in:
pany 2024-12-10 17:36:58 +08:00
parent 75206acfe3
commit a3ec9e2ad2

View File

@ -1,16 +1,6 @@
<script lang="ts" setup>
import { Setting } from "@element-plus/icons-vue"
interface Props {
buttonTop?: number
}
const props = withDefaults(defineProps<Props>(), {
buttonTop: 350
})
const buttonTopCss = `${props.buttonTop}px`
const show = ref(false)
</script>
@ -31,7 +21,7 @@ const show = ref(false)
height: 48px;
background-color: var(--v3-rightpanel-button-bg-color);
position: fixed;
top: v-bind(buttonTopCss);
top: 45%;
right: 0;
border-radius: 6px 0 0 6px;
z-index: 2000;