From 61ab22d7b6be46c00e8813b00b2352a52cc252f3 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期三, 01 二月 2023 15:43:35 +0800
Subject: [PATCH] 2023-02-01

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

diff --git a/src/tabviews/custom/components/card/balcony/index.jsx b/src/tabviews/custom/components/card/balcony/index.jsx
index 3d878f8..6283141 100644
--- a/src/tabviews/custom/components/card/balcony/index.jsx
+++ b/src/tabviews/custom/components/card/balcony/index.jsx
@@ -407,9 +407,14 @@
     const { config, loading, data, show, syncConfig, syncData, checked } = this.state
 
     if (config.wrap.empty === 'hidden' && (!data || data.$$empty)) return null
+
+    let style = {...config.style}
+    if (config.wrap.bgField) {
+      style.backgroundImage = `url('${data[config.wrap.bgField] || ''}')`
+    }
     
     return (
-      <div className={'custom-balcony-box' + (!show ? ' hidden' : '')} id={'anchor' + config.uuid} style={config.style} onClick={this.triggerButton}>
+      <div className={'custom-balcony-box' + (!show ? ' hidden' : '')} id={'anchor' + config.uuid} style={style} onClick={this.triggerButton}>
         {loading ?
           <div className="loading-mask" onClick={(e) => e.stopPropagation()}>
             <div className="ant-spin-blur"></div>

--
Gitblit v1.8.0