-
-
Notifications
You must be signed in to change notification settings - Fork 314
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
doc(WinBox): add QA documentation (#4126)
* chore: 增加 new 标识符号 * refactor: 增加暗黑模式支持 * refactor: 增加文档 * feat: 增加 IRootComponentGenerator 接口 * doc: 更新文档 * refactor: 增加自动生成根节点方法 * chore: bump version 8.0.0-beta03 * chore: 更新依赖包 * doc: 更新文档 * doc: 更新链接文档 * chore: 格式化项目文件
- Loading branch information
Showing
8 changed files
with
77 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
src/Extensions/Components/BootstrapBlazor.WinBox/Extensions/ComponentGenerator.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// Copyright (c) Argo Zhang (argo@163.com). All rights reserved. | ||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. | ||
// Website: https://www.blazor.zone or https://argozhang.github.io/ | ||
|
||
using Microsoft.AspNetCore.Components; | ||
|
||
namespace BootstrapBlazor.Components; | ||
|
||
class ComponentGenerator : IRootComponentGenerator | ||
{ | ||
public RenderFragment Generator() => BootstrapDynamicComponent.CreateComponent<WinBox>().Render(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 12 additions & 1 deletion
13
src/Extensions/Components/BootstrapBlazor.WinBox/wwwroot/css/winbox.bundle.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,17 @@ | ||
@import url('./winbox.min.css'); | ||
|
||
.winbox { | ||
--bb-winbox-bg: #0050ff; | ||
--bb-winbox-body-padding: .5rem; | ||
--bb-winbox-bg: #b5b5c3; | ||
--bb-window-border-radius: var(--bs-border-radius) var(--bs-border-radius) 0 0; | ||
background: var(--bb-winbox-bg); | ||
border-radius: var(--bb-window-border-radius); | ||
} | ||
|
||
.winbox .bb-win-box-content { | ||
padding: var(--bb-winbox-body-padding); | ||
} | ||
|
||
[data-bs-theme='dark'] .winbox { | ||
--bb-winbox-bg: #383b3f; | ||
} |