inleft
2022-03-03 dc66ec6f3c3ae560bdcbb5e0a1790b27228205e8
src/components/mini/box-new-article.vue
@@ -3,7 +3,7 @@
      <div class="recent-posts" id="recent-posts">
         <div class="recent-post-item">
            <div class="miniTag" v-if="isTop==1">置顶</div>
            <div class="post_cover left_radius" v-if="id%2==0">
            <div class="post_cover left_radius" v-if="index%2==0">
               <router-link :to="{path:'/mdDetail',query:{id:id}}" :title="title">
                  <div class="block left_radius"></div>
                  <img class="post_bg" :src="coverFileURL" :onerror="img404" :alt="title">
@@ -35,7 +35,8 @@
                  <span class="article-meta__separator" style="margin: 0px 3px ;"> | </span>
                  <span class="article-meta">
                     <a-icon type="book" />
                     <router-link :to="{path:'/mdDetail',query:{id:id}}" class="article-meta__categories">
                     <router-link :to="{path:'/articleList',query:{typeId:articleTypeId}}"
                        class="article-meta__categories">
                        {{articleTypeName}}
                     </router-link>
                     <!-- <a class="article-meta__categories" href="#"> {{tag}}</a> -->
@@ -53,8 +54,14 @@
<script>
   export default {
      props: {
         "index": {
            default: 0,
         },
         "id": {
            default: 0,
         },
         "articleTypeId": {
            default: null
         },
         "isTop": {
            default: 0,
@@ -102,6 +109,10 @@
   .recent-post-item {
      position: relative;
      a {
         position: initial;
      }
   }
   .miniTag {
@@ -196,9 +207,10 @@
   }
   #recent-posts>.recent-post-item .post_cover {
      width: 33%;
      position: sticky;
      // position: sticky;
      position: inherit;
      width: 33%;
      opacity: .8;
      padding: calc(1.2rem * @ahzoo-proportion) calc(0.2rem * @ahzoo-proportion);
      overflow: hidden;