-
Notifications
You must be signed in to change notification settings - Fork 160
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
♻ refactor(Overlay): merge code from BlazorComponent and refactor (#1763
- Loading branch information
Showing
16 changed files
with
1,308 additions
and
802 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 was deleted.
Oops, something went wrong.
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,45 @@ | ||
@namespace Masa.Blazor | ||
@inherits BBootable | ||
|
||
<CascadingValue Value="IsDark" Name="IsDark"> | ||
|
||
@ComputedActivatorContent | ||
|
||
<CascadingValue Value="this" IsFixed> | ||
<div class="@CssProvider.GetClass()" | ||
style="@CssProvider.GetStyle()" | ||
id="@Id" | ||
@ref="Ref" | ||
role="dialog"> | ||
@if (IsBooted) | ||
{ | ||
<div class="@CssProvider.GetClass("content")" | ||
style="@CssProvider.GetStyle("content")" | ||
@onkeydown="@Keydown" | ||
@ref="@ContentRef" | ||
@attributes="@ContentAttrs"> | ||
|
||
<Transition Name="@Transition"> | ||
<ShowTransitionElement Value="@IsActive" | ||
Class="@CssProvider.GetClass("innerContent")" | ||
Style="@CssProvider.GetStyle("innerContent")" | ||
ReferenceCaptureAction="r => DialogRef = r"> | ||
@ChildContent | ||
</ShowTransitionElement> | ||
</Transition> | ||
|
||
</div> | ||
|
||
if (ShowOverlay) | ||
{ | ||
<MOverlay ScrimClass="@OverlayScrimClass" | ||
Value="@IsActive" | ||
ZIndex="@(ZIndex - 1)" | ||
@ref="Overlay"> | ||
</MOverlay> | ||
} | ||
} | ||
</div> | ||
</CascadingValue> | ||
|
||
</CascadingValue> |
Oops, something went wrong.