This commit is contained in:
18
library/components/VabTheme/index.vue
Normal file
18
library/components/VabTheme/index.vue
Normal file
@@ -0,0 +1,18 @@
|
||||
<script lang="ts" setup>
|
||||
import { useSettingsStore } from '@/store/modules/settings'
|
||||
|
||||
const $pub: any = inject('$pub')
|
||||
|
||||
const settingsStore = useSettingsStore()
|
||||
const { theme } = storeToRefs(settingsStore)
|
||||
|
||||
const handleOpenTheme = () => {
|
||||
$pub('theme')
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<span v-if="theme.showTheme">
|
||||
<vab-icon icon="brush-2-line" @click="handleOpenTheme" />
|
||||
</span>
|
||||
</template>
|
||||
Reference in New Issue
Block a user