index.vue 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <template>
  2. <div class="vab-right-tools">
  3. <vab-search v-if="!isHorizontal" class="hidden-xs-only" />
  4. <vab-dark v-show="theme.showDark" :style="!isHorizontal ? '' : { marginLeft: 'var(--el-margin)' }" />
  5. <vab-color-picker v-show="theme.showColorPicker" />
  6. <vab-theme />
  7. <vab-error-log class="hidden-xs-only" />
  8. <vab-lock v-show="theme.showLock" />
  9. <vab-notice v-show="theme.showNotice" />
  10. <vab-language v-show="theme.showLanguage" />
  11. <vab-full-screen v-show="theme.showFullScreen" />
  12. <vab-refresh v-show="theme.showRefresh" />
  13. <vab-avatar />
  14. </div>
  15. </template>
  16. <script lang="ts" setup>
  17. import { useSettingsStore } from '/@/store/modules/settings'
  18. defineOptions({
  19. name: 'VabRightTools',
  20. })
  21. defineProps({
  22. isHorizontal: {
  23. type: Boolean,
  24. default: false,
  25. },
  26. })
  27. const settingsStore = useSettingsStore()
  28. const { theme } = storeToRefs(settingsStore)
  29. </script>
  30. <style lang="scss" scoped>
  31. .vab-right-tools {
  32. display: flex;
  33. align-items: center;
  34. justify-content: flex-end;
  35. }
  36. </style>