From 2a27e5001de38d7f4e7b889f275e46c2cc0427c7 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Mon, 12 May 2025 13:16:47 +0800 Subject: [PATCH] =?UTF-8?q?review=EF=BC=9A=E3=80=90antd=20=E5=85=A8?= =?UTF-8?q?=E5=B1=80=E3=80=91vxe-table=20=E5=8D=95=E7=8B=AC=E4=BD=BF?= =?UTF-8?q?=E7=94=A8=E7=9A=84=E5=B0=81=E8=A3=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/web-antd/src/adapter/style.css | 2 +- apps/web-antd/src/hooks/use-table-toolbar.ts | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/web-antd/src/adapter/style.css b/apps/web-antd/src/adapter/style.css index 6837b406..d2f32dc7 100644 --- a/apps/web-antd/src/adapter/style.css +++ b/apps/web-antd/src/adapter/style.css @@ -1,4 +1,4 @@ -/* 来自 @vben/plugins/vxe-table style.css */ +/* 来自 @vben/plugins/vxe-table style.css TODO @puhui999:可以写下目的哈; */ :root { --vxe-ui-font-color: hsl(var(--foreground)); --vxe-ui-font-primary-color: hsl(var(--primary)); diff --git a/apps/web-antd/src/hooks/use-table-toolbar.ts b/apps/web-antd/src/hooks/use-table-toolbar.ts index e4d16a61..187cb9d3 100644 --- a/apps/web-antd/src/hooks/use-table-toolbar.ts +++ b/apps/web-antd/src/hooks/use-table-toolbar.ts @@ -3,6 +3,7 @@ import type { TableToolbar } from '#/components/table-toolbar'; import { ref, watch } from 'vue'; +// TODO @puhui999:这里的注释、目的写下; export function useTableToolbar() { const hiddenSearchBar = ref(false); // 隐藏搜索栏 const tableToolbarRef = ref>(); @@ -14,6 +15,7 @@ export function useTableToolbar() { const table = tableRef.value; const tableToolbar = tableToolbarRef.value; if (table && tableToolbar) { + // TODO @puhui999:通过 nexttick 可以解决么? setTimeout(async () => { const toolbar = tableToolbar.getToolbarRef(); if (!toolbar) { @@ -29,6 +31,7 @@ export function useTableToolbar() { () => tableRef.value, (val) => { if (!val || isBound.value) return; + // TODO @puhui999:这里要处理下 promise 的告警么? bindTableToolbar(); }, { immediate: true },