perf: 右侧设置按钮定位方式改为百分比
This commit is contained in:
parent
75206acfe3
commit
a3ec9e2ad2
@ -1,16 +1,6 @@
|
|||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { Setting } from "@element-plus/icons-vue"
|
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)
|
const show = ref(false)
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
@ -31,7 +21,7 @@ const show = ref(false)
|
|||||||
height: 48px;
|
height: 48px;
|
||||||
background-color: var(--v3-rightpanel-button-bg-color);
|
background-color: var(--v3-rightpanel-button-bg-color);
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: v-bind(buttonTopCss);
|
top: 45%;
|
||||||
right: 0;
|
right: 0;
|
||||||
border-radius: 6px 0 0 6px;
|
border-radius: 6px 0 0 6px;
|
||||||
z-index: 2000;
|
z-index: 2000;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user