From 6c919b7a55f15af56b212d059f1a5ea44d1ed5b8 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期五, 04 十一月 2022 17:05:46 +0800
Subject: [PATCH] 2022-11-04

---
 src/menu/components/carousel/data-card/options.jsx |   16 +++++++++++++++-
 1 files changed, 15 insertions(+), 1 deletions(-)

diff --git a/src/menu/components/carousel/data-card/options.jsx b/src/menu/components/carousel/data-card/options.jsx
index ab1f16a..7af48df 100644
--- a/src/menu/components/carousel/data-card/options.jsx
+++ b/src/menu/components/carousel/data-card/options.jsx
@@ -64,6 +64,7 @@
       controlFields: [
         {field: 'modalWidth', values: ['modal']},
         {field: 'modalContent', values: ['modal']},
+        {field: 'code', values: ['modal']},
       ]
     },
     {
@@ -91,7 +92,20 @@
       label: '寮圭獥瀹藉害',
       initval: wrap.modalWidth || '300px',
       required: true,
-      options: ['px', 'vw']
+      options: ['px', 'vw'],
+      forbid: appType === 'mob'
+    },
+    {
+      type: 'text',
+      field: 'code',
+      label: '娑堟伅缂栫爜',
+      initval: wrap.code || '',
+      tooltip: '鐢ㄤ簬璁板綍娑堟伅鏄惁宸茶鐨勬爣璇嗭紝濡傛灉涓嶅悓椤甸潰涓瓨鍦ㄧ浉鍚屾秷鎭紝鍙寚瀹氬浐瀹氬�笺��',
+      required: false,
+      rules: [{
+        pattern: /^[0-9a-zA-Z_]*$/ig,
+        message: '鍙厑璁稿寘鍚暟瀛椼�佸瓧姣嶄互鍙奯銆�'
+      }]
     },
     {
       type: 'radio',

--
Gitblit v1.8.0