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

组件化时报错? #26

Open
tuiqu opened this issue Oct 12, 2016 · 6 comments
Open

组件化时报错? #26

tuiqu opened this issue Oct 12, 2016 · 6 comments

Comments

@tuiqu
Copy link

tuiqu commented Oct 12, 2016

<template>

    <swipe class="my-swipe">
        <swipe-item class="slide1"></swipe-item>
        <swipe-item class="slide2"></swipe-item>
        <swipe-item class="slide3"></swipe-item>
    </swipe>
</template>

<script>
require('vue-swipe/dist/vue-swipe.css');
// in ES6 modules
import { Swipe, SwipeItem } from 'vue-swipe';

export default {
  components: {
    'swipe': Swipe,
    'swipe-item': SwipeItem
  }
}
</script>

错误代码
[Vue warn]: You are using the runtime-only build of Vue where the template option is not available. Either pre-compile the templates into render functions, or use the compiler-included build. (found in component <mt-swipe>)

@zjhiphop
Copy link

遇到相同的问题, 求解

1 similar comment
@yuedou
Copy link

yuedou commented Oct 20, 2016

遇到相同的问题, 求解

@huysh3
Copy link

huysh3 commented Nov 30, 2016

+1

1 similar comment
@tolerious
Copy link

+1

@danielmlc
Copy link

我也是,最后直接把vue文件拿到项目中直接引用了

@UCASfed
Copy link

UCASfed commented Apr 17, 2017

+1

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

7 participants