From 642b103206a54923a460ee36550f275b22d6f09c Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期六, 11 三月 2023 17:03:02 +0800
Subject: [PATCH] 2023-03-11

---
 src/menu/components/share/actioncomponent/actionform/index.jsx |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/menu/components/share/actioncomponent/actionform/index.jsx b/src/menu/components/share/actioncomponent/actionform/index.jsx
index 740b4a2..30473b8 100644
--- a/src/menu/components/share/actioncomponent/actionform/index.jsx
+++ b/src/menu/components/share/actioncomponent/actionform/index.jsx
@@ -243,6 +243,8 @@
 
       if (this.record.formType === 'switch') {
         shows.push('field', 'size', 'openVal', 'closeVal', 'openText', 'closeText')
+      } else if (this.record.formType === 'counter') {
+        shows.push('field', 'size', 'min', 'max', 'decimal')
       } else if (this.record.formType === 'radio') {
         shows.push('field', 'checkType', 'openVal', 'closeVal')
       } else {
@@ -799,6 +801,7 @@
 
         content = <Input placeholder="" autoComplete="off" onPressEnter={this.handleSubmit} />
       } else if (item.type === 'number') {
+        initVal = item.initVal || item.initVal === 0 ? item.initVal : ''
         rules = [
           { required: item.required, message: '璇疯緭鍏�' + item.label + '!' }
         ]

--
Gitblit v1.8.0