Browse Source

Pull request #5156: KERNEL-8608 解决控件组件在创建组件过程中丢失配置的问题

Merge in DESIGN/design from ~TOMMY/design:feature/10.0 to feature/10.0

* commit '552392e98b33e1a5a355eeee78233557ec3302f4':
  KERNEL-8608 解决控件组件在创建组件过程中丢失配置的问题
feature/10.0
Tommy 3 years ago
parent
commit
ebfd1e8cfc
  1. 10
      designer-form/src/main/java/com/fr/design/mainframe/share/generate/task/ComponentCreator.java

10
designer-form/src/main/java/com/fr/design/mainframe/share/generate/task/ComponentCreator.java

@ -110,8 +110,14 @@ public class ComponentCreator extends AbstractComponentCreatorProcessor {
protected DefaultSharableEditor createSharableEditor(Form form, Map<String, Object> paraMap, Widget widget, DefaultSharableWidget info) {
String uuid = info.getId();
((AbstractBorderStyleWidget) widget).addWidgetAttrMark(new SharableAttrMark());
((AbstractBorderStyleWidget) widget).addWidgetAttrMark(new ExtendSharableAttrMark(uuid));
AbstractBorderStyleWidget abstractBorderStyleWidget = (AbstractBorderStyleWidget) widget;
abstractBorderStyleWidget.addWidgetAttrMark(new SharableAttrMark());
ExtendSharableAttrMark extendSharableAttrMark = abstractBorderStyleWidget.getWidgetAttrMark(ExtendSharableAttrMark.XML_TAG);
if (extendSharableAttrMark != null) {
extendSharableAttrMark.setShareId(uuid);
} else {
abstractBorderStyleWidget.addWidgetAttrMark(new ExtendSharableAttrMark(uuid));
}
return new PlainSharableEditor(uuid, widget, form, (HashMap<String, Object>) paraMap);
}

Loading…
Cancel
Save