diff --git a/AntdUIDemo.csproj b/AntdUIDemo.csproj index 3b76d59..61677d9 100644 --- a/AntdUIDemo.csproj +++ b/AntdUIDemo.csproj @@ -13,7 +13,7 @@ Copyright © 2024 czz_y $(Version) $(Version) - 1.8.1 + 1.8.3 czz_y 基于 Winform UI 框架 AntdUI 设计的 Demo https://gitee.com/mubaiyanghua/antd-uidemo @@ -30,7 +30,7 @@ - + diff --git a/MainWindow.Designer.cs b/MainWindow.Designer.cs index 0f3935c..a8acb42 100644 --- a/MainWindow.Designer.cs +++ b/MainWindow.Designer.cs @@ -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"; diff --git a/Program.cs b/Program.cs index b98b0a2..c7b4265 100644 --- a/Program.cs +++ b/Program.cs @@ -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); diff --git a/README.md b/README.md index 45dd4ec..8faf49f 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@

AntdUI Demo

-本项目基于 `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` diff --git a/Views/DrawerDemo.Designer.cs b/Views/DrawerDemo.Designer.cs index e435899..c140511 100644 --- a/Views/DrawerDemo.Designer.cs +++ b/Views/DrawerDemo.Designer.cs @@ -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; } } diff --git a/Views/DrawerDemo.cs b/Views/DrawerDemo.cs index a696c55..28204fa 100644 --- a/Views/DrawerDemo.cs +++ b/Views/DrawerDemo.cs @@ -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() diff --git a/assets/screenshots/Drawer.png b/assets/screenshots/Drawer.png index ca4d0e8..6ae592a 100644 Binary files a/assets/screenshots/Drawer.png and b/assets/screenshots/Drawer.png differ diff --git a/assets/screenshots/WindowBar.png b/assets/screenshots/WindowBar.png deleted file mode 100644 index 79bf286..0000000 Binary files a/assets/screenshots/WindowBar.png and /dev/null differ