table支持查看图片
This commit is contained in:
parent
2b0a6b532c
commit
10a90cf6cd
10
Properties/Resources.Designer.cs
generated
10
Properties/Resources.Designer.cs
generated
@ -100,6 +100,16 @@ namespace AntdUIDemo.Properties {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
|
||||||
|
/// </summary>
|
||||||
|
internal static System.Drawing.Bitmap head2 {
|
||||||
|
get {
|
||||||
|
object obj = ResourceManager.GetObject("head2", resourceCulture);
|
||||||
|
return ((System.Drawing.Bitmap)(obj));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
|
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@ -130,6 +130,9 @@
|
|||||||
<data name="head" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
<data name="head" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
<value>..\Resources\head.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
<value>..\Resources\head.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="head2" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
|
<value>..\Resources\head2.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||||
|
</data>
|
||||||
<data name="logo" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
<data name="logo" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
<value>..\assets\logo.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
<value>..\assets\logo.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||||
</data>
|
</data>
|
||||||
|
|||||||
BIN
Resources/head2.jpg
Normal file
BIN
Resources/head2.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 99 KiB |
@ -225,6 +225,11 @@ namespace AntdUIDemo.Views
|
|||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if (item.Text == "查看图片")
|
||||||
|
{
|
||||||
|
//查看其他来源的高清图片
|
||||||
|
Preview.open(new Preview.Config(window, Properties.Resources.head2));
|
||||||
|
}
|
||||||
else
|
else
|
||||||
AntdUI.Message.info(window, item.Text, autoClose: 1);
|
AntdUI.Message.info(window, item.Text, autoClose: 1);
|
||||||
},
|
},
|
||||||
@ -238,10 +243,14 @@ namespace AntdUIDemo.Views
|
|||||||
IconSvg = "CheckOutlined"
|
IconSvg = "CheckOutlined"
|
||||||
},
|
},
|
||||||
new AntdUI.ContextMenuStripItem("编辑"){
|
new AntdUI.ContextMenuStripItem("编辑"){
|
||||||
IconSvg = "<svg t=\"1725101535645\" class=\"icon\" viewBox=\"0 0 1024 1024\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" p-id=\"1082\" width=\"200\" height=\"200\"><path d=\"M867.22 413.07c-9.68 0-19.36-3.63-26.82-10.92-15.19-14.82-15.49-39.14-0.68-54.32 46.84-48.02 45.89-125.18-2.12-172.02-23.27-22.7-54.13-34.93-86.46-34.56-32.49 0.4-62.87 13.43-85.56 36.69-14.83 15.19-39.15 15.47-54.32 0.68-15.19-14.81-15.49-39.13-0.68-54.32C687 45.94 812.9 44.4 891.24 120.82c78.33 76.42 79.89 202.32 3.47 280.66-7.52 7.71-17.51 11.59-27.49 11.59z\" p-id=\"1083\"></path><path d=\"M819.09 462.01c-9.68 0-19.36-3.63-26.82-10.92L563.13 227.55c-15.19-14.82-15.49-39.14-0.68-54.32 14.82-15.2 39.15-15.47 54.32-0.68L845.92 396.1c15.19 14.82 15.49 39.14 0.68 54.32-7.54 7.72-17.52 11.59-27.51 11.59z\" p-id=\"1084\"></path><path d=\"M164.51 674.68c-9.68 0-19.36-3.63-26.82-10.92-15.19-14.82-15.49-39.14-0.68-54.32l473.74-485.6c14.82-15.2 39.15-15.47 54.33-0.67 15.18 14.82 15.48 39.14 0.67 54.33L192.01 663.09c-7.53 7.72-17.52 11.59-27.5 11.59z\" p-id=\"1085\"></path><path d=\"M111.34 958.62c-2.31 0-4.65-0.21-7.01-0.64-20.86-3.85-34.66-23.88-30.81-44.74l51.7-280.46c3.85-20.86 23.86-34.7 44.74-30.81 20.86 3.85 34.66 23.88 30.81 44.74l-51.7 280.46c-3.41 18.5-19.56 31.45-37.73 31.45z\" p-id=\"1086\"></path><path d=\"M393.86 898.44c-9.68 0-19.36-3.63-26.82-10.92-15.19-14.82-15.49-39.14-0.68-54.32L840.1 347.6c14.82-15.19 39.14-15.49 54.32-0.68 15.19 14.82 15.49 39.13 0.68 54.32l-473.74 485.6c-7.53 7.72-17.51 11.6-27.5 11.6z\" p-id=\"1087\"></path><path d=\"M111.3 958.66c-17.79 0-33.76-12.42-37.56-30.52-4.36-20.76 8.93-41.13 29.7-45.49l279.1-58.62c20.8-4.35 41.13 8.93 45.49 29.7 4.36 20.76-8.93 41.13-29.7 45.49l-279.1 58.62c-2.66 0.55-5.31 0.82-7.93 0.82z\" p-id=\"1088\"></path><path d=\"M912.71 959.5H592.59c-21.21 0-38.41-17.2-38.41-38.41 0-21.21 17.2-38.41 38.41-38.41h320.12c21.21 0 38.41 17.2 38.41 38.41 0 21.21-17.2 38.41-38.41 38.41z\" p-id=\"1089\"></path></svg>",
|
IconSvg = "EditOutlined",
|
||||||
},
|
},
|
||||||
new AntdUI.ContextMenuStripItem("删除"){
|
new AntdUI.ContextMenuStripItem("删除"){
|
||||||
IconSvg = "<svg t=\"1725101558417\" class=\"icon\" viewBox=\"0 0 1024 1024\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" p-id=\"1250\" width=\"200\" height=\"200\"><path d=\"M783.72 958.39h-539c-41.75 0-75.72-33.46-75.72-74.6V242.5c0-21.18 17.17-38.36 38.36-38.36s38.36 17.17 38.36 38.36v639.17h537V242.5c0-21.18 17.17-38.36 38.36-38.36s38.36 17.17 38.36 38.36v641.29c0 41.14-33.97 74.6-75.72 74.6z\" p-id=\"1251\"></path><path d=\"M706.01 244.51c-21.19 0-38.36-17.17-38.36-38.36v-63.82H360.79v63.82c0 21.18-17.17 38.36-38.36 38.36-21.19 0-38.36-17.17-38.36-38.36v-65.93c0-41.83 27.11-74.6 61.71-74.6h336.87c34.6 0 61.71 32.77 61.71 74.6v65.93c0.01 21.18-17.16 38.36-38.35 38.36z\" p-id=\"1252\"></path><path d=\"M921.14 256.01H102.86c-21.18 0-38.36-17.17-38.36-38.36s17.17-38.36 38.36-38.36h818.29c21.19 0 38.36 17.17 38.36 38.36s-17.18 38.36-38.37 38.36zM514.22 763.27c-21.19 0-38.36-17.17-38.36-38.36V405.27c0-21.18 17.17-38.36 38.36-38.36 21.19 0 38.36 17.17 38.36 38.36v319.64c0 21.18-17.17 38.36-38.36 38.36zM360.79 699.34c-21.19 0-38.36-17.17-38.36-38.36V469.2c0-21.18 17.17-38.36 38.36-38.36s38.36 17.17 38.36 38.36v191.79c0 21.18-17.17 38.35-38.36 38.35zM667.65 699.34c-21.19 0-38.36-17.17-38.36-38.36V469.2c0-21.18 17.17-38.36 38.36-38.36 21.19 0 38.36 17.17 38.36 38.36v191.79c0 21.18-17.17 38.35-38.36 38.35z\" p-id=\"1253\"></path></svg>"
|
IconSvg = "DeleteOutlined"
|
||||||
|
},
|
||||||
|
new ContextMenuStripItem("查看图片")
|
||||||
|
{
|
||||||
|
IconSvg = "FundViewOutlined"
|
||||||
},
|
},
|
||||||
new ContextMenuStripItemDivider(),
|
new ContextMenuStripItemDivider(),
|
||||||
new AntdUI.ContextMenuStripItem("详情"){
|
new AntdUI.ContextMenuStripItem("详情"){
|
||||||
@ -292,6 +301,10 @@ namespace AntdUIDemo.Views
|
|||||||
//超链接内容
|
//超链接内容
|
||||||
AntdUI.Message.info(window, user.CellLinks.FirstOrDefault().Id, autoClose: 1);
|
AntdUI.Message.info(window, user.CellLinks.FirstOrDefault().Id, autoClose: 1);
|
||||||
break;
|
break;
|
||||||
|
case "查看图片":
|
||||||
|
//使用clone可以防止table中的image被修改
|
||||||
|
Preview.open(new Preview.Config(window, (Image)curUser.CellImages[0].Image.Clone()));
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -395,7 +408,8 @@ namespace AntdUIDemo.Views
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
new CellButton(Guid.NewGuid().ToString(),"删除",TTypeMini.Error) },
|
new CellButton(Guid.NewGuid().ToString(),"删除",TTypeMini.Error),
|
||||||
|
new CellButton(Guid.NewGuid().ToString(),"查看图片",TTypeMini.Primary)},
|
||||||
//value:0-1
|
//value:0-1
|
||||||
CellProgress = new CellProgress(0.5f),
|
CellProgress = new CellProgress(0.5f),
|
||||||
CellDivider = new CellDivider(),
|
CellDivider = new CellDivider(),
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 440 KiB After Width: | Height: | Size: 436 KiB |
Loading…
x
Reference in New Issue
Block a user