@foreach (var file in FileList)
{
var tips = string.Empty;
var stateClass = string.Empty;
switch (file.State)
{
case UploadState.Uploading:
tips = "上传中";
break;
case UploadState.Fail:
tips = !string.IsNullOrWhiteSpace(file.Response) ? file.Response : "上传失败";
stateClass = "ant-upload-list-item-error";
break;
case UploadState.Success:
tips = file.FileName;
stateClass = "ant-upload-list-item-done";
break;
}
@if (file.State == UploadState.Uploading)
{
}
else
{
}
@if (file.State == UploadState.Uploading || file.State == UploadState.Fail)
{
@file.FileName
}
else
{
@file.FileName
}
@if (file.State != UploadState.Uploading)
{
}
@if (file.State == UploadState.Uploading)
{
}
}