Browse Source

update

bugfix/10.0
Hades 6 years ago
parent
commit
d7dc7e096c
  1. 2
      designer-form/src/main/java/com/fr/design/mainframe/widget/ui/FormWidgetCardPane.java

2
designer-form/src/main/java/com/fr/design/mainframe/widget/ui/FormWidgetCardPane.java

@ -224,7 +224,7 @@ public class FormWidgetCardPane extends AbstractAttrNoScrollPane {
} }
String containerName = designer.getTarget().getContainer().getWidgetName(); String containerName = designer.getTarget().getContainer().getWidgetName();
Widget existWidget = FormWidgetHelper.findWidgetByName(widget, widgetNameField.getText()); Widget existWidget = FormWidgetHelper.findWidgetByName(widget, widgetNameField.getText());
// 判断设置的组件名是否和容器同名以及组件是否在容器在存在 满足任何一 抛出提示 // 判断设置的组件名是否和容器同名以及组件是否在容器在存在 满足任何一 抛出提示
boolean exist = ComparatorUtils.equals(containerName, toSetWidgetName) || existWidget != null; boolean exist = ComparatorUtils.equals(containerName, toSetWidgetName) || existWidget != null;
if (exist) { if (exist) {
widgetNameField.setText(currentWidgetName); widgetNameField.setText(currentWidgetName);

Loading…
Cancel
Save