Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

我的v-tap指令不能识别,vue2.0 #33

Closed
summer-yyyn opened this issue Mar 14, 2017 · 4 comments
Closed

我的v-tap指令不能识别,vue2.0 #33

summer-yyyn opened this issue Mar 14, 2017 · 4 comments

Comments

@summer-yyyn
Copy link

[Vue warn]: Failed to resolve directive: tap
(found in anonymous component - use the "name" option for better debugging messages.)

@MeCKodo
Copy link
Owner

MeCKodo commented Mar 14, 2017

你组件没搞好吧。。

@MeCKodo MeCKodo closed this as completed Mar 14, 2017
@summer-yyyn
Copy link
Author

main.js:

import vuetap from 'v-tap';

Vue.use(VueAxios, axios, vuetap);

组件里面:

添加新地址
我是照着你的文档写的呀,搞了一上午了,求指导~~~

@summer-yyyn
Copy link
Author

<div class="btn" v-tap="{methods : addNewAddress}" v-show="hasaddress">添加新地址</div>

@MeCKodo
Copy link
Owner

MeCKodo commented Mar 15, 2017

这样也具体不知道是什么问题。。vue2.0绝对可以用,我自己都用

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants