fix: 富文本设置失效(#58)

This commit is contained in:
pipipi-pikachu 2021-07-16 09:49:07 +08:00
parent 8a5c238b81
commit b59aa88e4b

View File

@ -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 })
}