* UIPagination: 修正因两次查询数量相等而引起的不刷新
This commit is contained in:
parent
8e3147fb0d
commit
b483f27724
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -18,6 +18,7 @@
|
||||
*
|
||||
* 2020-01-01: V2.2.0 增加文件说明
|
||||
* 2020-07-01: V2.2.6 解决引发事件所有结点重绘导致闪烁;解决滚轮失效问题。
|
||||
* 2020-03-12: V3.0.2 增加设置二级菜单底色
|
||||
******************************************************************************/
|
||||
|
||||
using System;
|
||||
|
@ -17,6 +17,7 @@
|
||||
* 创建日期: 2020-07-26
|
||||
*
|
||||
* 2020-07-15: V2.2.6 新增分页控件
|
||||
* 2021-03-27: V3.0.2 修正因两次查询数量相等而引起的不刷新
|
||||
******************************************************************************/
|
||||
|
||||
using System;
|
||||
@ -138,12 +139,9 @@ namespace Sunny.UI
|
||||
get => totalCount;
|
||||
set
|
||||
{
|
||||
if (totalCount != value)
|
||||
{
|
||||
totalCount = Math.Max(0, value);
|
||||
SetShowButtons();
|
||||
DataBind();
|
||||
}
|
||||
totalCount = Math.Max(0, value);
|
||||
SetShowButtons();
|
||||
DataBind();
|
||||
}
|
||||
}
|
||||
|
||||
@ -203,13 +201,10 @@ namespace Sunny.UI
|
||||
get => activePage;
|
||||
set
|
||||
{
|
||||
//if (activePage != value)
|
||||
{
|
||||
activePage = Math.Max(1, value);
|
||||
edtPage.IntValue = activePage;
|
||||
SetShowButtons();
|
||||
DataBind();
|
||||
}
|
||||
activePage = Math.Max(1, value);
|
||||
edtPage.IntValue = activePage;
|
||||
SetShowButtons();
|
||||
DataBind();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user