Skip to content

Commit 7190674

Browse files
authored
feat(UniverSheet): add IsDarkMode parameter (#7389)
* chore: bump version 10.0.3 * feat(UniverSheet): add IsDarkMode parameter * doc: 更新文档
1 parent 1ed02a1 commit 7190674

File tree

4 files changed

+5
-2
lines changed

4 files changed

+5
-2
lines changed

src/BootstrapBlazor.Server/BootstrapBlazor.Server.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
<PackageReference Include="BootstrapBlazor.Tasks.Dashboard" Version="10.0.0" />
7979
<PackageReference Include="BootstrapBlazor.Topology" Version="10.0.0" />
8080
<PackageReference Include="BootstrapBlazor.UniverIcon" Version="10.0.0" />
81-
<PackageReference Include="BootstrapBlazor.UniverSheet" Version="10.0.2" />
81+
<PackageReference Include="BootstrapBlazor.UniverSheet" Version="10.0.4" />
8282
<PackageReference Include="BootstrapBlazor.Vditor" Version="10.0.2" />
8383
<PackageReference Include="BootstrapBlazor.VideoPlayer" Version="10.0.0" />
8484
<PackageReference Include="BootstrapBlazor.WinBox" Version="10.0.0" />

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,12 @@
1414
<section ignore>
1515
<p>@((MarkupString)Localizer["NormalDesc1"].Value)</p>
1616
<p>@((MarkupString)Localizer["NormalDescRibbonType"].Value)</p>
17+
<p>@((MarkupString)Localizer["NormalDescDarkMode"].Value)</p>
1718
<Button OnClickWithoutRender="OnPushExcelData" Text="@Localizer["PushButtonText"]"></Button>
1819
<Button OnClickWithoutRender="OnSaveExcelData" Text="@Localizer["SaveButtonText"]"></Button>
1920
</section>
2021
<div class="bb-sheet-demo">
21-
<UniverSheet @ref="_sheetExcel" OnReadyAsync="OnReadyAsync" RibbonType="UniverSheetRibbonType.Default"></UniverSheet>
22+
<UniverSheet @ref="_sheetExcel" OnReadyAsync="OnReadyAsync" RibbonType="UniverSheetRibbonType.Default" IsDarkMode="false"></UniverSheet>
2223
</div>
2324
<section ignore>
2425
<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
@@ -7012,6 +7012,7 @@
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.",
70147014
"NormalDescRibbonType": "Set the toolbar style using the parameter <code>RibbonType</code>.",
7015+
"NormalDescDarkMode": "The parameter <code>IsDarkMode</code> controls whether the component uses dark mode.",
70157016
"PushButtonText": "Push",
70167017
"SaveButtonText": "Save",
70177018
"ToastOnReadyTitle": "Notification",

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7012,6 +7012,7 @@
70127012
"NormalDesc1": "点击 <b>推送数据</b> 按钮主动将数据推送给表格,点击 <b>保存数据</b> 按钮获得表格数据序列化的数据",
70137013
"NormalDesc2": "点击 <b>推送数据</b> 按钮主动将数据推送给表格,点击 <b>工具栏</b> 第一个小按钮主动从服务器端获取数据",
70147014
"NormalDescRibbonType": "通过参数 <code>RibbonType</code> 设置工具栏样式",
7015+
"NormalDescDarkMode": "通过参数 <code>IsDarkMode</code> 控制组件是否使用暗黑模式",
70157016
"PushButtonText": "推送数据",
70167017
"SaveButtonText": "保存数据",
70177018
"ToastOnReadyTitle": "组件通知",

0 commit comments

Comments
 (0)