升级1.9.11,Table支持堆叠表头和合并单元格,Tabs支持禁止选中,Splitter支持收缩

This commit is contained in:
czz_y
2025-04-21 14:46:49 +08:00
parent 90f6b0821b
commit 40ca78a77c
13 changed files with 146 additions and 109 deletions
+1 -1
View File
@@ -40,7 +40,6 @@
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(750, 150);
this.label1.TabIndex = 0;
this.label1.Text = "欢迎使用 AntdUI Demo";
this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// Wellcome
@@ -48,6 +47,7 @@
this.Controls.Add(this.label1);
this.Name = "Wellcome";
this.Size = new System.Drawing.Size(750, 150);
this.Load += new System.EventHandler(this.Wellcome_Load);
this.ResumeLayout(false);
}
+25 -2
View File
@@ -1,12 +1,35 @@
using System.Windows.Forms;
using AntdUI;
using System.Drawing;
using System.Threading;
using System.Windows.Forms;
namespace AntdUIDemo.Views.SubView
{
public partial class Wellcome : UserControl
{
public Wellcome()
private AntdUI.Window window;
public Wellcome(AntdUI.Window _window)
{
window = _window;
InitializeComponent();
}
private void Wellcome_Load(object sender, System.EventArgs e)
{
AntdUI.Spin.open(window, new AntdUI.Spin.Config()
{
Radius = 6,
Font = new Font("Microsoft YaHei UI", 12f),//字体可以控制进度圈的大小
}, (config) =>
{
config.Text = "LOADING...";
//耗时代码,处理数据
Thread.Sleep(2000);
}, () =>
{
//结束时执行的代码
label1.Text = "欢迎使用 AntdUI Demo";
});
}
}
}