Skip to content

Commit 663c20f

Browse files
committed
refactor: 更改 WorkbookData 参数设置
1 parent 4d22ca9 commit 663c20f

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/BootstrapBlazor.Server/Components/Samples/Tutorials/OnlineSheet/OnlineSheet.razor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ protected override void OnInitialized()
4444

4545
_data = new UniverSheetData()
4646
{
47-
Data = sheetData
47+
WorkbookData = sheetData
4848
};
4949
}
5050
}

src/BootstrapBlazor.Server/Components/Samples/UniverSheets.razor.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ private async Task OnPushExcelData()
7070
await _sheetExcel.PushDataAsync(new UniverSheetData()
7171
{
7272
CommandName = "SetWorkbook",
73-
Data = _reportData
73+
WorkbookData = _reportData
7474
});
7575
}
7676

@@ -88,8 +88,6 @@ private async Task OnPushPluginData()
8888
{
8989
await _sheetPlugin.PushDataAsync(new UniverSheetData()
9090
{
91-
MessageName = "MessageName",
92-
CommandName = "CommandName",
9391
Data = new
9492
{
9593
Id = "1",

0 commit comments

Comments
 (0)