From 0b8381328068394891541b6e3824f9afb2cc9fa1 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期二, 04 七月 2023 13:53:33 +0800
Subject: [PATCH] 2023-07-04

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

diff --git a/src/tabviews/custom/components/card/balcony/index.jsx b/src/tabviews/custom/components/card/balcony/index.jsx
index 119c77e..78d631f 100644
--- a/src/tabviews/custom/components/card/balcony/index.jsx
+++ b/src/tabviews/custom/components/card/balcony/index.jsx
@@ -84,21 +84,23 @@
       _data.$$uuid = _data[_config.setting.primaryKey] || ''
     }
 
-    if (_config.wrap.position === 'fixed' || _config.wrap.position === 'absolute') {
-      _config.style.position = _config.wrap.position
-      _config.style.zIndex = _config.wrap.position === 'fixed' ? 3 : 2
-      _config.style.left = _config.wrap.left || ''
-      _config.style.right = _config.wrap.right || ''
-      _config.style.top = _config.wrap.top || ''
-      _config.style.bottom = _config.wrap.bottom || ''
-      _config.style.transform = _config.wrap.transform || ''
-      _config.style.width = _config.wrap.realwidth || ''
-    } else {
-      _config.style.zIndex = 1
-      _config.style.left = _config.wrap.left || ''
-      _config.style.right = _config.wrap.right || ''
-      _config.style.top = _config.wrap.top || ''
-      _config.style.bottom = _config.wrap.bottom || ''
+    if (!_config.style.position) {
+      if (_config.wrap.position === 'fixed' || _config.wrap.position === 'absolute') {
+        _config.style.position = _config.wrap.position
+        _config.style.zIndex = _config.wrap.position === 'fixed' ? 3 : 2
+        _config.style.left = _config.wrap.left || ''
+        _config.style.right = _config.wrap.right || ''
+        _config.style.top = _config.wrap.top || ''
+        _config.style.bottom = _config.wrap.bottom || ''
+        _config.style.transform = _config.wrap.transform || ''
+        _config.style.width = _config.wrap.realwidth || ''
+      } else {
+        _config.style.zIndex = 1
+        _config.style.left = _config.wrap.left || ''
+        _config.style.right = _config.wrap.right || ''
+        _config.style.top = _config.wrap.top || ''
+        _config.style.bottom = _config.wrap.bottom || ''
+      }
     }
 
     let show = true

--
Gitblit v1.8.0