From 53e79a2d94df19c0e1aa7399d5ce4c27834e0350 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=97=A0=E6=9C=A8?= Date: Mon, 16 Aug 2021 05:52:04 +0800 Subject: [PATCH] fix(table): fix `injection not found` warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复injection警告 --- src/components/Table/src/BasicTable.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/Table/src/BasicTable.vue b/src/components/Table/src/BasicTable.vue index 9cb30df6..329dc98b 100644 --- a/src/components/Table/src/BasicTable.vue +++ b/src/components/Table/src/BasicTable.vue @@ -106,11 +106,13 @@ return { ...props, ...unref(innerPropsRef) } as BasicTableProps; }); - const isFixedHeightPage = inject(PageWrapperFixedHeightKey); + const isFixedHeightPage = inject(PageWrapperFixedHeightKey, false); watchEffect(() => { unref(isFixedHeightPage) && props.canResize && - warn("[BasicTable] 'canResize' may not worked in PageWrapper with 'fixedHeight'"); + warn( + "'canResize' of BasicTable may not work in PageWrapper with 'fixedHeight' (especially in hot updates)" + ); }); const { getLoading, setLoading } = useLoading(getProps); -- GitLab