-
-
Notifications
You must be signed in to change notification settings - Fork 382
doc(AttributeTable): auto generate AttributeTable content #7529
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 22 commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
d73ab4d
Initial plan
Copilot bb45fb6
Add reflection-based attribute retrieval for Circles component
Copilot e9bf411
Fix security issues in ComponentAttributeCacheService
Copilot e635568
Fix IndexOf edge case in GetFriendlyTypeName
Copilot 4769d78
refactor: 重构代码
ArgoZhang a6564d7
doc: 重构示例
ArgoZhang 37e36a5
refactor: 移除冗余配置
ArgoZhang 0ac2cad
chore: 增加 xml 拷贝指令
ArgoZhang 466daa9
chore: 调整 Target 顺序
ArgoZhang 7c51045
Merge branch 'main' into copilot/refactor-circles-example-component
ArgoZhang f16b455
chore: 增加版本信息
ArgoZhang 83e4fa4
refactor: 移除默认值列
ArgoZhang c0539cb
refactor: 增加 xmlDoc 复用提高性能
ArgoZhang 61c7da5
refactor: 兼容老代码
ArgoZhang ce8a596
refactor: 移除 ValueList 列
ArgoZhang de9218a
refactor: 增加说明文档
ArgoZhang 1d783dd
refactor: 更改数据类型为 List
ArgoZhang b752f18
refactor: 精简代码
ArgoZhang 9daa6d7
chore: 临时脚本
ArgoZhang 5ba8fac
refactor: 重构逻辑
ArgoZhang b46e1a6
refactor: 调整脚本
ArgoZhang 9c0ecde
refactor: 更新脚本
ArgoZhang 6c8cf2b
chore: 撤销更改
ArgoZhang File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
11 changes: 7 additions & 4 deletions
11
src/BootstrapBlazor.Server/Components/Components/AttributeTable.razor
This file contains hidden or 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,13 +1,16 @@ | ||
| <div class="table-attr"> | ||
| <div class="table-attr"> | ||
| <h4>@Title</h4> | ||
|
|
||
| <Table TItem="AttributeItem" Items="Items"> | ||
| <Table TItem="AttributeItem" Items="Items" ShowFooter="@ShowFooter"> | ||
| <TableColumns> | ||
| <TableColumn @bind-Field="@context.Name" /> | ||
| <TableColumn @bind-Field="@context.Description" TextWrap="true" /> | ||
| <TableColumn @bind-Field="@context.Type" /> | ||
| <TableColumn @bind-Field="@context.ValueList" TextWrap="true" /> | ||
| <TableColumn @bind-Field="@context.DefaultValue" /> | ||
| <TableColumn @bind-Field="@context.Version" /> | ||
| </TableColumns> | ||
| <TableFooter> | ||
| <TableFooterCell Text="合计:" colspan="3" Align="Alignment.Left" /> | ||
| <TableFooterCell Aggregate="AggregateType.Count" Field="@nameof(AttributeItem.Name)" /> | ||
| </TableFooter> | ||
| </Table> | ||
| </div> |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,9 +1,17 @@ | ||
| <Project> | ||
|
|
||
| <Target Name="LLMs" AfterTargets="Publish" Condition="'$(TargetFramework)' == '$(RunTargetFramework)'"> | ||
| <Target Name="LLMs" AfterTargets="Publish"> | ||
| <Message Text="LLMs documentation generating ..." Importance="high"></Message> | ||
| <Exec Command="dotnet tool restore"></Exec> | ||
| <Exec Command="dotnet llms-docs --root=$(MSBuildThisFileDirectory) --output=$(PublishDir)"></Exec> | ||
| </Target> | ||
|
|
||
| <Target Name="CopyXmlDocs" AfterTargets="LLMs"> | ||
| <ItemGroup> | ||
| <XmlDocsToCopy Include="%(Reference.RelativeDir)BootstrapBlazor*.xml" /> | ||
| </ItemGroup> | ||
| <Message Text="Copying XML docs to output path: $(PublishDir)" Importance="High" /> | ||
| <Copy SourceFiles="@(XmlDocsToCopy)" DestinationFolder="$(PublishDir)" SkipUnchangedFiles="true" Condition="Exists('%(RootDir)%(Directory)%(Filename)%(Extension)')" /> | ||
| </Target> | ||
|
|
||
| </Project> | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.