vue-swipe icon indicating copy to clipboard operation
vue-swipe copied to clipboard

组件化时报错?

Open tuiqu opened this issue 8 years ago • 6 comments

<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>)

tuiqu avatar Oct 12 '16 08:10 tuiqu

遇到相同的问题, 求解

zjhiphop avatar Oct 13 '16 09:10 zjhiphop

遇到相同的问题, 求解

yuedou avatar Oct 20 '16 03:10 yuedou

+1

huysh3 avatar Nov 30 '16 10:11 huysh3

+1

tolerious avatar Nov 30 '16 13:11 tolerious

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

danielmlc avatar Dec 28 '16 06:12 danielmlc

+1

UCASfed avatar Apr 17 '17 08:04 UCASfed