parent
c973844f4a
commit
9d8dbc3335
@ -0,0 +1,21 @@
|
|||||||
|
@using Blazor.Models;
|
||||||
|
|
||||||
|
<div
|
||||||
|
class="item"
|
||||||
|
ondragover="event.preventDefault();"
|
||||||
|
draggable="true"
|
||||||
|
@ondragstart="@OnDragStart"
|
||||||
|
@ondrop="@OnDrop"
|
||||||
|
@ondragenter="@OnDragEnter"
|
||||||
|
@ondragleave="@OnDragLeave">
|
||||||
|
|
||||||
|
@if (!string.IsNullOrWhiteSpace(Item.ImageBase64))
|
||||||
|
{
|
||||||
|
<img src="data:image/png;base64, @(Item.ImageBase64)" class="img-thumbnail" title="Item.DisplayName" alt="Item.DisplayName" style="width: 60px" />
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
<img src="images/default.png" class="img-thumbnail" title="Item.DisplayName" alt="Item.DisplayName" style="width: 60px"/>
|
||||||
|
}
|
||||||
|
|
||||||
|
</div>
|
Loading…
Reference in new issue