From 3fc643dea8f8c957a95a86d250b5d8b06fb740e1 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期四, 03 三月 2022 23:48:59 +0800
Subject: [PATCH] 2022-03-03

---
 src/tabviews/custom/components/table/edit-table/normalTable/cusSwitch/index.jsx |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/tabviews/custom/components/table/edit-table/normalTable/cusSwitch/index.jsx b/src/tabviews/custom/components/table/edit-table/normalTable/cusSwitch/index.jsx
index 88e4302..82fcb96 100644
--- a/src/tabviews/custom/components/table/edit-table/normalTable/cusSwitch/index.jsx
+++ b/src/tabviews/custom/components/table/edit-table/normalTable/cusSwitch/index.jsx
@@ -8,6 +8,7 @@
 class ColorSketch extends Component {
   static propTpyes = {
     defaultValue: PropTypes.any,
+    autoFocus: PropTypes.any,
     config: PropTypes.object,
     onChange: PropTypes.func
   }
@@ -36,10 +37,10 @@
   }
 
   render() {
-    const { config } = this.props
+    const { config, autoFocus } = this.props
     const { status } = this.state
     return (
-      <Switch checkedChildren={config.openText} autoFocus={true} onBlur={this.props.onBlur} unCheckedChildren={config.closeText} checked={status} onChange={this.changeStatus} />
+      <Switch checkedChildren={config.openText} autoFocus={autoFocus} onBlur={this.props.onBlur} unCheckedChildren={config.closeText} checked={status} onChange={this.changeStatus} />
     )
   }
 }

--
Gitblit v1.8.0