From 03e3bee7b87f5c61f40f1c85a7b39ee8f11cda73 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期二, 25 七月 2023 17:31:46 +0800
Subject: [PATCH] 2023-07-25

---
 src/tabviews/custom/components/card/cardcellList/index.jsx |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/src/tabviews/custom/components/card/cardcellList/index.jsx b/src/tabviews/custom/components/card/cardcellList/index.jsx
index 7c6d11e..f87cb87 100644
--- a/src/tabviews/custom/components/card/cardcellList/index.jsx
+++ b/src/tabviews/custom/components/card/cardcellList/index.jsx
@@ -542,6 +542,17 @@
           val = card.tooltip
         }
 
+        if (/\\n|\n/.test(val)) {
+          val = val + val
+          val = val.replace(/(\\n|\n)$/, '')
+        
+          if (val) {
+            val = val.split(/\\n|\n/)
+        
+            val = <div>{val.map((cell, i) => <div style={{marginBottom: 2}} key={i}>{cell}</div>)}</div>
+          }
+        }
+
         if (card.tipType === 'text') {
           contents.push(
             <div className={'ant-col ant-col-' + card.width} key={card.uuid} style={_style_} span={card.width}>

--
Gitblit v1.8.0