From 3cca19f42bfc1eb99e16e94dc9e89e3f973bc4a6 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期二, 13 九月 2022 09:21:04 +0800
Subject: [PATCH] 2022-09-13

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

diff --git a/src/tabviews/custom/components/card/cardcellList/index.jsx b/src/tabviews/custom/components/card/cardcellList/index.jsx
index 9c9e2c4..ffe27b5 100644
--- a/src/tabviews/custom/components/card/cardcellList/index.jsx
+++ b/src/tabviews/custom/components/card/cardcellList/index.jsx
@@ -338,8 +338,21 @@
           } else {
             val = <span>{card.prefix || ''}{val}{card.postfix || ''}</span>
           }
+
           if (card.copyable === 'true') {
-            val = <Paragraph copyable={{ text: orival }}>{val}</Paragraph>
+            if (card.link || (card.anchors && card.anchors.length > 0)) {
+              let url = orival
+
+              if (card.link === 'static') {
+                url = card.linkurl
+              } else if (card.link === 'dynamic') {
+                url = data[card.linkurl]
+              }
+
+              val = <span>{val}<Paragraph style={{display: 'inline-block'}} onClick={(e) => e.stopPropagation()} copyable={{ text: url }}></Paragraph></span>
+            } else {
+              val = <Paragraph copyable={{ text: orival }}>{val}</Paragraph>
+            }
           }
         }
   

--
Gitblit v1.8.0