How can I set the images like the link image below in vuetify?

こ雲淡風輕ζ 提交于 2021-01-20 09:32:05

问题


I want to quantify my v-img like the one you see in the image below.

Is there a way to make something like the image you see with vuetify's v-img.

 <div class="row">
      <v-img style="margin:2px" max-height="301" max-width="380"
      :key="index" v-for="(image, index) in post.userPostImg" 

      :src="$store.state.baseURL + '/news/' + image"> </v-img>
    </div>

回答1:


Create two rows with no-gutters prop, the first one contains one image and the other one contains three columns that conain the 3 images :

  <v-row no-gutters>
      <v-col cols="12">
        <v-img :src="`https://picsum.photos/500/300?image=51`" aspect-ratio="1">

        </v-img>
      </v-col>
    </v-row>
    <v-row no-gutters>
      <v-col cols="4">
        <v-img :src="`https://picsum.photos/500/300?image=52`" aspect-ratio="1">

        </v-img>
      </v-col>
      <v-col cols="4">
        <v-img :src="`https://picsum.photos/500/300?image=53`" aspect-ratio="1">

        </v-img>

      </v-col>
      <v-col cols="4">
        <v-img :src="`https://picsum.photos/500/300?image=54`" aspect-ratio="1">

        </v-img>

      </v-col>

    </v-row>

LIVE DEMO



来源:https://stackoverflow.com/questions/65241083/how-can-i-set-the-images-like-the-link-image-below-in-vuetify

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!