2020-05-29 00:33:49 +08:00
|
|
|
@namespace AntDesign
|
2020-04-23 17:13:56 +08:00
|
|
|
@inherits AntDomComponentBase
|
2020-03-26 15:59:24 +08:00
|
|
|
|
2021-01-21 17:20:10 +08:00
|
|
|
<div class="@ClassMapper.Class" style="@Style" id="@Id" @ref="Ref">
|
2020-08-23 21:20:29 +08:00
|
|
|
<div class="ant-steps-item-container" @onclick="@HandleClick" tabindex="@GetTabIndex()" @attributes="@_containerAttributes">
|
2020-08-08 11:44:21 +08:00
|
|
|
@if (!Last)
|
|
|
|
{
|
|
|
|
<div class="ant-steps-item-tail"></div>
|
|
|
|
}
|
|
|
|
<div class="ant-steps-item-icon">
|
|
|
|
@if (!ShowProcessDot)
|
2020-03-26 15:59:24 +08:00
|
|
|
{
|
2020-08-08 11:44:21 +08:00
|
|
|
@if (Percent != null && Parent.Current == Index)
|
|
|
|
{
|
|
|
|
<div class="ant-steps-progress-icon">
|
2020-09-16 13:58:16 +08:00
|
|
|
<Progress Percent="@((double) Percent)"
|
2020-11-05 17:34:52 +08:00
|
|
|
Width=@(Size == "small" ? 32 : 40)
|
2020-09-16 13:58:16 +08:00
|
|
|
Type=ProgressType.Circle
|
|
|
|
StrokeWidth="4"
|
|
|
|
Format=@((p) => "") />
|
2020-08-08 11:44:21 +08:00
|
|
|
<span class="ant-steps-icon">
|
|
|
|
|
|
|
|
@if (string.IsNullOrEmpty(Icon))
|
|
|
|
{
|
|
|
|
if (Status == "finish")
|
|
|
|
{
|
2021-02-03 18:37:13 +08:00
|
|
|
<Icon Type="check"></Icon>
|
2020-08-08 11:44:21 +08:00
|
|
|
}
|
|
|
|
else if (Status == "error")
|
|
|
|
{
|
2021-02-03 18:37:13 +08:00
|
|
|
<Icon Type="close"></Icon>
|
2020-08-08 11:44:21 +08:00
|
|
|
}
|
|
|
|
else if (Status == "process" || Status == "wait")
|
|
|
|
{
|
|
|
|
@(Index + 1)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
if (Status == "error")
|
|
|
|
{
|
2021-02-03 18:37:13 +08:00
|
|
|
<Icon Type="close"></Icon>
|
2020-08-08 11:44:21 +08:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2021-02-03 18:37:13 +08:00
|
|
|
<Icon Type="@Icon"></Icon>
|
2020-08-08 11:44:21 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
}
|
|
|
|
else
|
2020-03-26 15:59:24 +08:00
|
|
|
{
|
|
|
|
<span class="ant-steps-icon">
|
2020-08-08 11:44:21 +08:00
|
|
|
|
2020-03-26 15:59:24 +08:00
|
|
|
@if (string.IsNullOrEmpty(Icon))
|
|
|
|
{
|
|
|
|
if (Status == "finish")
|
|
|
|
{
|
2021-02-03 18:37:13 +08:00
|
|
|
<Icon Type="check"></Icon>
|
2020-03-26 15:59:24 +08:00
|
|
|
}
|
|
|
|
else if (Status == "error")
|
|
|
|
{
|
2021-02-03 18:37:13 +08:00
|
|
|
<Icon Type="close"></Icon>
|
2020-03-26 15:59:24 +08:00
|
|
|
}
|
|
|
|
else if (Status == "process" || Status == "wait")
|
|
|
|
{
|
2020-08-08 11:44:21 +08:00
|
|
|
@(Index + 1)
|
2020-03-26 15:59:24 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
if (Status == "error")
|
|
|
|
{
|
2021-02-03 18:37:13 +08:00
|
|
|
<Icon Type="close"></Icon>
|
2020-03-26 15:59:24 +08:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2021-02-03 18:37:13 +08:00
|
|
|
<Icon Type="@Icon"></Icon>
|
2020-03-26 15:59:24 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
</span>
|
2020-08-08 11:44:21 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
<span class="ant-steps-icon">
|
|
|
|
<span class="ant-steps-icon-dot"></span>
|
|
|
|
</span>
|
|
|
|
}
|
|
|
|
</div>
|
|
|
|
<div class="ant-steps-item-content">
|
|
|
|
<div class="ant-steps-item-title">
|
2020-09-16 13:58:16 +08:00
|
|
|
@if (TitleTemplate != null)@TitleTemplate else @Title
|
|
|
|
|
|
|
|
@if (SubtitleTemplate != null || Subtitle != null)
|
2020-03-26 15:59:24 +08:00
|
|
|
{
|
2020-08-08 11:44:21 +08:00
|
|
|
<div class="ant-steps-item-subtitle">
|
2020-09-16 13:58:16 +08:00
|
|
|
@if (SubtitleTemplate != null)@SubtitleTemplate else @Subtitle
|
2020-07-11 00:23:17 +08:00
|
|
|
</div>
|
2020-03-26 15:59:24 +08:00
|
|
|
}
|
|
|
|
</div>
|
2020-09-16 13:58:16 +08:00
|
|
|
@if (DescriptionTemplate != null || Description != null)
|
2020-08-08 11:44:21 +08:00
|
|
|
{
|
|
|
|
<div class="ant-steps-item-description">
|
2020-09-16 13:58:16 +08:00
|
|
|
@if (DescriptionTemplate != null)@DescriptionTemplate else @Description
|
2020-08-08 11:44:21 +08:00
|
|
|
</div>
|
|
|
|
}
|
2020-03-26 15:59:24 +08:00
|
|
|
</div>
|
2020-04-23 17:13:56 +08:00
|
|
|
</div>
|
2020-08-08 11:44:21 +08:00
|
|
|
</div>
|