Skip to content

Commit

Permalink
perf: 右侧设置按钮定位方式改为百分比
Browse files Browse the repository at this point in the history
  • Loading branch information
pany-ang committed Dec 10, 2024
1 parent 75206ac commit a3ec9e2
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions src/layouts/components/RightPanel/index.vue
Original file line number Diff line number Diff line change
@@ -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>

Expand All @@ -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;
Expand Down

0 comments on commit a3ec9e2

Please sign in to comment.