style(projects): format code

This commit is contained in:
Soybean
2023-12-14 21:45:29 +08:00
parent a176dc443e
commit a748166399
127 changed files with 2472 additions and 3006 deletions

View File

@@ -7,28 +7,22 @@ defineOptions({
name: 'LayoutModeCard'
});
const props = defineProps<Props>();
const emit = defineEmits<Emits>();
interface Props {
/**
* layout mode
*/
/** Layout mode */
mode: UnionKey.ThemeLayoutMode;
/**
* disabled
*/
/** Disabled */
disabled?: boolean;
}
const props = defineProps<Props>();
interface Emits {
/**
* layout mode change
*/
/** Layout mode change */
(e: 'update:mode', mode: UnionKey.ThemeLayoutMode): void;
}
const emit = defineEmits<Emits>();
type LayoutConfig = Record<
UnionKey.ThemeLayoutMode,
{

View File

@@ -3,14 +3,12 @@ defineOptions({
name: 'SettingItem'
});
defineProps<Props>();
interface Props {
/**
* label
*/
/** Label */
label: string;
}
defineProps<Props>();
</script>
<template>

View File

@@ -1,5 +1,5 @@
<script setup lang="ts">
import { ref, onMounted } from 'vue';
import { onMounted, ref } from 'vue';
import Clipboard from 'clipboard';
import { $t } from '@/locales';
import { useThemeStore } from '@/store/modules/theme';

View File

@@ -2,7 +2,7 @@
import { computed } from 'vue';
import { $t } from '@/locales';
import { useThemeStore } from '@/store/modules/theme';
import { themeScrollModeOptions, themePageAnimationModeOptions, themeTabModeOptions } from '@/constants/app';
import { themePageAnimationModeOptions, themeScrollModeOptions, themeTabModeOptions } from '@/constants/app';
import SettingItem from '../components/setting-item.vue';
defineOptions({