mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-14 01:11:25 +08:00
27 lines
587 B
Vue
27 lines
587 B
Vue
|
<script setup lang="ts">
|
||
|
import CommonThemeToggler from '../common/vp-theme-toggler.vue'
|
||
|
import { useTheme } from '../../composables/theme'
|
||
|
|
||
|
const toggle = useTheme()
|
||
|
</script>
|
||
|
|
||
|
<template>
|
||
|
<div class="full-screen-theme-toggler">
|
||
|
<span> Theme </span>
|
||
|
<CommonThemeToggler @click="toggle" />
|
||
|
</div>
|
||
|
</template>
|
||
|
|
||
|
<style lang="scss" scoped>
|
||
|
.full-screen-theme-toggler {
|
||
|
display: flex;
|
||
|
padding: 12px 14px;
|
||
|
align-items: center;
|
||
|
justify-content: space-between;
|
||
|
margin-top: 16px;
|
||
|
font-size: 13px;
|
||
|
background-color: var(--bg-color-soft);
|
||
|
border-radius: 8px;
|
||
|
}
|
||
|
</style>
|