vue自定义指令在.pug中编译报警告

Created on 27 Mar 2017  ·  3Comments  ·  Source: vuejs/vue

如果组件中使用的html模板语法是 .pug/.jade语法编译的时候 使用自定义指令出现如下警告

如定义一个 v-lazyLoad 的自定义指令
如果组件使用 正常的html模板 就是正常的

Most helpful comment

我也遇到这问题,官方demo那个v-focus都不行。
后来发现其他传参的指令就不报错
你可以尝试传个空值给它, div( v-lazyLoad=“” ),这样就没问题了

All 3 comments

Hello, your issue has been closed because it does not conform to our issue requirements. Please use the Issue Helper to create an issue - thank you!

我也遇到这问题,官方demo那个v-focus都不行。
后来发现其他传参的指令就不报错
你可以尝试传个空值给它, div( v-lazyLoad=“” ),这样就没问题了

感谢,我也遇到这个问题了,一直以为是组件的问题,。。。

Was this page helpful?
0 / 5 - 0 ratings

Related issues

franciscolourenco picture franciscolourenco  ·  3Comments

hiendv picture hiendv  ·  3Comments

Jokcy picture Jokcy  ·  3Comments

bfis picture bfis  ·  3Comments

aviggngyv picture aviggngyv  ·  3Comments