Browse Source

Merge pull request #688 in DESIGN/design from ~HADES/design:release/10.0 to release/10.0

* commit '582c2890c99f42745d0a6ff4358f1a30a2d2e96f':
  整理代码
  真正成因: XNameWidegt漏加setEnable
  REPORT-13614 【10.0.2回归】预定义控件设置不可用失效
bugfix/10.0
Hades 6 years ago
parent
commit
01ca246188
  1. 4
      designer-form/src/main/java/com/fr/design/designer/creator/XNameWidget.java

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

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

Loading…
Cancel
Save