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/prop-card/index.jsx | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/tabviews/custom/components/carousel/prop-card/index.jsx b/src/tabviews/custom/components/carousel/prop-card/index.jsx index e547437..9b7b8d8 100644 --- a/src/tabviews/custom/components/carousel/prop-card/index.jsx +++ b/src/tabviews/custom/components/carousel/prop-card/index.jsx @@ -78,6 +78,11 @@ _cols.set(item.field, item) }) + if (!_config.wrap.height) { // 鍏煎 + _config.wrap.height = _config.style.height || '300px' + delete _config.style.height + } + _config.subcards.forEach(card => { card.style.height = _config.wrap.height if (card.setting.click) { @@ -90,8 +95,6 @@ return item }) }) - - _config.style.height = 'auto' _config.wrap.speed = (_config.wrap.speed || 3) * 1000 -- Gitblit v1.8.0