update 调整代码格式

This commit is contained in:
疯狂的狮子Li
2023-04-03 00:26:04 +08:00
parent a7a31b011a
commit 97187b246b
24 changed files with 1160 additions and 1159 deletions

View File

@ -1,20 +1,3 @@
<script setup lang="ts">
import useAppStore from "@/store/modules/app";
const appStore = useAppStore();
const size = computed(() => appStore.size);
const sizeOptions = ref([
{ label: "较大", value: "large" },
{ label: "默认", value: "default" },
{ label: "稍小", value: "small" },
]);
const handleSetSize = (size: string) => {
appStore.setSize(size);
}
</script>
<template>
<div>
<el-dropdown trigger="click" @command="handleSetSize">
@ -32,6 +15,23 @@ const handleSetSize = (size: string) => {
</div>
</template>
<script setup lang="ts">
import useAppStore from "@/store/modules/app";
const appStore = useAppStore();
const size = computed(() => appStore.size);
const sizeOptions = ref([
{ label: "较大", value: "large" },
{ label: "默认", value: "default" },
{ label: "稍小", value: "small" },
]);
const handleSetSize = (size: string) => {
appStore.setSize(size);
}
</script>
<style lang="scss" scoped>
.size-icon--style {
font-size: 18px;