chore: fix typo (#764) [ci skip]
This commit is contained in:
@@ -126,9 +126,9 @@ export function isStaticNode(
|
||||
return false
|
||||
}
|
||||
}
|
||||
// only svg/foeignObject could be block here, however if they are static
|
||||
// only svg/foreignObject could be block here, however if they are static
|
||||
// then they don't need to be blocks since there will be no nested
|
||||
// udpates.
|
||||
// updates.
|
||||
if (codegenNode.isBlock) {
|
||||
codegenNode.isBlock = false
|
||||
}
|
||||
|
||||
@@ -128,7 +128,7 @@ export interface RendererInternals<HostNode = any, HostElement = any> {
|
||||
c: ProcessTextOrCommentFn<HostNode, HostElement>
|
||||
}
|
||||
|
||||
// These functions are created inside a closure and therefore there types cannot
|
||||
// These functions are created inside a closure and therefore their types cannot
|
||||
// be directly exported. In order to avoid maintaining function signatures in
|
||||
// two places, we declare them once here and use them inside the closure.
|
||||
type PatchFn<HostNode, HostElement> = (
|
||||
@@ -651,7 +651,6 @@ function baseCreateRenderer<
|
||||
// generated by the compiler and can take the fast path.
|
||||
// in this path old node and new node are guaranteed to have the same shape
|
||||
// (i.e. at the exact same position in the source template)
|
||||
|
||||
if (patchFlag & PatchFlags.FULL_PROPS) {
|
||||
// element props contain dynamic keys, full diff needed
|
||||
patchProps(
|
||||
|
||||
@@ -55,7 +55,7 @@ export const enum PatchFlags {
|
||||
|
||||
// Indicates an element that only needs non-props patching, e.g. ref or
|
||||
// directives (onVnodeXXX hooks). since every patched vnode checks for refs
|
||||
// and onVnodeXXX hooks, itt simply marks the vnode so that a parent block
|
||||
// and onVnodeXXX hooks, it simply marks the vnode so that a parent block
|
||||
// will track it.
|
||||
NEED_PATCH = 1 << 9,
|
||||
|
||||
|
||||
Reference in New Issue
Block a user