From ff123cff07b93806c71320727aa4a03ae72cf193 Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Mon, 16 Feb 2026 10:04:56 +0800 Subject: [PATCH 1/2] =?UTF-8?q?chore:=20=E6=9B=B4=E6=96=B0=E5=AD=97?= =?UTF-8?q?=E5=85=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- exclusion.dic | 1 + 1 file changed, 1 insertion(+) diff --git a/exclusion.dic b/exclusion.dic index 7f1be205..b03a3e9c 100644 --- a/exclusion.dic +++ b/exclusion.dic @@ -103,3 +103,4 @@ Validata Validatable Totp Vditor +univer From a900751858c3dade14a902655e67c4d3c4988e0e Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Mon, 16 Feb 2026 10:06:02 +0800 Subject: [PATCH 2/2] =?UTF-8?q?doc:=20=E6=9B=B4=E6=96=B0=E6=96=87=E6=A1=A3?= =?UTF-8?q?=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Components/UniverSheet.razor.cs | 46 +++++++++++-------- 1 file changed, 28 insertions(+), 18 deletions(-) diff --git a/src/components/BootstrapBlazor.UniverSheet/Components/UniverSheet.razor.cs b/src/components/BootstrapBlazor.UniverSheet/Components/UniverSheet.razor.cs index bddc8a0e..ef703b44 100644 --- a/src/components/BootstrapBlazor.UniverSheet/Components/UniverSheet.razor.cs +++ b/src/components/BootstrapBlazor.UniverSheet/Components/UniverSheet.razor.cs @@ -9,60 +9,70 @@ namespace BootstrapBlazor.Components; /// -/// UniverSheet 组件 +/// UniverSheet 组件 +/// UniverSheet component /// public partial class UniverSheet { /// - /// 获得/设置 插件集合 默认 null 未设置 + /// 获得/设置 插件集合 默认 null 未设置 + /// Gets or sets the plugin collection. Default is null. /// [Parameter] public Dictionary? Plugins { get; set; } /// - /// 获得/设置 主题颜色 默认 null 未设置 可设置为 greenTheme + /// 获得/设置 主题颜色 默认 null 未设置 可设置为 greenTheme + /// Gets or sets the theme color. Default is null. Can be set to greenTheme. /// [Parameter] public string? Theme { get; set; } /// - /// 获得/设置 是否为暗黑模式 默认 null 未设置 自动 + /// 获得/设置 是否为暗黑模式 默认 null 未设置 自动 + /// Gets or sets whether dark mode is enabled. Default is null (auto). /// [Parameter] public bool? IsDarkMode { get; set; } /// - /// 获得/设置 语言 默认 null 未设置 + /// 获得/设置 语言 默认 null 未设置 + /// Gets or sets the language. Default is null. /// [Parameter] public string? Lang { get; set; } /// - /// 获得/设置 设置工具栏样式 默认 default 未设置 + /// 获得/设置 工具栏样式 默认 default 未设置 + /// Gets or sets the ribbon toolbar style. Default is default. /// [Parameter] public UniverSheetRibbonType RibbonType { get; set; } /// - /// 获得/设置 需要传递的数据 + /// 获得/设置 需要传递的数据 + /// Gets or sets the data to pass. /// [Parameter] public UniverSheetData? Data { get; set; } /// - /// 获得/设置 是否显示加载遮罩 默认 true 显示遮罩 + /// 获得/设置 是否显示加载遮罩 默认 true 显示遮罩 + /// Gets or sets whether to show loading mask. Default is true. /// [Parameter] public bool ShowLoading { get; set; } = true; /// - /// 获得/设置 正在加载显示文本 默认 null 未设置读取资源文件 + /// 获得/设置 正在加载显示文本 默认 null 未设置读取资源文件 + /// Gets or sets the loading display text. Default is null, reads from resource file. /// [Parameter] public string? LoadingText { get; set; } /// - /// 获得/设置 Frame 加载页面传递过来的数据 + /// 获得/设置 Frame 加载页面传递过来的数据回调方法 + /// Gets or sets the callback for data posted from the Frame loaded page. /// [Parameter] public Func>? OnPostDataAsync { get; set; } @@ -115,7 +125,6 @@ protected override async Task OnAfterRenderAsync(bool firstRender) /// /// /// - /// protected override Task InvokeInitAsync() => InvokeVoidAsync("init", Id, Interop, new { Theme, @@ -127,32 +136,33 @@ protected override async Task OnAfterRenderAsync(bool firstRender) }); /// - /// 推送数据方法 + /// 推送数据方法 + /// Pushes data to the sheet. /// /// - /// public Task PushDataAsync(UniverSheetData? data) => InvokeAsync("execute", Id, data); /// - /// 由 JavaScript 调用 + /// 由 JavaScript 调用 + /// Called by JavaScript. /// /// - /// [JSInvokable] public async Task TriggerPostData(UniverSheetData data) => OnPostDataAsync == null ? null : await OnPostDataAsync(data); /// - /// 获得/设置 页面加载完毕后回调方法 + /// 获得/设置 页面加载完毕后回调方法 + /// Gets or sets the callback method after page loading is complete. /// [Parameter] public Func? OnReadyAsync { get; set; } /// - /// 由 JavaScript 调用 + /// 由 JavaScript 调用 + /// Called by JavaScript. /// - /// [JSInvokable] public async Task TriggerReadyAsync() {