From 6b6c12738d5b89ae70224d569bcef6870f748059 Mon Sep 17 00:00:00 2001 From: kuangshuai Date: Thu, 29 Jul 2021 09:57:43 +0800 Subject: [PATCH] =?UTF-8?q?KERNEL-8608=20=E8=A7=A3=E5=86=B3=E6=8E=A7?= =?UTF-8?q?=E4=BB=B6=E7=BB=84=E4=BB=B6=E5=9C=A8=E5=88=9B=E5=BB=BA=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E8=BF=87=E7=A8=8B=E4=B8=AD=E4=B8=A2=E5=A4=B1=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../share/generate/task/ComponentCreator.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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); }