mirror of
https://github.com/AIDotNet/AntSK.git
synced 2026-02-17 22:10:14 +08:00
add 上传事件
This commit is contained in:
@@ -14,7 +14,10 @@
|
||||
<Extra>
|
||||
<Dropdown Style="position: absolute; right: 20px; margin-bottom: 8px;">
|
||||
<Overlay>
|
||||
@_overlayMenu
|
||||
<Menu>
|
||||
@( _fileUpload(async () => await FileUpload()))
|
||||
@( _urlUpload(async () => await UrlUpload()))
|
||||
</Menu>
|
||||
</Overlay>
|
||||
<ChildContent>
|
||||
<Button>导入 <Icon Type="down" /></Button>
|
||||
@@ -56,18 +59,19 @@
|
||||
</div>
|
||||
|
||||
@code {
|
||||
private RenderFragment _overlayMenu =@<Menu>
|
||||
<MenuItem>
|
||||
<a target="_blank" rel="noopener noreferrer" href="http://www.alipay.com/">
|
||||
|
||||
RenderFragment _fileUpload(Action clickAction) =>@<MenuItem>
|
||||
<a target="_blank" rel="noopener noreferrer" @onclick="@clickAction">
|
||||
文件上传
|
||||
</a>
|
||||
</MenuItem>
|
||||
<MenuItem>
|
||||
<a target="_blank" rel="noopener noreferrer" href="http://www.taobao.com/">
|
||||
</MenuItem>;
|
||||
|
||||
RenderFragment _urlUpload(Action clickAction) =>@<MenuItem>
|
||||
<a target="_blank" rel="noopener noreferrer" @onclick="@clickAction">
|
||||
链接读取
|
||||
</a>
|
||||
</MenuItem>
|
||||
</Menu>;
|
||||
</MenuItem>;
|
||||
|
||||
private static readonly RenderFragment Detail = @<a key="detail">详情</a>;
|
||||
private static readonly RenderFragment Delete = @<a key="edit">删除</a>;
|
||||
|
||||
|
||||
@@ -32,5 +32,15 @@ namespace AntSK.Pages.Kms
|
||||
await base.OnInitializedAsync();
|
||||
_data =await _kmsDetails_Repositories.GetListAsync(p => p.KmsId == KmsId);
|
||||
}
|
||||
|
||||
private async Task FileUpload()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private async Task UrlUpload()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user