fix:格式刷复制样式逻辑
This commit is contained in:
@@ -33,7 +33,7 @@ export class CommandAdapt {
|
|||||||
const painterStyleKeys = ['bold', 'color', 'font', 'size', 'italic', 'underline', 'strikeout']
|
const painterStyleKeys = ['bold', 'color', 'font', 'size', 'italic', 'underline', 'strikeout']
|
||||||
painterStyleKeys.forEach(p => {
|
painterStyleKeys.forEach(p => {
|
||||||
const key = p as keyof typeof ElementStyleKey
|
const key = p as keyof typeof ElementStyleKey
|
||||||
if (painterStyle[key] === undefined && s[key] !== undefined) {
|
if (painterStyle[key] === undefined) {
|
||||||
painterStyle[key] = s[key] as any
|
painterStyle[key] = s[key] as any
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user