From bd38da01db1897b61a54148232a21b0e79b5c129 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Wed, 28 Sep 2022 15:18:43 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E4=BC=98=E5=8C=96=E5=AD=97?= =?UTF-8?q?=E4=BD=93=E5=A4=A7=E5=B0=8F=E9=99=90=E5=88=B6=EF=BC=8C=E9=98=B2?= =?UTF-8?q?=E6=AD=A2=E8=BF=87=E6=BB=A4=E7=BB=84=E4=BB=B6=E6=A0=87=E9=A2=98?= =?UTF-8?q?=E8=A2=AB=E9=9A=90=E8=97=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/canvas/utils/style.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frontend/src/components/canvas/utils/style.js b/frontend/src/components/canvas/utils/style.js index 116d37ba14..35fafa9bff 100644 --- a/frontend/src/components/canvas/utils/style.js +++ b/frontend/src/components/canvas/utils/style.js @@ -35,6 +35,9 @@ export function getStyle(style, filter = []) { if (key === 'backgroundColor') { result[key] = colorRgb(style[key], style.opacity) } + if(key=== 'fontSize' && result[key] < 12){ + result[key] = 12 + } if (needUnit.includes(key)) { result[key] += 'px' }