From e35e2d2e9956803b4ec5356395b02a6484441b4f Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期四, 20 二月 2025 16:58:41 +0800
Subject: [PATCH] 2025-02-20

---
 src/menu/components/group/normal-group/index.jsx |   17 ++++++++++++++---
 1 files changed, 14 insertions(+), 3 deletions(-)

diff --git a/src/menu/components/group/normal-group/index.jsx b/src/menu/components/group/normal-group/index.jsx
index aa41f27..dee11cf 100644
--- a/src/menu/components/group/normal-group/index.jsx
+++ b/src/menu/components/group/normal-group/index.jsx
@@ -116,9 +116,20 @@
   }
 
   getWrapForms = () => {
-    const { setting } = this.state.group
+    const { group } = this.state
 
-    return getSettingForm(setting)
+    let list = []
+    group.components.forEach(item => {
+      if (item.type === 'card' && item.subtype === 'propcard') {
+        list.push({
+          value: item.uuid,
+          label: item.name,
+          disabled: item.wrap.empty !== 'hidden'
+        })
+      }
+    })
+
+    return getSettingForm(group.setting, list)
   }
 
   updateWrap = (res) => {
@@ -175,7 +186,7 @@
         <NormalHeader hideSearch="true" config={group} updateComponent={this.updateComponent}/>
         <Popover overlayClassName="mk-popover-control-wrap" mouseLeaveDelay={0.2} mouseEnterDelay={0.2} content={
           <div className="mk-popover-control">
-            <NormalForm title="鍒嗙粍璁剧疆" width={700} update={this.updateWrap} getForms={this.getWrapForms}>
+            <NormalForm title="鍒嗙粍璁剧疆" width={800} update={this.updateWrap} getForms={this.getWrapForms}>
               <EditOutlined style={{color: '#1890ff'}} title="缂栬緫"/>
             </NormalForm>
             <CopyComponent type="group" card={group}/>

--
Gitblit v1.8.0