From c5eb7458c8456664f1b3960401a0ce737824f3ea Mon Sep 17 00:00:00 2001
From: huyupeng <huyupeng@cndatacom.com>
Date: Mon, 01 Aug 2022 14:52:18 +0800
Subject: [PATCH] fix: 处理XSS攻击问题(#I5IRC8)
---
ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/annotation/Excel.java | 17 ++++++++++++++++-
1 files changed, 16 insertions(+), 1 deletions(-)
diff --git a/ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/annotation/Excel.java b/ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/annotation/Excel.java
index e7dc024..fd20df1 100644
--- a/ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/annotation/Excel.java
+++ b/ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/annotation/Excel.java
@@ -104,7 +104,22 @@
public ColumnType cellType() default ColumnType.STRING;
/**
- * 导出字体颜色
+ * 导出列头背景色
+ */
+ public IndexedColors headerBackgroundColor() default IndexedColors.GREY_50_PERCENT;
+
+ /**
+ * 导出列头字体颜色
+ */
+ public IndexedColors headerColor() default IndexedColors.WHITE;
+
+ /**
+ * 导出单元格背景色
+ */
+ public IndexedColors backgroundColor() default IndexedColors.WHITE;
+
+ /**
+ * 导出单元格字体颜色
*/
public IndexedColors color() default IndexedColors.BLACK;
--
Gitblit v1.9.3