Skip to content

Commit 1ed02a1

Browse files
authored
feat(UniverSheet): add RibbonType parameter (#7387)
1 parent 29c928f commit 1ed02a1

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@page "/univer-sheet"
1+
@page "/univer-sheet"
22
@inherits WebSiteModuleComponentBase
33
@attribute [JSModuleAutoLoader("Samples/UniverSheets.razor.js")]
44

@@ -13,11 +13,12 @@
1313
Name="Normal">
1414
<section ignore>
1515
<p>@((MarkupString)Localizer["NormalDesc1"].Value)</p>
16+
<p>@((MarkupString)Localizer["NormalDescRibbonType"].Value)</p>
1617
<Button OnClickWithoutRender="OnPushExcelData" Text="@Localizer["PushButtonText"]"></Button>
1718
<Button OnClickWithoutRender="OnSaveExcelData" Text="@Localizer["SaveButtonText"]"></Button>
1819
</section>
1920
<div class="bb-sheet-demo">
20-
<UniverSheet @ref="_sheetExcel" OnReadyAsync="OnReadyAsync"></UniverSheet>
21+
<UniverSheet @ref="_sheetExcel" OnReadyAsync="OnReadyAsync" RibbonType="UniverSheetRibbonType.Default"></UniverSheet>
2122
</div>
2223
<section ignore>
2324
<Textarea rows="3" readonly Value="@_jsonData"></Textarea>

src/BootstrapBlazor.Server/Locales/en-US.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7011,6 +7011,7 @@
70117011
"NormalIntro": "Set your own plugins by setting the <code>Plugins</code> parameter",
70127012
"NormalDesc1": "Push data to the spreadsheet by calling the instance method <code>PushDataAsync</code>. Click the <b>Save Data</b> button to get the serialized data of the table data",
70137013
"NormalDesc2": "Click the <b>Push Data</b> button to push data to the table, and click the first icon on the <b>Toolbar</b> to get data from the server.",
7014+
"NormalDescRibbonType": "Set the toolbar style using the parameter <code>RibbonType</code>.",
70147015
"PushButtonText": "Push",
70157016
"SaveButtonText": "Save",
70167017
"ToastOnReadyTitle": "Notification",

src/BootstrapBlazor.Server/Locales/zh-CN.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7011,6 +7011,7 @@
70117011
"NormalIntro": "通过调用实例方法 <code>PushDataAsync</code> 推送数据到电子表格",
70127012
"NormalDesc1": "点击 <b>推送数据</b> 按钮主动将数据推送给表格,点击 <b>保存数据</b> 按钮获得表格数据序列化的数据",
70137013
"NormalDesc2": "点击 <b>推送数据</b> 按钮主动将数据推送给表格,点击 <b>工具栏</b> 第一个小按钮主动从服务器端获取数据",
7014+
"NormalDescRibbonType": "通过参数 <code>RibbonType</code> 设置工具栏样式",
70147015
"PushButtonText": "推送数据",
70157016
"SaveButtonText": "保存数据",
70167017
"ToastOnReadyTitle": "组件通知",

0 commit comments

Comments
 (0)