Skip to content

Commit

Permalink
🚚 refactor(Toolbar&Card): move to MASA.Blazor (#558)
Browse files Browse the repository at this point in the history
  • Loading branch information
capdiem authored Feb 1, 2024
1 parent fe834ec commit a5dc1e5
Show file tree
Hide file tree
Showing 29 changed files with 5 additions and 300 deletions.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

6 changes: 0 additions & 6 deletions src/Component/BlazorComponent/Components/Card/BCardBody.razor

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

6 changes: 0 additions & 6 deletions src/Component/BlazorComponent/Components/Card/BCardText.razor

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

7 changes: 0 additions & 7 deletions src/Component/BlazorComponent/Components/Card/ICard.cs

This file was deleted.

This file was deleted.

This file was deleted.

17 changes: 0 additions & 17 deletions src/Component/BlazorComponent/Components/Sheet/BSheet.razor

This file was deleted.

45 changes: 0 additions & 45 deletions src/Component/BlazorComponent/Components/Sheet/BSheet.razor.cs

This file was deleted.

This file was deleted.

This file was deleted.

7 changes: 0 additions & 7 deletions src/Component/BlazorComponent/Components/Sheet/ISheet.cs

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

15 changes: 0 additions & 15 deletions src/Component/BlazorComponent/Components/Toolbar/IToolbar.cs

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,8 @@ private RenderFragment RenderChildContent(TValue? key)
return builder =>
{
var sequence = 0;
builder.OpenComponent<Container>(sequence++);
builder.AddAttribute(sequence++, nameof(Container.Value), EqualityComparer<TValue>.Default.Equals(key, Value));
builder.OpenComponent<ShouldRenderValue>(sequence++);
builder.AddAttribute(sequence++, nameof(ShouldRenderValue.Value), EqualityComparer<TValue>.Default.Equals(key, Value));
builder.AddAttribute(sequence, nameof(ChildContent), ChildContent);
builder.CloseComponent();
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,11 @@

namespace BlazorComponent;

public class Container : ComponentBase
public class ShouldRenderValue : ComponentBase
{
[Parameter]
public bool Value { get; set; }
[Parameter] public bool Value { get; set; }

[Parameter]
public RenderFragment? ChildContent { get; set; }
[Parameter] public RenderFragment? ChildContent { get; set; }

protected override bool ShouldRender()
{
Expand Down

0 comments on commit a5dc1e5

Please sign in to comment.