From 2a03640349b948f656451a84f205a0972abd8b95 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期三, 27 三月 2024 17:06:03 +0800
Subject: [PATCH] 2024-03-27

---
 src/menu/components/card/cardcellcomponent/elementform/index.jsx |   11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/src/menu/components/card/cardcellcomponent/elementform/index.jsx b/src/menu/components/card/cardcellcomponent/elementform/index.jsx
index f4f8214..38e819d 100644
--- a/src/menu/components/card/cardcellcomponent/elementform/index.jsx
+++ b/src/menu/components/card/cardcellcomponent/elementform/index.jsx
@@ -26,7 +26,7 @@
   barcode: ['eleType', 'datatype', 'width', 'barHeight', 'displayValue', 'interval', 'noValue'],
   qrcode: ['eleType', 'datatype', 'width', 'qrWidth', 'color', 'url', 'noValue'],
   currentDate: ['eleType', 'width', 'dateFormat', 'prefix', 'postfix', 'fixStyle'],
-  formula: ['eleType', 'width', 'height', 'prefix', 'postfix', 'eval', 'formula', 'noValue', 'fixStyle', 'alignItems'],
+  formula: ['eleType', 'width', 'height', 'eval', 'formula', 'noValue'],
   color: ['eleType', 'datatype', 'width', 'lenWidRadio', 'noValue', 'copyable'],
 }
 
@@ -211,8 +211,13 @@
       if (this.record.tipType === 'text') {
         _options.push('height')
       }
-    } else if (this.record.eleType === 'formula' && this.record.eval === 'true') {
-      _options.push('decimal')
+    } else if (this.record.eleType === 'formula') {
+      if (this.record.eval !== 'func') {
+        _options.push('prefix', 'postfix', 'fixStyle', 'alignItems')
+      }
+      if (this.record.eval === 'true') {
+        _options.push('decimal')
+      }
     }
     if (_options.includes('fixStyle') && this.record.fixStyle === 'alone') {
       _options.push('fixSize', 'fixColor', 'fixLeft', 'fixRight')

--
Gitblit v1.8.0