yuche / vue-strap

Bootstrap components built with Vue.js
http://yuche.github.io/vue-strap/
MIT License
4.71k stars 932 forks source link

glyphicon not show in carousel #308

Open zchrissirhcz opened 8 years ago

zchrissirhcz commented 8 years ago

my <script></script>:

import {carousel, slider} from 'vue-strap/dist/vue-strap.min'
export default {
  components:{
    'carousel':carousel,
    'slider':slider
  }
}

my <template></template>

<template>
  <div class="lunbo">
    <carousel>
      <slider>
        <img src="http://placehold.it/1200x400?text=one">
        <div class="carousel-caption">
          ...
        </div>
      </slider>
      <slider>
        <img src="http://placehold.it/1200x400?text=two">
      </slider>
      <slider>
        <img src="http://placehold.it/1200x400?text=three">
      </slider>
    </carousel>
  </div>      
</template>    

the running result: image

which is different than the documentation's demo: image

wffranco commented 8 years ago

not sure but test using it that way:

import {carousel, slider} from 'vue-strap'
SamWongg commented 7 years ago

using the same way. but get warn: 'The computed property "show" is already defined in data.'

and the picture can't play automatically

shaoxiong789 commented 7 years ago

Slider.vue里面计算属性的show和data里面的show重复。。。严重bug

SamWongg commented 7 years ago

@shaoxiong789 嗯嗯刚仔细翻了下发现了 所以这个导致了没办法自动轮播吗。