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

wip: fix native template compat

Evan You 5 лет назад
Родитель
Сommit
ae0fb14305
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      packages/compiler-core/src/parse.ts

+ 1 - 1
packages/compiler-core/src/parse.ts

@@ -209,7 +209,7 @@ function parseChildren(
             !node.props.some(
               p =>
                 p.type === NodeTypes.DIRECTIVE &&
-                (p.name === 'if' || p.name === 'for' || p.name === 'slot')
+                isSpecialTemplateDirective(p.name)
             )
           ) {
             __DEV__ &&