Browse Source

魔法数字

feature/10.0
kerry 3 years ago
parent
commit
9525ae797e
  1. 5
      designer-form/src/main/java/com/fr/design/mainframe/adaptve/config/ReuseNotifyInfo.java

5
designer-form/src/main/java/com/fr/design/mainframe/adaptve/config/ReuseNotifyInfo.java

@ -4,6 +4,8 @@ package com.fr.design.mainframe.adaptve.config;
* Created by kerry on 5/7/21
*/
public class ReuseNotifyInfo {
private static final int CELL_STYLE_MODIFY_MAX_NUMBER = 3;
private static final int CELL_IMAGE_VALUE_MODIFY_MAX_NUMBER = 1;
private int cellStyleModifiedNumber = 0;
private int cellImageValueNumber = 0;
@ -17,7 +19,8 @@ public class ReuseNotifyInfo {
}
public boolean matchCondition() {
return cellStyleModifiedNumber >= 3 || cellImageValueNumber >= 1;
return cellStyleModifiedNumber >= CELL_STYLE_MODIFY_MAX_NUMBER
|| cellImageValueNumber >= CELL_IMAGE_VALUE_MODIFY_MAX_NUMBER;
}
public void reset() {

Loading…
Cancel
Save