vue.js - vue: Wrong type check for prop -
my component has in data section:
photos: ['images/1.jpg','images/2.jpg']
in template (pug) :
... v-carousel v-carousel-item(v-for='(item,i) in photos',:key='i', :src='item')
it works ok got 2 warnings:
[vue warn]: invalid prop: type check failed prop "src". expected string, got number. found in --->
if
:src='item'
change
:src='item.tostring()'
there no warnings.
is vue or vuetify or error?
Comments
Post a Comment