mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-14 01:11:25 +08:00
25 lines
567 B
Vue
25 lines
567 B
Vue
<script setup lang="ts">
|
|
import CommonThemeToggler from '../common/vp-theme-toggler.vue'
|
|
import { toggleDark } from '../../composables/dark'
|
|
</script>
|
|
|
|
<template>
|
|
<div class="full-screen-theme-toggler">
|
|
<span> Theme </span>
|
|
<CommonThemeToggler @click="toggleDark()" />
|
|
</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>
|