From 6c16e43cd6521460c804391c042348dbb14086fc Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期二, 16 六月 2020 09:44:40 +0800
Subject: [PATCH] 2020-06-16

---
 src/tabviews/formtab/formgroup/index.jsx |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/tabviews/formtab/formgroup/index.jsx b/src/tabviews/formtab/formgroup/index.jsx
index 726eeee..96fef81 100644
--- a/src/tabviews/formtab/formgroup/index.jsx
+++ b/src/tabviews/formtab/formgroup/index.jsx
@@ -329,7 +329,7 @@
     let cols = 2
     if (this.props.setting && this.props.setting.cols) {
       cols = parseInt(this.props.setting.cols)
-      if (cols > 3 || cols < 1) {
+      if (cols > 4 || cols < 1) {
         cols = 2
       }
     }
@@ -571,7 +571,7 @@
         let _labelcol = cols !== 3 ? 8 / cols : 3
         let _wrapcol = cols !== 3 ? 16 + (cols - 1) * 4 : 21
         let _style = {}
-        if (cols === 2) {
+        if (cols === 2 || cols === 4) {
           _style.paddingLeft = '7px'
         }
         fields.push(

--
Gitblit v1.8.0