From b69b5f6329ca5f87932436b7a6c1ddfc3377e10f Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期四, 16 五月 2024 10:56:41 +0800
Subject: [PATCH] 2024-05-16

---
 src/tabviews/custom/components/card/prop-card/index.jsx |   12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/src/tabviews/custom/components/card/prop-card/index.jsx b/src/tabviews/custom/components/card/prop-card/index.jsx
index a7f4188..cda84d4 100644
--- a/src/tabviews/custom/components/card/prop-card/index.jsx
+++ b/src/tabviews/custom/components/card/prop-card/index.jsx
@@ -72,6 +72,14 @@
       this.loaded = true
     } else if (_config.wrap.datatype === 'static') {
       this.loaded = true
+      _config.subcards.forEach(card => {
+        card.elements.forEach(ele => {
+          if (ele.eleType === 'button') return
+          if (ele.datatype === 'dynamic' && ele.field) {
+            ele.field = ele.field.toLowerCase()
+          }
+        })
+      })
     }
 
     _data.$$BID = BID || ''
@@ -80,7 +88,7 @@
     if (_config.wrap.datatype === 'static' && BData) {
       Object.keys(BData).forEach(key => {
         if (/\$/.test(key)) return
-        _data[key] = BData[key]
+        _data[key.toLowerCase()] = BData[key]
       })
     }
 
@@ -506,7 +514,7 @@
       if (BData) {
         Object.keys(BData).forEach(key => {
           if (/\$/.test(key)) return
-          _data[key] = BData[key]
+          _data[key.toLowerCase()] = BData[key]
         })
       }
 

--
Gitblit v1.8.0