diff --git a/designer-form/src/main/java/com/fr/design/mainframe/share/generate/task/ComponentCreator.java b/designer-form/src/main/java/com/fr/design/mainframe/share/generate/task/ComponentCreator.java index 62570e5132..b14229df67 100644 --- a/designer-form/src/main/java/com/fr/design/mainframe/share/generate/task/ComponentCreator.java +++ b/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 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) paraMap); }