From 1e209a702a5114943a615063eefd0c00f1a6a003 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=B4=A2=E5=AF=8C?= <1501583478@qq.com> Date: Tue, 6 Feb 2024 15:36:04 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20Table=E7=BB=84=E4=BB=B6=E6=B3=A8?= =?UTF-8?q?=E5=86=8C=E4=B8=BA=E5=85=A8=E5=B1=80=E7=BB=84=E4=BB=B6=E6=8A=A5?= =?UTF-8?q?=E9=94=99=E9=97=AE=E9=A2=98=EF=BC=8C=E5=AD=98=E5=9C=A8=E5=AF=B9?= =?UTF-8?q?pinia=E7=9A=84=E6=8F=90=E5=89=8D=E5=BC=95=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Table/src/components/TableActions.vue | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/components/Table/src/components/TableActions.vue b/src/components/Table/src/components/TableActions.vue index 2eaab32bc..c62cb48fc 100644 --- a/src/components/Table/src/components/TableActions.vue +++ b/src/components/Table/src/components/TableActions.vue @@ -7,11 +7,6 @@ import { useAppStore } from '@/store/modules/app' import { TableColumn } from '../types' import ColumnSetting from './ColumnSetting.vue' -const appStore = useAppStore() -const sizeMap = computed(() => appStore.sizeMap) - -const { t } = useI18n() - export default defineComponent({ name: 'TableActions', components: { @@ -25,6 +20,9 @@ export default defineComponent({ }, emits: ['refresh', 'changSize', 'confirm'], setup(props, { emit }) { + const appStore = useAppStore() + const { t } = useI18n() + const sizeMap = computed(() => appStore.sizeMap) const showSetting = ref(false) const refresh = () => {