-
Notifications
You must be signed in to change notification settings - Fork 282
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
Failed to resolve directive: el (found in component <mt-swipe>) #25
Comments
+1 |
+1 |
+1 |
use vue@2.1.4 |
我自己解决了,版本的问题 sudo rm -rf node_modules |
很纳闷,按照@SidFeng的办法固定版本的确能解决问题。但是一开始我的swipe加载了,只是width的全值太低了被重置了。导致没有宽度无法显现,最后手动写入!important才解决 。不知道为什么 ~ |
+1 downgrading to vue@2.1.4 works, but this should work with latest stable build too |
"vue","vue-template-compiler"这两个库版本一样就行。 |
`require('vue-swipe/dist/vue-swipe.css')
import { Swipe, SwipeItem } from 'vue-swipe'
export default ({
components: {
'swipe': Swipe,
'swipe-item': SwipeItem
}
})`
<template> <swipe class="my-swipe"> <swipe-item class="slide1">Slide1</swipe-item> <swipe-item class="slide2">Slide2</swipe-item> <swipe-item class="slide3">Slide3</swipe-item> </swipe> </template>
This code use to work with versions of Vue 2.0
The text was updated successfully, but these errors were encountered: