Uniapp applet Flex layout V-for 4 column show

Note: The image resources of this project come from the back-end interface, so v-for is used.

Keywords: uniapp applet flex layout v-for 4-column display adaptive

share picture

< view style="display: flex; flex-direction: row;flex-wrap: wrap;margin: 0 5%;">

  <view style="width: 25%;margin-bottom: 16upx;" v-for ='(items,indexs) in item.tags' :key ='indexs'>
    <view >
      <image :src="items.imageUrl" style="width: 40px;height: 40px;margin: 0 25%;" >image>
      <view style="text-align: center;font-size: 10px;font-family: Arial;">
        {{items.name}}
      view>
    view>
  view>
view>

<view style="display: flex; flex- direction: row;flex-wrap: wrap;margin: 0 5%;">

  <view style="width: 25%;margin-bottom: 16upx;" v-for ='(items,indexs) in item.tags' :key ='indexs'>
    <view >
      <image :src="items.imageUrl" style="width: 40px;height: 40px;margin: 0 25%;" >image>
      <view style="text-align: center;font-size: 10px;font-family: Arial;">
        {{items.name}}
      view>
    view>
  view>
view>

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 5888 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.