Skip to content

Commit 119a611

Browse files
authored
Update 如何将univer-sheet的粘贴解析性能提升85.md
1 parent 02309f6 commit 119a611

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/_posts/如何将univer-sheet的粘贴解析性能提升85.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ PR 请求可以 [点此查看](https://github.com/dream-num/univer/pull/2631)。
4141

4242
## 解决方案
4343

44-
DOM 树是树结构,我们可以采用广度优先遍历的方式,将上层样式传递到下层节点模拟计算样式,来避免使用 `getComputedStyle`。节点样式是通过样式选择器的优先级,来确定最终的样式。了解这两个基础逻辑后,我们就可以开始编码了。
44+
DOM 树是树结构,我们可以采用深度优先遍历的方式,将上层样式传递到下层节点模拟计算样式,来避免使用 `getComputedStyle`。节点样式是通过样式选择器的优先级,来确定最终的样式。了解这两个基础逻辑后,我们就可以开始编码了。
4545

4646
### 解析 style 标签,将标签的样式存储在 Map 中
4747

@@ -112,4 +112,4 @@ export default function parseToDom(rawHtml: string) {
112112
## 参考阅读
113113

114114
- [Univer 架构](https://univer.ai/zh-CN/guides/sheet/architecture/univer)
115-
- [Chromium 渲染流水线——字节码到像素的一生](https://zhuanlan.zhihu.com/p/574069391)
115+
- [Chromium 渲染流水线——字节码到像素的一生](https://zhuanlan.zhihu.com/p/574069391)

0 commit comments

Comments
 (0)