Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into fix/tabs-animated-cause-display-issue
- Loading branch information
Showing
34 changed files
with
644 additions
and
488 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,43 @@ | ||
@namespace AntDesign | ||
|
||
<Dialog Config="@GetDialogOptions()" Visible="@_visible"> | ||
<ul class="ant-image-preview-operations"> | ||
<li class="ant-image-preview-operations-operation" @onclick="HandleClose" @onclick:stopPropagation> | ||
<Icon Type="close" Class="ant-image-preview-operations-icon" /> | ||
</li> | ||
<li class="ant-image-preview-operations-operation" @onclick="HandleZoomIn" @onclick:stopPropagation> | ||
<Icon Type="zoom-in" Class="ant-image-preview-operations-icon" /> | ||
</li> | ||
<li class="ant-image-preview-operations-operation @(_zoomOutTimes==1?"ant-image-preview-operations-operation-disabled":"")" @onclick="HandleZoomOut" @onclick:stopPropagation> | ||
<Icon Type="zoom-out" Class="ant-image-preview-operations-icon" /> | ||
</li> | ||
<li class="ant-image-preview-operations-operation" @onclick="HandleRotateRight" @onclick:stopPropagation> | ||
<Icon Type="rotate-right" Class="ant-image-preview-operations-icon" /> | ||
</li> | ||
<li class="ant-image-preview-operations-operation" @onclick="HandleRotateLeft" @onclick:stopPropagation> | ||
<Icon Type="rotate-left" Class="ant-image-preview-operations-icon" /> | ||
</li> | ||
</ul> | ||
<div class="ant-image-preview-img-wrapper" style="font-size:0; transform: translate3d(0px, 0px, 0px);"> | ||
<img class="ant-image-preview-img" src="@ImageRef.ImageSrc" style="transform: scale3d(@_zoomOutTimes, @_zoomOutTimes, 1) rotate(@(90*_rotateTimes)deg);"> | ||
</div> | ||
@if (ImageRef.ImageCount > 1) | ||
{ | ||
<div class="ant-image-preview-switch-left @(ImageRef.CurrentIndex==0?"ant-image-preview-switch-left-disabled":"")" @onclick="()=>ImageRef.SwitchTo(ImageRef.CurrentIndex-1)" @onclick:stopPropagation> | ||
<Icon Type="left" /> | ||
<ChildContent> | ||
<div class="ant-image-preview-img-wrapper" style="font-size:0; transform: translate3d(0px, 0px, 0px);"> | ||
<img class="ant-image-preview-img" src="@ImageRef.ImageSrc" style="transform: scale3d(@_zoomOutTimes, @_zoomOutTimes, 1) rotate(@(90*_rotateTimes)deg);"> | ||
</div> | ||
<div class="ant-image-preview-switch-right @(ImageRef.CurrentIndex==ImageRef.ImageCount-1?"ant-image-preview-switch-right-disabled":"")" @onclick="()=>ImageRef.SwitchTo(ImageRef.CurrentIndex+1)" @onclick:stopPropagation> | ||
<Icon Type="right" /> | ||
@if (ImageRef.ImageCount > 1) | ||
{ | ||
<div class="ant-image-preview-switch-left @(ImageRef.CurrentIndex==0?"ant-image-preview-switch-left-disabled":"")" @onclick="()=>ImageRef.SwitchTo(ImageRef.CurrentIndex-1)" @onclick:stopPropagation> | ||
<Icon Type="left" /> | ||
</div> | ||
<div class="ant-image-preview-switch-right @(ImageRef.CurrentIndex==ImageRef.ImageCount-1?"ant-image-preview-switch-right-disabled":"")" @onclick="()=>ImageRef.SwitchTo(ImageRef.CurrentIndex+1)" @onclick:stopPropagation> | ||
<Icon Type="right" /> | ||
</div> | ||
} | ||
</ChildContent> | ||
<AdditionalContent> | ||
<div class="ant-image-preview-operations-wrapper"> | ||
<ul class="ant-image-preview-operations"> | ||
@if (ImageRef.ImageCount > 1) | ||
{ | ||
<li class="ant-image-preview-operations-progress">@(ImageRef.CurrentIndex+1) / @ImageRef.ImageCount</li> | ||
} | ||
<li class="ant-image-preview-operations-operation ant-image-preview-operations-operation-close" @onclick="HandleClose" @onclick:stopPropagation> | ||
<Icon Type="close" Class="ant-image-preview-operations-icon" /> | ||
</li> | ||
<li class="ant-image-preview-operations-operation ant-image-preview-operations-operation-zoomIn" @onclick="HandleZoomIn" @onclick:stopPropagation> | ||
<Icon Type="zoom-in" Class="ant-image-preview-operations-icon" /> | ||
</li> | ||
<li class="ant-image-preview-operations-operation ant-image-preview-operations-operation-zoomOut @(_zoomOutTimes==1?"ant-image-preview-operations-operation-disabled":"")" @onclick="HandleZoomOut" @onclick:stopPropagation> | ||
<Icon Type="zoom-out" Class="ant-image-preview-operations-icon" /> | ||
</li> | ||
<li class="ant-image-preview-operations-operation ant-image-preview-operations-operation-rotateRight" @onclick="HandleRotateRight" @onclick:stopPropagation> | ||
<Icon Type="rotate-right" Class="ant-image-preview-operations-icon" /> | ||
</li> | ||
<li class="ant-image-preview-operations-operation ant-image-preview-operations-operation-rotateLeft" @onclick="HandleRotateLeft" @onclick:stopPropagation> | ||
<Icon Type="rotate-left" Class="ant-image-preview-operations-icon" /> | ||
</li> | ||
</ul> | ||
</div> | ||
} | ||
</AdditionalContent> | ||
</Dialog> |
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
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,15 @@ | ||
using System; | ||
using System.Threading.Tasks; | ||
using Microsoft.AspNetCore.Components; | ||
using Microsoft.AspNetCore.Components.Web; | ||
|
||
namespace AntDesign | ||
{ | ||
public class MentionsTextareaTemplateOptions | ||
{ | ||
public string Value { get; set; } | ||
public ForwardRef RefBack { get; set; } | ||
public Action<KeyboardEventArgs> OnKeyDown { get; set; } | ||
public Func<ChangeEventArgs, Task> OnInput { get; set; } | ||
} | ||
} |
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,8 +1,18 @@ | ||
@import '../../input/style/mixin'; | ||
|
||
.ant-mention-dropdown { | ||
top: 100%; | ||
left: 0; | ||
position: relative; | ||
width: 100%; | ||
margin-top: 4px; | ||
margin-bottom: 4px; | ||
top: 100%; | ||
left: 0; | ||
position: relative; | ||
width: 100%; | ||
margin-top: 4px; | ||
margin-bottom: 4px; | ||
} | ||
|
||
.ant-mentions { | ||
border: none; | ||
} | ||
|
||
.ant-mentions .rc-textarea { | ||
.input(); | ||
} |
Oops, something went wrong.