From 1fa9bbd032749dc07f98d21b7403b041053d0bed Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期一, 25 三月 2024 10:29:19 +0800 Subject: [PATCH] 2024-03-25 --- src/menu/components/card/cardcellcomponent/formconfig.jsx | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/menu/components/card/cardcellcomponent/formconfig.jsx b/src/menu/components/card/cardcellcomponent/formconfig.jsx index 41265db..c9ca638 100644 --- a/src/menu/components/card/cardcellcomponent/formconfig.jsx +++ b/src/menu/components/card/cardcellcomponent/formconfig.jsx @@ -52,7 +52,7 @@ _options = [{ value: 'text', text: '鏂囨湰'}] } - let width = card.width || 12 + let width = card.width === undefined ? 12 : card.width if (/x/.test(card.width)) { width = +width.replace(/x/, '.5') } @@ -441,12 +441,12 @@ { type: 'number', key: 'width', - min: 0.5, + min: 0, max: 24, precision: 1, label: '鍏冪礌瀹藉害', initVal: width, - tooltip: '鏍呮牸甯冨眬锛屾瘡琛岀瓑鍒嗕负24鍒楋紝鍙缃崐鍒楀嵆.5銆�', + tooltip: '鏍呮牸甯冨眬锛屾瘡琛岀瓑鍒嗕负24鍒楋紝鍙缃崐鍒楀嵆.5銆傛敞锛氫负0鏃跺搴︿緷鎹唴瀹硅嚜閫傚簲锛堟枃鏈�佹暟鍊笺�佹彁绀猴紙鍥炬爣锛夈�佸綋鍓嶆椂闂淬�佸叕寮忥級銆�', required: true }, { -- Gitblit v1.8.0