| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- <template>
- <div class="vab-right-tools">
- <vab-search v-if="!isHorizontal" class="hidden-xs-only" />
- <vab-dark v-show="theme.showDark" :style="!isHorizontal ? '' : { marginLeft: 'var(--el-margin)' }" />
- <vab-color-picker v-show="theme.showColorPicker" />
- <vab-theme />
- <vab-error-log class="hidden-xs-only" />
- <vab-lock v-show="theme.showLock" />
- <vab-notice v-show="theme.showNotice" />
- <vab-language v-show="theme.showLanguage" />
- <vab-full-screen v-show="theme.showFullScreen" />
- <vab-refresh v-show="theme.showRefresh" />
- <vab-avatar />
- </div>
- </template>
- <script lang="ts" setup>
- import { useSettingsStore } from '/@/store/modules/settings'
- defineOptions({
- name: 'VabRightTools',
- })
- defineProps({
- isHorizontal: {
- type: Boolean,
- default: false,
- },
- })
- const settingsStore = useSettingsStore()
- const { theme } = storeToRefs(settingsStore)
- </script>
- <style lang="scss" scoped>
- .vab-right-tools {
- display: flex;
- align-items: center;
- justify-content: flex-end;
- }
- </style>
|