* UIPagination: 修正因两次查询数量相等而引起的不刷新

This commit is contained in:
Sunny 2021-03-27 20:38:11 +08:00
parent 8e3147fb0d
commit b483f27724
7 changed files with 11 additions and 13 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -22,6 +22,7 @@
* 2020-07-18: V2.2.6
* 2020-08-22: V2.2.7
* 2020-08-28: V2.2.7
* 2021-03-25: V3.0.2
******************************************************************************/
using System;

View File

@ -18,6 +18,7 @@
*
* 2020-01-01: V2.2.0
* 2020-08-28: V2.2.7 Image绘制
* 2021-03-20: V3.0.2
******************************************************************************/
using System;

View File

@ -18,6 +18,7 @@
*
* 2020-01-01: V2.2.0
* 2020-07-01: V2.2.6
* 2020-03-12: V3.0.2
******************************************************************************/
using System;

View File

@ -17,6 +17,7 @@
* : 2020-07-26
*
* 2020-07-15: V2.2.6
* 2021-03-27: V3.0.2
******************************************************************************/
using System;
@ -137,15 +138,12 @@ namespace Sunny.UI
{
get => totalCount;
set
{
if (totalCount != value)
{
totalCount = Math.Max(0, value);
SetShowButtons();
DataBind();
}
}
}
/// <summary>
/// 每页显示条目个数
@ -202,8 +200,6 @@ namespace Sunny.UI
{
get => activePage;
set
{
//if (activePage != value)
{
activePage = Math.Max(1, value);
edtPage.IntValue = activePage;
@ -211,7 +207,6 @@ namespace Sunny.UI
DataBind();
}
}
}
[DefaultValue(true)]
[Description("显示页面跳转按钮"), Category("SunnyUI")]