Browse Source

代码修改

research/11.0
kerry 4 years ago
parent
commit
8de03b58c4
  1. 13
      designer-form/src/main/java/com/fr/design/fit/NewJForm.java

13
designer-form/src/main/java/com/fr/design/fit/NewJForm.java

@ -274,13 +274,16 @@ public class NewJForm extends JForm {
public UIButton[] createExtraButtons() {
UIButton[] extraButtons = super.createExtraButtons();
if (mobileForm()) {
return extraButtons;
}
switchAction = new SwitchAction();
return ArrayUtils.addAll(extraButtons, new UIButton[]{switchAction.getToolBarButton()});
return addAdaptiveSwitchButton(extraButtons);
}
private UIButton[] addAdaptiveSwitchButton(UIButton[] extraButtons) {
switchAction = new SwitchAction();
if (!mobileForm()) {
return ArrayUtils.addAll(extraButtons, new UIButton[]{switchAction.getToolBarButton()});
}
return extraButtons;
}
public boolean isNewJFrom() {
return jFormType == null || jFormType.isNewType();

Loading…
Cancel
Save