From 622016f413a02479e0ad600b771334fe0c24f738 Mon Sep 17 00:00:00 2001 From: imp Date: Thu, 31 Oct 2019 10:05:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=8Bcss?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/finebi/plugin/BIBoxPlotChartComponent.java | 3 ++- .../main/resources/com/finebi/plugin/web/css/chart.css | 8 ++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/plugin-demo/src/main/java/com/finebi/plugin/BIBoxPlotChartComponent.java b/plugin-demo/src/main/java/com/finebi/plugin/BIBoxPlotChartComponent.java index bbf3845..16cef2e 100644 --- a/plugin-demo/src/main/java/com/finebi/plugin/BIBoxPlotChartComponent.java +++ b/plugin-demo/src/main/java/com/finebi/plugin/BIBoxPlotChartComponent.java @@ -1,6 +1,7 @@ package com.finebi.plugin; import com.fr.web.struct.Component; +import com.fr.web.struct.category.ParserType; import com.fr.web.struct.category.ScriptPath; import com.fr.web.struct.category.StylePath; @@ -18,6 +19,6 @@ public class BIBoxPlotChartComponent extends Component { } public StylePath style() { - return StylePath.build("com/finebi/plugin/web/css/chart.css"); + return StylePath.build("com/finebi/plugin/web/css/chart.css", ParserType.DYNAMIC); } } \ No newline at end of file diff --git a/plugin-demo/src/main/resources/com/finebi/plugin/web/css/chart.css b/plugin-demo/src/main/resources/com/finebi/plugin/web/css/chart.css index 19ee991..b6385ac 100644 --- a/plugin-demo/src/main/resources/com/finebi/plugin/web/css/chart.css +++ b/plugin-demo/src/main/resources/com/finebi/plugin/web/css/chart.css @@ -1,17 +1,17 @@ .chart-type-boxplot-column-icon .x-icon { display: block; - background: url('/webroot/decision/resources?path=/com/finebi/plugin/web/image/boxplot.png') no-repeat center center; + background: url('${fineServletURL}/resources?path=/com/finebi/plugin/web/image/boxplot.png') no-repeat center center; background-size: contain; } .chart-type-boxplot-column-icon .x-icon.hack { - background: url('/webroot/decision/resources?path=/com/finebi/plugin/web/image/boxplot.png') no-repeat center center; + background: url('${fineServletURL}/resources?path=/com/finebi/plugin/web/image/boxplot.png') no-repeat center center; } .chart-type-boxplot-column-disabled-icon .x-icon { display: block; - background: url('/webroot/decision/resources?path=/com/finebi/plugin/web/image/disable.png') no-repeat center center; + background: url('${fineServletURL}/resources?path=/com/finebi/plugin/web/image/disable.png') no-repeat center center; background-size: contain; } .chart-type-boxplot-column-disabled-icon .x-icon.hack { - background: url('/webroot/decision/resources?path=/com/finebi/plugin/web/image/disable.png') no-repeat center center; + background: url('${fineServletURL}/resources?path=/com/finebi/plugin/web/image/disable.png') no-repeat center center; } \ No newline at end of file