Skip to content

Commit a3ec9e2

Browse files
committed
perf: 右侧设置按钮定位方式改为百分比
1 parent 75206ac commit a3ec9e2

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

src/layouts/components/RightPanel/index.vue

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,6 @@
11
<script lang="ts" setup>
22
import { Setting } from "@element-plus/icons-vue"
33
4-
interface Props {
5-
buttonTop?: number
6-
}
7-
8-
const props = withDefaults(defineProps<Props>(), {
9-
buttonTop: 350
10-
})
11-
12-
const buttonTopCss = `${props.buttonTop}px`
13-
144
const show = ref(false)
155
</script>
166

@@ -31,7 +21,7 @@ const show = ref(false)
3121
height: 48px;
3222
background-color: var(--v3-rightpanel-button-bg-color);
3323
position: fixed;
34-
top: v-bind(buttonTopCss);
24+
top: 45%;
3525
right: 0;
3626
border-radius: 6px 0 0 6px;
3727
z-index: 2000;

0 commit comments

Comments
 (0)