From 97187b246b94dd58cb585ebaed7e8644d2f00119 Mon Sep 17 00:00:00 2001 From: 疯狂的狮子Li <15040126243@163.com> Date: 星期一, 03 四月 2023 00:26:04 +0800 Subject: [PATCH] update 调整代码格式 --- src/components/SizeSelect/index.vue | 34 +++++++++++++++++----------------- 1 files changed, 17 insertions(+), 17 deletions(-) diff --git a/src/components/SizeSelect/index.vue b/src/components/SizeSelect/index.vue index 268a836..058ff71 100644 --- a/src/components/SizeSelect/index.vue +++ b/src/components/SizeSelect/index.vue @@ -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 @@ </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; -- Gitblit v1.9.3