Skip to content
Merged
Show file tree
Hide file tree
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
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.Razor">

<PropertyGroup>
<Version>10.0.14</Version>
<Version>10.0.15</Version>
</PropertyGroup>

<PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ namespace BootstrapBlazor.Components;
/// </summary>
public partial class UniverSheet
{
private const string UniverBundleStylePath = "_content/BootstrapBlazor.UniverSheet/css/univer-bundle.css";

private const string UniverSheetStylePath = "_content/BootstrapBlazor.UniverSheet/css/univer-sheet.bundle.css";

/// <summary>
/// <para lang="zh">获得/设置 插件集合 默认 null 未设置</para>
/// <para lang="en">Gets or sets the plugin collection. Default is null.</para>
Expand Down Expand Up @@ -132,9 +136,35 @@ protected override async Task OnAfterRenderAsync(bool firstRender)
Plugins,
Data,
DarkMode = IsDarkMode,
RibbonType = RibbonType.ToDescriptionString()
RibbonType = RibbonType.ToDescriptionString(),
UniverBundleStyleUrl,
UniverSheetStyleUrl
});

private string UniverBundleStyleUrl
{
get
{
#if NET9_0_OR_GREATER
return Assets[UniverBundleStylePath];
#else
return UniverBundleStylePath;
#endif
}
}

private string UniverSheetStyleUrl
{
get
{
#if NET9_0_OR_GREATER
return Assets[UniverSheetStylePath];
#else
return UniverSheetStylePath;
#endif
}
}

/// <summary>
/// <para lang="zh">推送数据方法</para>
/// <para lang="en">Pushes data to the sheet.</para>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ import Data from '../../BootstrapBlazor/modules/data.js'
import EventHandler from "../../BootstrapBlazor/modules/event-handler.js"

export async function init(id, invoke, options) {
await addLink('./_content/BootstrapBlazor.UniverSheet/css/univer-sheet.bundle.css');
const { univerBundleStyleUrl, univerSheetStyleUrl } = options;
await addLink(univerBundleStyleUrl);
await addLink(univerSheetStyleUrl);

const el = document.getElementById(id);
if (el === null) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
@import 'univer-bundle.css';

.bb-univer-sheet {
width: 100%;
height: 100%;
Expand Down
Loading