From 6ed4e1dc4b9575a22f74f57fbf90abe02b315de7 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期四, 21 十一月 2024 10:10:33 +0800
Subject: [PATCH] 2024-11-21

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

diff --git a/src/tabviews/custom/components/card/cardcellList/index.jsx b/src/tabviews/custom/components/card/cardcellList/index.jsx
index 3a130e8..2924236 100644
--- a/src/tabviews/custom/components/card/cardcellList/index.jsx
+++ b/src/tabviews/custom/components/card/cardcellList/index.jsx
@@ -649,10 +649,21 @@
           }
         }
 
+        let _style = {...card.style}
+
+        if (card.marks) {
+          let _s = {}
+          getMark(card.marks, data, _s)
+
+          if (_s.color) {
+            _style.color = _s.color
+          }
+        }
+
         if (card.tipType === 'text') {
           contents.push(
             <div className={'ant-col ant-col-' + card.width} key={card.uuid} style={_style_} span={card.width}>
-              <div style={card.style}>
+              <div style={_style}>
                 {val ? <Tooltip title={val}>
                   <div className={'ant-mk-text line' + (card.height || '')} style={{height: card.innerHeight}}>{icon}</div>
                 </Tooltip> : <div className={'ant-mk-text line' + (card.height || '')} style={{height: card.innerHeight}}>{icon}</div>}
@@ -662,7 +673,7 @@
         } else {
           contents.push(
             <div className={'ant-col ant-col-' + card.width} key={card.uuid} style={_style_} span={card.width}>
-              <div style={card.style}>
+              <div style={_style}>
                 {val ? <Tooltip title={val}>
                   <MkIcon className="ant-mk-icon" style={{height: card.innerHeight}} type={icon}/>
                 </Tooltip> : <MkIcon className="ant-mk-icon" style={{height: card.innerHeight}} type={icon}/>}

--
Gitblit v1.8.0