【发布时间】:2018-04-02 15:59:08
【问题描述】:
我使用来自https://vuetifyjs.com/en/components/carousels的轮播组件
<section v-show="artistImagesList.length > 0">
<v-carousel>
<v-carousel-item v-for="(nextArtistImage,i) in artistImagesList" :src="nextArtistImage.image_url" :key="nextArtistImage.id" :alt="nextArtistImage.image_url">
<div class="carousel_image_title">{{ concatStr(nextArtistImage.description, 100) }}</div>
</v-carousel-item>
</v-carousel>
</section>
使用它我需要更多选项来控制一些图像,例如
1) 如果图像的宽度/高度太大,我想显示具有轮播大小比例的图像。有可能吗?
2) 如何设置图像区域的最大宽度/高度?
3) 当我以秒间隔默认打开页面时,我看到空的轮播区域,并且仅在间隔默认秒后打开第一张图像。 我设置了有效的图像列表,没有空元素。但看起来一开始打开了一些空图像。
它是某个库的包装器吗?我可以访问它的选项吗?请参考示例如何制作...
使用的包
vue.js2.5.7
vuetify,1.0.8
【问题讨论】:
-
您是否使用 axios 从 api 加载图像?