Browse Source

REPORT-36624 新的解决方案

bugfix/10.0
Yyming 4 years ago
parent
commit
49c2630bfb
  1. 2
      designer-base/src/main/java/com/fr/start/BaseDesigner.java
  2. 5
      designer-form/src/main/java/com/fr/design/designer/creator/XNameWidget.java

2
designer-base/src/main/java/com/fr/start/BaseDesigner.java

@ -87,7 +87,7 @@ public abstract class BaseDesigner extends ToolBarMenuDock {
}
public void show() {
UIUtil.invokeLaterIfNeeded(() -> refreshTemplateTree());
UIUtil.invokeLaterIfNeeded(this::refreshTemplateTree);
}
private void refreshTemplateTree() {

5
designer-form/src/main/java/com/fr/design/designer/creator/XNameWidget.java

@ -68,11 +68,6 @@ public class XNameWidget extends XWidgetCreator {
Widget widget;
if (wc != null && (widget= wc.toWidget()) != null) {
editor = XCreatorUtils.createXCreator(widget);
NameWidget currentWidget = toData();
if (currentWidget.isNeedDefaultAttr()) {
currentWidget.setVisible(widget.isVisible());
currentWidget.setEnabled(widget.isEnabled());
}
this.setBorder(null);
} else {
this.setBorder(DEFALUTBORDER);

Loading…
Cancel
Save