From 91e232bb0b910f3670bdbccd65cc218d55e1eda9 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期二, 06 十二月 2022 16:08:20 +0800 Subject: [PATCH] Merge branch 'develop' --- src/menu/components/carousel/data-card/options.jsx | 23 ++++++++++++++++++++++- 1 files changed, 22 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..a29facc 100644 --- a/src/menu/components/carousel/data-card/options.jsx +++ b/src/menu/components/carousel/data-card/options.jsx @@ -18,6 +18,13 @@ const cardWrapForm = [ { type: 'text', + field: 'title', + label: '鏍囬', + initval: wrap.title || '', + required: false + }, + { + type: 'text', field: 'name', label: '缁勪欢鍚嶇О', initval: wrap.name || '', @@ -64,6 +71,7 @@ controlFields: [ {field: 'modalWidth', values: ['modal']}, {field: 'modalContent', values: ['modal']}, + {field: 'code', values: ['modal']}, ] }, { @@ -91,7 +99,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