(node: any, styleProperty: any)
| 448 | |
| 449 | // 移除特定样式 |
| 450 | export function checkAndRemoveStyle(node: any, styleProperty: any) { |
| 451 | // 1. 若节点存在样式且对应属性不为 undefined,则清空该属性 |
| 452 | if (node.style && node.style[styleProperty] !== undefined) { |
| 453 | node.style[styleProperty] = ''; |
| 454 | } |
| 455 | } |
| 456 | |
| 457 | // 移除截断样式 |
| 458 | export function smashTruncationStyle(node: any) { |
no outgoing calls
no test coverage detected