mirror of
https://github.com/AIDotNet/AntSK.git
synced 2026-02-17 22:10:14 +08:00
fix 修改切片详情样式
This commit is contained in:
@@ -53,7 +53,7 @@
|
||||
<div>文件类型</div>
|
||||
</TitleTemplate>
|
||||
</ListItemMeta>
|
||||
@if (@context.Type == "file")
|
||||
@if (@context.Type == "file" || @context.Type == "excel")
|
||||
{
|
||||
<ListItemMeta Avatar="" Description="@context.FileName">
|
||||
<TitleTemplate>
|
||||
|
||||
@@ -8,16 +8,36 @@
|
||||
|
||||
|
||||
<Button Type="@ButtonType.Primary" OnClick="NavigateBack">返回</Button>
|
||||
<AntList DataSource="@_data" TItem="KMFile">
|
||||
<Divider />
|
||||
<AntList DataSource="@_data" TItem="KMFile" ItemLayout="ListItemLayout.Horizontal" Grid="LayoutModel._listGridType">
|
||||
<ListItem >
|
||||
<ListItemMeta Description="@context.Text">
|
||||
<TitleTemplate>
|
||||
<a>@context.LastUpdate</a>
|
||||
</TitleTemplate>
|
||||
</ListItemMeta>
|
||||
<Card Hoverable Bordered Class="card" Style="max-height:247px;" Actions="(new[] {
|
||||
info(()=> Info(context.Text)) ,
|
||||
})">
|
||||
<CardMeta>
|
||||
<AvatarTemplate>
|
||||
|
||||
</AvatarTemplate>
|
||||
<TitleTemplate>
|
||||
<a>@context.LastUpdate</a>
|
||||
</TitleTemplate>
|
||||
<DescriptionTemplate>
|
||||
<Paragraph class="item" Ellipsis Style=" white-space: nowrap; ">
|
||||
<!--todo: Ellipsis not working-->
|
||||
@context.Text
|
||||
</Paragraph>
|
||||
</DescriptionTemplate>
|
||||
</CardMeta>
|
||||
</Card>
|
||||
</ListItem>
|
||||
</AntList>
|
||||
|
||||
@code {
|
||||
<Modal Visible="_infolVisible" Footer="null" Closable Title="详情" OnCancel="OnCancelLog" DestroyOnClose Width="1000" MaxBodyHeight="600">
|
||||
<Paragraph>
|
||||
@_infoText
|
||||
</Paragraph>
|
||||
</Modal>
|
||||
|
||||
@code {
|
||||
RenderFragment info(Action clickAction) =>@<a key="info" @onclick="@clickAction">查看</a>;
|
||||
}
|
||||
|
||||
@@ -16,6 +16,9 @@ namespace AntSK.Pages.KmsPage
|
||||
|
||||
private List<KMFile> _data = new List<KMFile>();
|
||||
|
||||
private bool _infolVisible=false;
|
||||
private string _infoText = "";
|
||||
|
||||
protected override async Task OnInitializedAsync()
|
||||
{
|
||||
await base.OnInitializedAsync();
|
||||
@@ -26,5 +29,16 @@ namespace AntSK.Pages.KmsPage
|
||||
{
|
||||
NavigationManager.NavigateTo($"/kms/detail/{KmsId}");
|
||||
}
|
||||
|
||||
private void Info(string text)
|
||||
{
|
||||
_infoText = text;
|
||||
_infolVisible = true;
|
||||
}
|
||||
|
||||
private void OnCancelLog()
|
||||
{
|
||||
_infolVisible = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user