mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
39 lines
831 B
Vue
39 lines
831 B
Vue
<template>
|
|
<div class="custom-font-family-extra-options-entry">
|
|
<VButton ref="button" @mouseover="loadPanel()" @click="togglePanelDisplay()">
|
|
字体设置<VIcon icon="right-arrow" :size="16"></VIcon>
|
|
</VButton>
|
|
</div>
|
|
</template>
|
|
|
|
<script lang="ts">
|
|
import { defineComponent } from 'vue'
|
|
import { VIcon, VButton } from '@/ui'
|
|
import { getPanelLoadState, mountPanel, togglePanelDisplay } from './vm'
|
|
|
|
export default defineComponent({
|
|
components: {
|
|
VIcon,
|
|
VButton,
|
|
},
|
|
|
|
methods: {
|
|
async loadPanel() {
|
|
const isLoaded = await getPanelLoadState()
|
|
if (!isLoaded) {
|
|
await mountPanel()
|
|
}
|
|
},
|
|
togglePanelDisplay,
|
|
},
|
|
})
|
|
</script>
|
|
|
|
<style lang="scss">
|
|
.custom-font-family-extra-options-entry {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
</style>
|