升级1.8.3,Drawer新增延迟显示属性

This commit is contained in:
czz_y
2025-01-13 11:23:11 +08:00
parent 914cad321c
commit 6d94cd6cb4
8 changed files with 31 additions and 8 deletions
+23 -2
View File
@@ -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;
}
}
+3 -1
View File
@@ -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()