From 0bc2586de8469756eb5896f885774fc96cc12e3b Mon Sep 17 00:00:00 2001 From: pipipi-pikachu Date: Tue, 8 Jun 2021 16:46:24 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A1=A8=E6=A0=BC=E9=80=89=E4=B8=AD?= =?UTF-8?q?=E5=8D=95=E5=85=83=E6=A0=BC=E5=90=8E=E5=A4=B1=E7=84=A6=E6=8A=A5?= =?UTF-8?q?=E9=94=99(#35)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/Editor/Toolbar/ElementStylePanel/TableStylePanel.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/Editor/Toolbar/ElementStylePanel/TableStylePanel.vue b/src/views/Editor/Toolbar/ElementStylePanel/TableStylePanel.vue index f91d9361..19f5b77f 100644 --- a/src/views/Editor/Toolbar/ElementStylePanel/TableStylePanel.vue +++ b/src/views/Editor/Toolbar/ElementStylePanel/TableStylePanel.vue @@ -260,7 +260,7 @@ export default defineComponent({ // 更新当前选中单元格的文本样式状态 const updateTextAttrState = () => { - if (!handleElement.value) return + if (!handleElement.value || handleElement.value.type !== 'table') return let rowIndex = 0 let colIndex = 0