From 5f5f799e3ebcb559cc027ac17fa9c68a1a9117bf Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期五, 31 三月 2023 12:51:56 +0800
Subject: [PATCH] 2023-03-31

---
 src/menu/components/share/pasteforms/index.jsx |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/menu/components/share/pasteforms/index.jsx b/src/menu/components/share/pasteforms/index.jsx
index ff09638..6cf98a8 100644
--- a/src/menu/components/share/pasteforms/index.jsx
+++ b/src/menu/components/share/pasteforms/index.jsx
@@ -10,7 +10,7 @@
 
 const PasteForm = asyncComponent(() => import('@/templates/zshare/pasteform'))
 
-class PasteController extends Component {
+class PasteForms extends Component {
   static propTpyes = {
     config: PropTypes.object,        // 缁勪欢閰嶇疆
     update: PropTypes.func
@@ -26,6 +26,10 @@
     const { config } = this.props
 
     this.pasteFormRef.handleConfirm().then(res => {
+      if (res.copyType === 'search' && ['text', 'select', 'multiselect', 'link', 'checkcard', 'date', 'datemonth'].includes(res.type)) {
+        res.copyType = 'form'
+      }
+
       if (!['form', 'forms', 'formgroup', 'simpleform'].includes(res.copyType)) {
         notification.warning({ top: 92, message: '閰嶇疆淇℃伅鏍煎紡閿欒锛�', duration: 5 })
         return
@@ -171,4 +175,4 @@
   }
 }
 
-export default PasteController
\ No newline at end of file
+export default PasteForms
\ No newline at end of file

--
Gitblit v1.8.0