From 198f73b578f159399be558bc69e615c4a5777fcd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=96=B9=E7=A3=8A?= <294531121@qq.com> Date: Thu, 8 Apr 2021 15:56:06 +0800 Subject: [PATCH] =?UTF-8?q?REPORT-50744=20=E7=94=A8JTemplateProvider?= =?UTF-8?q?=E6=9B=BF=E4=BB=A3JTemplate?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/fanruan/api/design/DesignKit.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/fanruan/api/design/DesignKit.java b/src/main/java/com/fanruan/api/design/DesignKit.java index 2ff10ec..4b95d64 100644 --- a/src/main/java/com/fanruan/api/design/DesignKit.java +++ b/src/main/java/com/fanruan/api/design/DesignKit.java @@ -1,6 +1,8 @@ package com.fanruan.api.design; +import com.fr.base.io.BaseBook; import com.fr.design.DesignerEnvManager; +import com.fr.design.mainframe.JTemplateProvider; import com.fr.design.mainframe.WidgetPropertyPane; import com.fr.base.TableData; import com.fr.design.DesignModelAdapter; @@ -76,12 +78,12 @@ public class DesignKit { /** * 获取指定模板的ID - * + * * @param template 指定模板 * @return 模板ID */ - public static String getTemplateId(JTemplate template) { - return template.getTarget().getTemplateID(); + public static String getTemplateId(JTemplateProvider template) { + return ((BaseBook) template.getTarget()).getTemplateID(); } /**