From ef1718360e7edf74ad2ff00aca2ae5b01dd61fbb Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Wed, 22 Jan 2020 10:24:14 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BB=85=E4=B8=80=E6=AC=A1=E5=8A=A0?= =?UTF-8?q?=E8=BD=BD=E5=88=9D=E5=A7=8B=E5=8C=96=E6=BB=9A=E5=8A=A8=E6=9D=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/admin/Bootstrap.Admin/Components/TableBase.cs | 2 +- src/admin/Bootstrap.Admin/Extensions/JSRuntimeExtensions.cs | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/admin/Bootstrap.Admin/Components/TableBase.cs b/src/admin/Bootstrap.Admin/Components/TableBase.cs index 87516a25..7f8313fe 100644 --- a/src/admin/Bootstrap.Admin/Components/TableBase.cs +++ b/src/admin/Bootstrap.Admin/Components/TableBase.cs @@ -218,7 +218,7 @@ namespace Bootstrap.Admin.Components if (FixedHeader) { // 调用客户端脚本 resetWith - await JSRuntime.InitTableAsync(RetrieveId()); + await JSRuntime.InitTableAsync(RetrieveId(), firstRender); } } diff --git a/src/admin/Bootstrap.Admin/Extensions/JSRuntimeExtensions.cs b/src/admin/Bootstrap.Admin/Extensions/JSRuntimeExtensions.cs index 1caf030a..0da63861 100644 --- a/src/admin/Bootstrap.Admin/Extensions/JSRuntimeExtensions.cs +++ b/src/admin/Bootstrap.Admin/Extensions/JSRuntimeExtensions.cs @@ -101,6 +101,9 @@ namespace Bootstrap.Admin.Extensions /// /// 初始化 Table 组件 /// - public static ValueTask InitTableAsync(this IJSRuntime? jSRuntime, string id) => jSRuntime.InvokeVoidAsync("$.initTable", id); + /// + /// + /// + public static ValueTask InitTableAsync(this IJSRuntime? jSRuntime, string id, bool firstRender) => jSRuntime.InvokeVoidAsync("$.initTable", id, firstRender); } }