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 },