From 8af9239a012c442c5075b420b0ba4ce77e4d4fc3 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期三, 22 六月 2022 00:17:42 +0800 Subject: [PATCH] 2022-06-22 --- src/tabviews/custom/index.jsx | 3 ++- src/templates/modalconfig/dragelement/card.jsx | 1 + src/templates/modalconfig/dragelement/index.scss | 5 +++++ 3 files changed, 8 insertions(+), 1 deletions(-) diff --git a/src/tabviews/custom/index.jsx b/src/tabviews/custom/index.jsx index 1273078..814d63c 100644 --- a/src/tabviews/custom/index.jsx +++ b/src/tabviews/custom/index.jsx @@ -853,7 +853,8 @@ item.submit.$menuId = item.uuid } } else if (item.type === 'form') { - item.subcards = item.subcards.map(group => { + item.subcards = item.subcards.map((group, i) => { + group.sort = i + 1 group.subButton.uuid = group.uuid group.subButton.$menuId = group.uuid // group.subButton.$forbid = true // 涓嶅0鏄庢暟鎹簮鍙橀噺 diff --git a/src/templates/modalconfig/dragelement/card.jsx b/src/templates/modalconfig/dragelement/card.jsx index ad0d358..9b9de6b 100644 --- a/src/templates/modalconfig/dragelement/card.jsx +++ b/src/templates/modalconfig/dragelement/card.jsx @@ -148,6 +148,7 @@ if (card.type === 'brafteditor' && card.hidelabel === 'true') { _label = null } else if (card.type === 'hint' && !card.label) { + className += ' no-label' _label = ' ' } diff --git a/src/templates/modalconfig/dragelement/index.scss b/src/templates/modalconfig/dragelement/index.scss index 50b59b2..5310c29 100644 --- a/src/templates/modalconfig/dragelement/index.scss +++ b/src/templates/modalconfig/dragelement/index.scss @@ -136,4 +136,9 @@ width: 100%!important; } } + .no-label { + .ant-form-item-label { + display: none; + } + } } \ No newline at end of file -- Gitblit v1.8.0