ant-design-blazor/components/upload/UploadButton.razor
James Yeung ddb09a9aa8 fix(module: upload): style of file list and picture card (#1001)
* fix(module: upload): file list style

* refactor upload button to fix ref conflict
2021-01-19 21:18:50 +08:00

9 lines
498 B
C#

@namespace AntDesign.Internal
@inherits AntComponentBase
<div class="ant-upload ant-upload-select ant-upload-select-@(ListType)" style="@(!ShowButton?"display:none;":"")">
<span tabindex="0" class="ant-upload" @ref="_btn" data-fileid="@_fileId" role="button">
<input type="file" webkitdirectory="@Directory" multiple="@(Multiple || Directory)" @ref="_file" @onchange="FileNameChanged" accept="@Accept" style="display: none;" id="@_fileId" />
@ChildContent
</span>
</div>