Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ public partial class UniverSheet
public string? LoadingText { get; set; }

/// <summary>
/// <para lang="zh">获得/设置 Frame 加载页面传递过来的数据回调方法</para>
/// <para lang="en">Gets or sets the callback for data posted from the Frame loaded page.</para>
/// <para lang="zh">获得/设置 UniverSheet 数据回调方法(一般由 Excel 按钮触发)</para>
/// <para lang="en">Gets or sets the UniverSheet data callback method (usually triggered by the Excel button).</para>
Comment on lines +74 to +75
Copy link

Copilot AI Mar 7, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The updated summary mentions the callback is usually triggered by an “Excel button”, but there’s no corresponding concept in the component/JS (TriggerPostData is invoked via JS interop from wwwroot/data-service.js:getDataAsync). This makes the API documentation misleading for consumers; consider rewording to describe the actual trigger (i.e., invoked when JavaScript calls TriggerPostData / when the sheet requests data from .NET) rather than a specific UI element.

Suggested change
/// <para lang="zh">获得/设置 UniverSheet 数据回调方法(一般由 Excel 按钮触发)</para>
/// <para lang="en">Gets or sets the UniverSheet data callback method (usually triggered by the Excel button).</para>
/// <para lang="zh">获得/设置 UniverSheet 数据回调方法(由前端通过 JavaScript 调用 TriggerPostData 或工作表向 .NET 请求数据时触发)</para>
/// <para lang="en">Gets or sets the UniverSheet data callback method (invoked when JavaScript calls TriggerPostData, i.e., when the sheet requests data from .NET).</para>

Copilot uses AI. Check for mistakes.
/// </summary>
[Parameter]
public Func<UniverSheetData?, Task<UniverSheetData?>>? OnPostDataAsync { get; set; }
Expand Down