vue-design
vue-design copied to clipboard
📖 master分支:《渲染器》
我测试了数组[2,3,1,-1]得到的结果是[0,3]
最长递归子序列dome这块, 这个用例没通过[20, 8, 4, 12, 2, 1],按照大佬的思路实在没有想出来怎么处理,所以重写了一个。
域名过期了
rt
`渲染器的核心 Diff 算法`章节里面的很多图片都加载不出来了
Bumps [tar](https://github.com/npm/node-tar) from 4.4.2 to 4.4.19. Commits 9a6faa0 4.4.19 70ef812 drop dirCache for symlink on all platforms 3e35515 4.4.18 52b09e3 fix: prevent path escape using drive-relative paths bb93ba2 fix: reserve...
Bumps [path-parse](https://github.com/jbgutierrez/path-parse) from 1.0.5 to 1.0.7. Commits See full diff in compare view [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter...
vue hoc那边$slots里面的vnode是数组不是对象 ``` .map(vnode => { vnode.context = this._self return vnode }) ``` vnode是一个数组,改为⬇️ ``` .map(vnodes => { vnodes.forEach(vnode => (vnode.context = this._self)); return vnodes }) ```
这种情况下预期与得到不符。代码链接如下: https://codesandbox.io/s/patchchildren-keyed-double-end-add2-forked-fmecu?file=/src/index.js 未被处理的全新节点不应该插入到oldStartIdx索引所指向的节点之前,而是应该插入到newEndIdx + 1索引所指向的节点之前。修改后可得到预期效果。