You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by GitBox <gi...@apache.org> on 2019/01/18 07:08:00 UTC

[GitHub] julonglu opened a new issue #2063: slider-neighbor显示问题,0.16.0显示正常,升级0.20.0图片无法居中

julonglu opened a new issue #2063: slider-neighbor显示问题,0.16.0显示正常,升级0.20.0图片无法居中
URL: https://github.com/apache/incubator-weex/issues/2063
 
 
   在0.16.0显示正常
   在 [http://dotwe.org/vue](http://dotwe.org/vue) 中显示正常
   升级0.20.0后图片无法居中了
   代码如下
   `<template>
     <div>
           <slider-neighbor   class="slider" neighbor-scale="0.8" neighbor-space="40" current-item-scale="1" neighbor-alpha="0.8">
               <image class="img" resize="cover" v-for="item in imageList"  :src="item.src" ></image>
           </slider-neighbor>
     </div>
   </template>
   
   <style scoped>
   .slider{
       width: 750px;
       height: 848px;
   }
   
   .slider-indicator {
       width: 750px;
       height: 30px;
       position: absolute;
       bottom:60px;
       item-color: rgba(51, 51, 51, 0.5);
       item-selected-color: #fff;
       item-size: 15px;
   }
   
   .img {
       width: 468px;
       height: 848px;
       background-color: #eee;
   }
   
   </style>
   
   <script>
     export default {
       data () {
         return {
           imageList: [
             { src: 'https://gd2.alicdn.com/bao/uploaded/i2/T14H1LFwBcXXXXXXXX_!!0-item_pic.jpg'},
             { src: 'https://gd1.alicdn.com/bao/uploaded/i1/TB1PXJCJFXXXXciXFXXXXXXXXXX_!!0-item_pic.jpg'},
             { src: 'https://gd3.alicdn.com/bao/uploaded/i3/TB1x6hYLXXXXXazXVXXXXXXXXXX_!!0-item_pic.jpg'}
           ]
         }
       }
     }
   </script>`

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services