@using System.Timers
<Progress value="15" max="100"></Progress>
<Progress Color="Color.Primary" value="30" max="100"></Progress>
<Progress Color="Color.Link" value="45" max="100"></Progress>
<Progress Color="Color.Info" value="60" max="100"></Progress>
<Progress Color="Color.Success" value="75" max="100"></Progress>
<Progress Color="Color.Warning" value="90" max="100"></Progress>
<Progress Color="Color.Danger" value="100" max="100"></Progress>
<Progress IsSmall value="20" max="100"></Progress>
<Progress IsNormal value="40" max="100"></Progress>
<Progress IsMedium value="60" max="100"></Progress>
<Progress IsLarge value="80" max="100"></Progress>
<Progress max="100"></Progress>
<Progress Color="Color.Primary" max="100"></Progress>
<Progress Color="Color.Link" max="100"></Progress>
<Progress Color="Color.Info" max="100"></Progress>
<Progress Color="Color.Success" max="100"></Progress>
<Progress Color="Color.Warning" max="90"></Progress>
<Progress Color="Color.Danger" max="100"></Progress>
<Level>
<LevelItem>
<Progress Color="Color.Primary" value="@val" max="100">50%</Progress>
</LevelItem>
<LevelItem>
<Button Color="Color.Primary" @onclick="fun">增加进度</Button>
</LevelItem>
</Level>
@code{
int val = 50;
void fun()
{
val = val += 10;
if (val > 100)
{
val = 0;
}
}
}
文档