From b59aa88e4b2c4045cf636fb046a168461e4c7850 Mon Sep 17 00:00:00 2001 From: pipipi-pikachu Date: Fri, 16 Jul 2021 09:49:07 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=AF=8C=E6=96=87=E6=9C=AC=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=E5=A4=B1=E6=95=88=EF=BC=88#58=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/Editor/Toolbar/ElementStylePanel/TextStylePanel.vue | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/views/Editor/Toolbar/ElementStylePanel/TextStylePanel.vue b/src/views/Editor/Toolbar/ElementStylePanel/TextStylePanel.vue index cd443de2..c57ca060 100644 --- a/src/views/Editor/Toolbar/ElementStylePanel/TextStylePanel.vue +++ b/src/views/Editor/Toolbar/ElementStylePanel/TextStylePanel.vue @@ -338,8 +338,7 @@ export default defineComponent({ const wordSpaceOptions = [0, 1, 2, 3, 4, 5, 6, 8, 10] // 发射富文本设置命令 - const emitRichTextCommand = (payload: RichTextCommand) => { - const { command, value } = payload + const emitRichTextCommand = (command: string, value?: string) => { emitter.emit(EmitterEvents.RICH_TEXT_COMMAND, { command, value }) }