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,5 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk.Razor">

<PropertyGroup>
<Version>11.0.1-beta02</Version>
</PropertyGroup>

<PropertyGroup>
<PackageTags>Bootstrap Blazor WebAssembly wasm UI Components</PackageTags>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ namespace BootstrapBlazor.Components;
/// </summary>
public partial class DriverJs
{
private const string DriverJsStylePath = "_content/BootstrapBlazor.DriverJs/driver.css";

/// <summary>
/// <para lang="zh">获得/设置 是否自动开始向导,默认为 true</para>
/// <para lang="en">Gets or sets whether to start the tour automatically. Default is true</para>
Expand Down Expand Up @@ -42,7 +44,13 @@ public partial class DriverJs
/// <inheritdoc/>
/// </summary>
/// <returns></returns>
protected override Task InvokeInitAsync() => InvokeVoidAsync("init", Id, Interop);
protected override Task InvokeInitAsync() => InvokeVoidAsync("init", Id, Interop, DriverJsStyleUrl);

#if NET9_0_OR_GREATER
private string DriverJsStyleUrl => Assets[DriverJsStylePath];
#else
private static string DriverJsStyleUrl => DriverJsStylePath;
#endif

/// <summary>
/// <para lang="zh">开始方法</para>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { driver } from "../driver.js.mjs"
import { addLink } from '../../BootstrapBlazor/modules/utility.js'
import Data from "../../BootstrapBlazor/modules/data.js"

export async function init(id, invoke) {
await addLink('./_content/BootstrapBlazor.DriverJs/driver.css')
export async function init(id, invoke, styleUrl) {
await addLink(styleUrl)

Data.set(id, { invoke });
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk.Razor">

<PropertyGroup>
<Version>11.0.0-beta01</Version>
</PropertyGroup>

<ItemGroup>
<Content Remove="wwwroot\lang\*.json" />
<None Include="wwwroot\lang\*.json" />
Expand Down
Loading