Skip to content
Discussion options

You must be logged in to vote

在trae里面依赖AI搞了个“type3” 🥲,本来打算实现一个近似于Instagram的post,没有代码基础无法下手

    else if type == 3
      .insta-post-list
        each item, index in i.album_list
          .insta-post
            .insta-media
              if item.image || item.video
                .swiper-container
                  .swiper-wrapper
                    if item.image
                      each imgSrc in item.image
                        .swiper-slide
                          a(href=imgSrc, data-fancybox="insta" + index)
                            img(src=imgSrc, alt=item.content)
                    if item.video
                      each v in item.video
                        .swiper-slide
                        …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@9thChasingWindGirl
Comment options

Answer selected by 9thChasingWindGirl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant