From 42a793206558ed7d78ef09535e544f452d934964 Mon Sep 17 00:00:00 2001 From: czz_y Date: Sat, 14 Sep 2024 12:43:12 +0800 Subject: [PATCH] =?UTF-8?q?Message,=20Modal,=20Notification=E6=94=AF?= =?UTF-8?q?=E6=8C=81=E8=AE=BE=E7=BD=AE=E5=86=85=E8=BE=B9=E8=B7=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Views/MessageDemo.cs | 4 ++++ Views/ModalDemo.cs | 2 ++ Views/NotificationDemo.cs | 2 ++ 3 files changed, 8 insertions(+) diff --git a/Views/MessageDemo.cs b/Views/MessageDemo.cs index f03640c..04adfb6 100644 --- a/Views/MessageDemo.cs +++ b/Views/MessageDemo.cs @@ -44,6 +44,7 @@ namespace AntdUIDemo.Views case "Success": AntdUI.Message.loading(window, "加载中...", call: (config) => { + config.Padding = new Size(12, 9); //执行一些耗时操作,暂不支持异步任务 Thread.Sleep(2000); config.Text = "加载配置..."; @@ -57,6 +58,7 @@ namespace AntdUIDemo.Views case "Error": AntdUI.Message.loading(window, "加载中...", call: (config) => { + config.Padding = new Size(12, 9); //执行一些耗时操作,暂不支持异步任务 Thread.Sleep(2000); config.Text = "加载配置..."; @@ -70,6 +72,7 @@ namespace AntdUIDemo.Views case "Info": AntdUI.Message.loading(window, "加载中...", call: (config) => { + config.Padding = new Size(12, 9); //执行一些耗时操作,暂不支持异步任务 Thread.Sleep(2000); config.Text = "加载配置..."; @@ -83,6 +86,7 @@ namespace AntdUIDemo.Views case "Warn": AntdUI.Message.loading(window, "加载中...", call: (config) => { + config.Padding = new Size(12, 9); //执行一些耗时操作,暂不支持异步任务 Thread.Sleep(2000); config.Text = "加载配置..."; diff --git a/Views/ModalDemo.cs b/Views/ModalDemo.cs index e7f2fe0..88264ce 100644 --- a/Views/ModalDemo.cs +++ b/Views/ModalDemo.cs @@ -111,6 +111,8 @@ namespace AntdUIDemo.Views AntdUI.Modal.open(new AntdUI.Modal.Config(window, "Basic Modal", "Some contents...\r\nSome contents...\r\nSome contents...") { Icon = TType.Info, + //内边距 + Padding = new Size(24, 20), }); } } diff --git a/Views/NotificationDemo.cs b/Views/NotificationDemo.cs index cedf14b..0b845ea 100644 --- a/Views/NotificationDemo.cs +++ b/Views/NotificationDemo.cs @@ -44,6 +44,7 @@ namespace AntdUIDemo.Views { AntdUI.Notification.open(new AntdUI.Notification.Config(window, "Notification Title", "This is the content of the notification. This is the content of the notification. This is the content of the notification.", TType.Info, TAlignFrom.TR) { + Padding = new Size(24, 20), CloseIcon = false, Link = new Notification.ConfigLink("Link to...", new Action(() => { @@ -56,6 +57,7 @@ namespace AntdUIDemo.Views { AntdUI.Notification.open(new AntdUI.Notification.Config(window, "Notification Title", "This is the content of the notification. This is the content of the notification. This is the content of the notification.", TType.Info, TAlignFrom.TR) { + Padding = new Size(24, 20), CloseIcon = false, }); }