最近公司正式把移動端項目切到了weex開發(fā),有一個需求,要做一張報表,類似下圖:拖動時左邊第一欄和頂部第一欄固定在左邊和上邊,我嘗試了各種思路,都沒能達到效果,要么是橫向滑動是單行沒有整體,要么是豎排滑動問題,搞了一下午,搞不定,只好來請教一下!? <scroller? ? class="scroller" show-scrollbar="false">? ? <div class="flex-div">? ? ? <div style="background-color:orange;flex:2;">? ? ? ? <div class="row" v-for="title in titles" >? ? ? ? ? <text class="text" >{{title}}</text>? ? ? ? </div>? ? ? </div>? ? ? <scroller scroll-direction="horizontal"? style="background-color:white;flex:6.5;">? ? ? ? <div? v-for="(data,index) in datas">? ? ? ? ? ? ? <text>{{data.name}}</text>? ? ? ? ? ? ? <div v-for="ddd in titles" >? ? ? ? ? ? ? ? ? <text >{{data.score}} </text>? ? ? ? ? ? ? </div>? ? ? ? ? </div>? ? ? </scroller>? ? </div>? ? ?? ? ? ?? </scroller>最后代碼停留在這里了下午又試了試,還是不行,只能固定住一端,weex的列表只支持橫向里嵌縱向,或者縱向里嵌橫向,我試了半天要么固定住左邊要么固定住上邊,想不通想不通。。。求思路
weex怎么在一個縱向列表里嵌套一個橫向列表?
有只小跳蛙
2019-03-07 14:15:56