fix:格式刷复制样式逻辑

This commit is contained in:
Hufe921
2021-11-16 21:28:08 +08:00
parent 7aa5dbbafe
commit 3e11c52aaf
+1 -1
View File
@@ -33,7 +33,7 @@ export class CommandAdapt {
const painterStyleKeys = ['bold', 'color', 'font', 'size', 'italic', 'underline', 'strikeout']
painterStyleKeys.forEach(p => {
const key = p as keyof typeof ElementStyleKey
if (painterStyle[key] === undefined && s[key] !== undefined) {
if (painterStyle[key] === undefined) {
painterStyle[key] = s[key] as any
}
})