diff --git a/src/components/table/header/index.vue b/src/components/table/header/index.vue index a12f1402..156e41a3 100644 --- a/src/components/table/header/index.vue +++ b/src/components/table/header/index.vue @@ -191,9 +191,9 @@ const openCustomColumn = () => { table.reactData.customStore.activeBtn = false } if (customColumnVisibleOnPress) { - table.closeCustom?.() + table?.closeCustom?.() } else { - table.openCustom?.() + table?.openCustom?.() } } onMounted(() => { diff --git a/src/components/table/index.vue b/src/components/table/index.vue index 72054ffc..20e01489 100644 --- a/src/components/table/index.vue +++ b/src/components/table/index.vue @@ -75,6 +75,10 @@ import type TableStoreClass from '@/utils/tableStore' import { useRouter } from 'vue-router' import { defaultAttribute } from '@/components/table/defaultAttribute' +defineOptions({ + inheritAttrs: false +}) + const config = useConfig() const tableRef = ref() const tableStore = inject('tableStore') as TableStoreClass @@ -151,9 +155,9 @@ const openCustomColumn = () => { table.reactData.customStore.activeBtn = false } if (customColumnVisibleOnPress) { - table.closeCustom?.() + table?.closeCustom?.() } else { - table.openCustom?.() + table?.openCustom?.() } } const getRef = () => { diff --git a/src/views/pqs/harmonicMonitoring/area/SteadyState/index.vue b/src/views/pqs/harmonicMonitoring/area/SteadyState/index.vue index a12d9478..20b260f1 100644 --- a/src/views/pqs/harmonicMonitoring/area/SteadyState/index.vue +++ b/src/views/pqs/harmonicMonitoring/area/SteadyState/index.vue @@ -1,7 +1,7 @@