mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-15 09:21:24 +08:00
853ba18649
* feat: badge ribbon * fix: demo for ribbon * docs: add chinese api doc for ribbon * fix: scroll number style Co-authored-by: ElderJames <shunjiey@hotmail.com>
20 lines
414 B
C#
20 lines
414 B
C#
@namespace AntDesign
|
|
@inherits AntDomComponentBase
|
|
|
|
<div class="ant-ribbon-wrapper">
|
|
@if (ChildContent != null)
|
|
{
|
|
@ChildContent
|
|
}
|
|
<div class="@ClassMapper.Class" style="@colorStyle">
|
|
@if (Text.IsT0)
|
|
{
|
|
@Text.AsT0
|
|
}
|
|
else
|
|
{
|
|
@Text.AsT1
|
|
}
|
|
<div class="ant-ribbon-corner" style="@cornerColorStyle"/>
|
|
</div>
|
|
</div> |