From f4b9504cad034ddcdef21c2081d14a4984fcd2d3 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期一, 15 七月 2024 17:14:48 +0800 Subject: [PATCH] 2024-07-15 --- src/menu/components/share/actioncomponent/formconfig.jsx | 31 ++++++++++++++++++------------- 1 files changed, 18 insertions(+), 13 deletions(-) diff --git a/src/menu/components/share/actioncomponent/formconfig.jsx b/src/menu/components/share/actioncomponent/formconfig.jsx index 3b176a2..5dc2f82 100644 --- a/src/menu/components/share/actioncomponent/formconfig.jsx +++ b/src/menu/components/share/actioncomponent/formconfig.jsx @@ -325,7 +325,7 @@ } let width = card.width || (card.width === 0 ? 0 : 12) - if (/x/.test(card.width)) { + if (card.width && /x/.test(card.width)) { width = +width.replace(/x/, '.5') } @@ -1818,6 +1818,11 @@ }) } + let width = card.width || (card.width === 0 ? 0 : 12) + if (card.width && /x/.test(card.width)) { + width = +width.replace(/x/, '.5') + } + let forms = [ { type: 'select', @@ -2339,18 +2344,18 @@ tooltip: '鍒嗕韩鏃跺鐢ㄦ埛鐨勬彁绀轰俊鎭��', required: false }, - // { - // type: 'number', - // key: 'width', - // min: 1, - // max: 24, - // precision: 0, - // label: '瀹藉害', - // initVal: card.width || 12, - // tooltip: '鏍呮牸甯冨眬锛屾瘡琛岀瓑鍒嗕负24鍒椼��', - // forbid: card.eleType !== 'button', - // required: true - // }, + { + type: 'number', + key: 'width', + min: 0, + max: 24, + precision: 1, + label: '瀹藉害', + initVal: width, + tooltip: '鏍呮牸甯冨眬锛屾瘡琛岀瓑鍒嗕负24鍒椼�備负 0 鏃跺搴﹁嚜閫傚簲銆傚彲璁剧疆鍗婂垪鍗�.5銆�', + forbid: position !== 'line', + required: true + }, { type: 'radio', key: 'show', -- Gitblit v1.8.0