From 347ca2d72cd044484e566056fb71ae3e0cdbfd19 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期二, 15 十一月 2022 11:21:51 +0800
Subject: [PATCH] 2022-11-15

---
 src/tabviews/custom/components/carousel/data-card/index.jsx |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/src/tabviews/custom/components/carousel/data-card/index.jsx b/src/tabviews/custom/components/carousel/data-card/index.jsx
index 90a5d5b..8829c61 100644
--- a/src/tabviews/custom/components/carousel/data-card/index.jsx
+++ b/src/tabviews/custom/components/carousel/data-card/index.jsx
@@ -88,8 +88,12 @@
       return item
     })
 
+    if (!_config.wrap.height) { // 鍏煎
+      _config.wrap.height = _config.style.height || '300px'
+      delete _config.style.height
+    }
+
     _card.style.height = _config.wrap.height
-    _config.style.height = 'auto'
 
     _config.wrap.speed = (_config.wrap.speed || 3) * 1000
 

--
Gitblit v1.8.0