升级1.8.3,Drawer新增延迟显示属性
This commit is contained in:
parent
914cad321c
commit
6d94cd6cb4
@ -13,7 +13,7 @@
|
||||
<Copyright>Copyright © 2024 czz_y</Copyright>
|
||||
<FileVersion>$(Version)</FileVersion>
|
||||
<AssemblyVersion>$(Version)</AssemblyVersion>
|
||||
<Version>1.8.1</Version>
|
||||
<Version>1.8.3</Version>
|
||||
<Authors>czz_y</Authors>
|
||||
<Description>基于 Winform UI 框架 AntdUI 设计的 Demo</Description>
|
||||
<PackageProjectUrl>https://gitee.com/mubaiyanghua/antd-uidemo</PackageProjectUrl>
|
||||
@ -30,7 +30,7 @@
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="AntdUI" Version="1.8.1" />
|
||||
<PackageReference Include="AntdUI" Version="1.8.3" />
|
||||
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
|
||||
<PackageReference Include="NLog" Version="5.3.3" />
|
||||
</ItemGroup>
|
||||
|
||||
3
MainWindow.Designer.cs
generated
3
MainWindow.Designer.cs
generated
@ -51,7 +51,7 @@
|
||||
this.titlebar.ShowButton = true;
|
||||
this.titlebar.ShowIcon = true;
|
||||
this.titlebar.Size = new System.Drawing.Size(1018, 40);
|
||||
this.titlebar.SubText = "Demo 1.8.1";
|
||||
this.titlebar.SubText = "Demo 1.8.3";
|
||||
this.titlebar.TabIndex = 0;
|
||||
this.titlebar.Text = "AntdUI";
|
||||
//
|
||||
@ -124,7 +124,6 @@
|
||||
this.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||
this.Name = "MainWindow";
|
||||
this.Opacity = 0.99D;
|
||||
this.Padding = new System.Windows.Forms.Padding(6, 0, 0, 6);
|
||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
||||
this.Text = "AntdUI Demo";
|
||||
|
||||
@ -18,6 +18,7 @@ namespace AntdUIDemo
|
||||
|
||||
AntdUI.Localization.DefaultLanguage = "zh-CN";
|
||||
AntdUI.Config.TextRenderingHint = System.Drawing.Text.TextRenderingHint.AntiAliasGridFit;
|
||||
AntdUI.Config.SetCorrectionTextRendering("Microsoft YaHei UI");
|
||||
|
||||
Application.EnableVisualStyles();
|
||||
Application.SetCompatibleTextRenderingDefault(false);
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
|
||||
<h1>AntdUI Demo</h1>
|
||||
|
||||
本项目基于 `Winform .NET Framework 4.8` 开发,是 [AntdUI](https://gitee.com/antdui/AntdUI) 的 Demo 项目,当前版本 `1.8.1`
|
||||
本项目基于 `Winform .NET Framework 4.8` 开发,是 [AntdUI](https://gitee.com/antdui/AntdUI) 的 Demo 项目,当前版本 `1.8.3`
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
25
Views/DrawerDemo.Designer.cs
generated
25
Views/DrawerDemo.Designer.cs
generated
@ -41,6 +41,8 @@
|
||||
this.flowPanel1 = new AntdUI.FlowPanel();
|
||||
this.button = new AntdUI.Button();
|
||||
this.label3 = new AntdUI.Label();
|
||||
this.label1 = new AntdUI.Label();
|
||||
this.input_displaydealy = new AntdUI.InputNumber();
|
||||
this.stackPanel1.SuspendLayout();
|
||||
this.stackPanel3.SuspendLayout();
|
||||
this.flowPanel1.SuspendLayout();
|
||||
@ -76,6 +78,8 @@
|
||||
//
|
||||
// stackPanel3
|
||||
//
|
||||
this.stackPanel3.Controls.Add(this.input_displaydealy);
|
||||
this.stackPanel3.Controls.Add(this.label1);
|
||||
this.stackPanel3.Controls.Add(this.switch_mc);
|
||||
this.stackPanel3.Controls.Add(this.label6);
|
||||
this.stackPanel3.Controls.Add(this.switch_mask);
|
||||
@ -91,7 +95,6 @@
|
||||
//
|
||||
// switch_mc
|
||||
//
|
||||
this.switch_mc.AutoCheck = true;
|
||||
this.switch_mc.Location = new System.Drawing.Point(463, 3);
|
||||
this.switch_mc.Name = "switch_mc";
|
||||
this.switch_mc.Size = new System.Drawing.Size(50, 26);
|
||||
@ -109,7 +112,6 @@
|
||||
//
|
||||
// switch_mask
|
||||
//
|
||||
this.switch_mask.AutoCheck = true;
|
||||
this.switch_mask.Location = new System.Drawing.Point(273, 3);
|
||||
this.switch_mask.Name = "switch_mask";
|
||||
this.switch_mask.Size = new System.Drawing.Size(50, 26);
|
||||
@ -182,6 +184,23 @@
|
||||
this.label3.TabIndex = 28;
|
||||
this.label3.Text = "基本用法";
|
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.label1.Location = new System.Drawing.Point(523, 3);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(120, 26);
|
||||
this.label1.TabIndex = 14;
|
||||
this.label1.Text = "DisplayDelay";
|
||||
//
|
||||
// input_displaydealy
|
||||
//
|
||||
this.input_displaydealy.Location = new System.Drawing.Point(653, 3);
|
||||
this.input_displaydealy.Name = "input_displaydealy";
|
||||
this.input_displaydealy.Size = new System.Drawing.Size(75, 26);
|
||||
this.input_displaydealy.TabIndex = 15;
|
||||
this.input_displaydealy.WaveSize = 0;
|
||||
//
|
||||
// DrawerDemo
|
||||
//
|
||||
this.Controls.Add(this.stackPanel1);
|
||||
@ -210,5 +229,7 @@
|
||||
private AntdUI.Switch switch_mask;
|
||||
private AntdUI.Label label5;
|
||||
private AntdUI.Button button;
|
||||
private AntdUI.InputNumber input_displaydealy;
|
||||
private AntdUI.Label label1;
|
||||
}
|
||||
}
|
||||
|
||||
@ -47,7 +47,8 @@ namespace AntdUIDemo.Views
|
||||
Align = (TAlignMini)select_align.SelectedValue,
|
||||
Mask = switch_mask.Checked,
|
||||
//当MaskClosable为false时,需要弹出窗口自己实现关闭,否则无法关闭
|
||||
MaskClosable = switch_mc.Checked
|
||||
MaskClosable = switch_mc.Checked,
|
||||
DisplayDelay = (int)input_displaydealy.Value,//延迟DisplayDelay毫秒打开
|
||||
});
|
||||
}
|
||||
|
||||
@ -56,6 +57,7 @@ namespace AntdUIDemo.Views
|
||||
select_align.SelectedIndex = 2;
|
||||
switch_mask.Checked = true;
|
||||
switch_mc.Checked = true;
|
||||
input_displaydealy.Value = 100;
|
||||
}
|
||||
|
||||
private void InitSelectItems()
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 265 KiB After Width: | Height: | Size: 99 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 256 KiB |
Loading…
x
Reference in New Issue
Block a user