This commit is contained in:
czz_y 2024-08-28 14:44:39 +08:00
parent 9a6f4ba4c8
commit ea90afdd92
18 changed files with 10 additions and 3 deletions

View File

@ -1,12 +1,14 @@
# AntdUIDemo # AntdUIDemo
本项目基于 Winform .NET Framework 4.8 开发,是 [AntdUI](https://gitee.com/antdui/AntdUI) 的 Demo 项目 本项目基于 Winform .NET Framework 4.8 开发,是 [AntdUI](https://gitee.com/antdui/AntdUI) 的 Demo 项目,当前版本 `1.5.7-beta`
## ✅ 快速开始 ## ✅ 快速开始
``` ```
1. git clone 或者直接下载本项目 1. git clone 或者直接下载本项目
2. 若电脑分辨率不是 1920×1080(1080P) 或者缩放不是 100%,使用 Visual Studio 在 100% 缩放模式下(使用 devenv /noScale 命令启动 Visual Studio)打开项目 2. 若电脑分辨率不是 1920×1080(1080P) 或者缩放不是 100%
使用 Visual Studio 在 100% 缩放模式下(使用 devenv /noScale 命令启动 Visual Studio)打开项目,
或者在项目窗口选择使用 100% 缩放比例重新启动 Visual Studio
3. 若电脑没有安装 .NET Framework 4.8,编辑项目文件设置 TargetFramework 属性为自己安装的目标框架,兼容框架参照 AntdUI 项目 3. 若电脑没有安装 .NET Framework 4.8,编辑项目文件设置 TargetFramework 属性为自己安装的目标框架,兼容框架参照 AntdUI 项目
@ -14,8 +16,11 @@
``` ```
## ⚠️ 注意事项 ## ⚠️ 注意事项
- 电脑屏幕分辨率低于 1920×1080(1080P) 请使用大于等于 1080P 分辨率的屏幕开发 - 电脑屏幕分辨率低于 1920×1080(1080P) 请使用大于等于 1080P 分辨率的屏幕开发
- 电脑屏幕大于等于 1080P 分辨率或者缩放不是 100% 请务必按照上述 **快速开始** 的第二条步骤打开项目,详细原因见 [解决 Visual Studio 中 Windows 窗体设计器的 HDPI/缩放问题](https://learn.microsoft.com/zh-cn/visualstudio/designers/disable-dpi-awareness?view=vs-2022) ,具体启动方式如下图 - 电脑屏幕分辨率大于 1080P 或者缩放不是 100% 的,可选择以下任一方式运行项目
- 按照上述 **快速开始** 的第二条打开项目,详细原因见 [解决 Visual Studio 中 Windows 窗体设计器的 HDPI/缩放问题](https://learn.microsoft.com/zh-cn/visualstudio/designers/disable-dpi-awareness?view=vs-2022) ,如下所示
![vsstart](assets/screenshots/vsstart.png) ![vsstart](assets/screenshots/vsstart.png)
- 直接打开项目,在窗口页面提示点击 **使用 100% 缩放比例重新启动 Visual Studio**,如下所示
![design](assets/screenshots/design.png)
## 系统设置 ## 系统设置
- ✅ 支持浅色/深色模式,并且随系统自动切换 - ✅ 支持浅色/深色模式,并且随系统自动切换
@ -23,6 +28,7 @@
- ✅ 支持启用/关闭阴影效果 - ✅ 支持启用/关闭阴影效果
- ✅ 支持显示/隐藏滚动条 - ✅ 支持显示/隐藏滚动条
- ✅ 支持设置 Message/Notification 消息显示位置 - ✅ 支持设置 Message/Notification 消息显示位置
![SystemSet](assets/screenshots/SystemSet.png) ![SystemSet](assets/screenshots/SystemSet.png)
## 控件演示 ## 控件演示
@ -61,6 +67,7 @@
#### DatePicker 日期选择器 #### DatePicker 日期选择器
![DatePicker](assets/screenshots/DatePicker.png) ![DatePicker](assets/screenshots/DatePicker.png)
#### DatePickerRange 日期范围选择器 #### DatePickerRange 日期范围选择器
![DatePickerRange](assets/screenshots/DatePickerRange.png)
#### Input 输入框 #### Input 输入框
#### InputNumber 数字输入框 #### InputNumber 数字输入框
#### Radio 单选框 #### Radio 单选框

Binary file not shown.

Before

Width:  |  Height:  |  Size: 586 KiB

After

Width:  |  Height:  |  Size: 514 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 455 KiB

After

Width:  |  Height:  |  Size: 483 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 441 KiB

After

Width:  |  Height:  |  Size: 471 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 505 KiB

After

Width:  |  Height:  |  Size: 499 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 482 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 593 KiB

After

Width:  |  Height:  |  Size: 511 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 538 KiB

After

Width:  |  Height:  |  Size: 503 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 528 KiB

After

Width:  |  Height:  |  Size: 484 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 464 KiB

After

Width:  |  Height:  |  Size: 467 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 561 KiB

After

Width:  |  Height:  |  Size: 526 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 542 KiB

After

Width:  |  Height:  |  Size: 505 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 527 KiB

After

Width:  |  Height:  |  Size: 520 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 485 KiB

After

Width:  |  Height:  |  Size: 479 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 491 KiB

After

Width:  |  Height:  |  Size: 494 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 412 KiB

After

Width:  |  Height:  |  Size: 231 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 96 KiB

After

Width:  |  Height:  |  Size: 31 KiB