Просмотр исходного кода

fix(runtime-core): add `v-memo` to built-in directives check (#4787)

C.Y.Kun 4 лет назад
Родитель
Сommit
5eb72630a5
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      packages/runtime-core/src/directives.ts

+ 1 - 1
packages/runtime-core/src/directives.ts

@@ -64,7 +64,7 @@ export type Directive<T = any, V = any> =
 export type DirectiveModifiers = Record<string, boolean>
 
 const isBuiltInDirective = /*#__PURE__*/ makeMap(
-  'bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text'
+  'bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo'
 )
 
 export function validateDirectiveName(name: string) {