mirror of
https://github.com/soybeanjs/soybean-admin.git
synced 2025-10-12 21:03:42 +08:00
23 lines
421 B
Vue
23 lines
421 B
Vue
<template>
|
|
<div
|
|
class="dark:bg-dark dark:text-white dark:text-opacity-82 transition-all"
|
|
:class="inverted ? 'bg-#001428 text-white' : 'bg-white text-#333639'"
|
|
>
|
|
<slot></slot>
|
|
</div>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
defineOptions({ name: 'DarkModeContainer' });
|
|
|
|
interface Props {
|
|
inverted?: boolean;
|
|
}
|
|
|
|
withDefaults(defineProps<Props>(), {
|
|
inverted: false
|
|
});
|
|
</script>
|
|
|
|
<style scoped></style>
|