Skip to content

Commit 5677125

Browse files
committed
feat: 增加 Reset 方法
1 parent 02b365b commit 5677125

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/BootstrapBlazor/Components/Upload/UploadBase.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,4 +367,14 @@ protected IDictionary<string, object> GetUploadAdditionalAttributes()
367367
}
368368
return ret;
369369
}
370+
371+
/// <summary>
372+
/// 重置上传组件方法
373+
/// <para>Reset the upload component.</para>
374+
/// </summary>
375+
public virtual void Reste()
376+
{
377+
_filesCache = null;
378+
StateHasChanged();
379+
}
370380
}

0 commit comments

Comments
 (0)