From f7113798cae2a922405f378353f4464efb4091bb Mon Sep 17 00:00:00 2001 From: Starryi Date: Tue, 14 Sep 2021 11:10:01 +0800 Subject: [PATCH] =?UTF-8?q?REPORT-59421=20=E5=86=B3=E7=AD=96=E6=8A=A5?= =?UTF-8?q?=E8=A1=A8-=E5=8F=82=E6=95=B0=E9=9D=A2=E6=9D=BF-=E5=8F=82?= =?UTF-8?q?=E6=95=B0=E9=9D=A2=E6=9D=BF=E8=AE=BE=E7=BD=AE=E6=A0=B7=E5=BC=8F?= =?UTF-8?q?=EF=BC=8C=E7=8E=B0=E5=9C=A8=E8=AE=BE=E8=AE=A1=E7=94=BB=E5=B8=83?= =?UTF-8?q?=E9=87=8C=E7=9C=8B=E4=B8=8D=E5=88=B0=E6=A0=B7=E5=BC=8F=E6=95=88?= =?UTF-8?q?=E6=9E=9C=EF=BC=8C=E4=B9=8B=E5=89=8D=E7=BB=84=E4=BB=B6=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F=E5=88=86=E7=A6=BB=E8=BF=AD=E4=BB=A3=E6=97=B6=E6=9C=89?= =?UTF-8?q?=E5=AF=B9body=E8=BF=9B=E8=A1=8C=E8=AE=BE=E8=AE=A1=E7=94=BB?= =?UTF-8?q?=E5=B8=83=E5=8F=AF=E7=9C=8B=E5=88=B0=E6=A0=B7=E5=BC=8F=E6=95=88?= =?UTF-8?q?=E6=9E=9C=E7=9A=84=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 【问题原因】 添加对参数面板背景设计器画布预览效果的支持 【改动思路】 同标题 --- .../design/designer/creator/XWParameterLayout.java | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/designer-form/src/main/java/com/fr/design/designer/creator/XWParameterLayout.java b/designer-form/src/main/java/com/fr/design/designer/creator/XWParameterLayout.java index fc01aefaa9..a41ec46f6f 100644 --- a/designer-form/src/main/java/com/fr/design/designer/creator/XWParameterLayout.java +++ b/designer-form/src/main/java/com/fr/design/designer/creator/XWParameterLayout.java @@ -43,6 +43,16 @@ public class XWParameterLayout extends XWAbsoluteLayout { super(widget, initSize); } + @Override + public void refreshBorderAndBackgroundStylePreviewEffect() { + WParameterLayout data = toData(); + if (data != null) { + Background background = data.getBackground(); + setBackground4Painting(background, 1.0); + repaint(); + } + } + /** * 初始化尺寸 * @return 尺寸 @@ -235,7 +245,7 @@ public class XWParameterLayout extends XWAbsoluteLayout { * */ public void firePropertyChange(){ - + refreshBorderAndBackgroundStylePreviewEffect(); } @Override