开发者社区> 问答> 正文

SaltUI的scroller问题



这个要怎么用?依照demo里贴的代码没作用。
这个是不是在一个高度区域里能上下滑动。类似div内滑动效果?
     < Scroller   ref ="sc" click ={ true} mouseWheel ={ true} className ="t-H128" >
         < Group.Head >{ "scroll测试"} </ Group.Head >
         < Group.List >
             < div className ="t-LH30 t-PL10" >aa </ div >
             < div className ="t-LH30 t-PL10" >aa </ div >
             < div className ="t-LH30 t-PL10" >aa </ div >
             < div className ="t-LH30 t-PL10" >aa </ div >
             < div className ="t-LH30 t-PL10" >aa </ div >
             < div className ="t-LH30 t-PL10" >aa </ div >
             < div className ="t-LH30 t-PL10" >aa </ div >
             < div className ="t-LH30 t-PL10" >aa </ div >
             < div className ="t-LH30 t-PL10" >aa </ div >
             < div className ="t-LH30 t-PL10" >aa </ div >
             < div className ="t-LH30 t-PL10" >aa </ div >
             < div className ="t-LH30 t-PL10" >aa </ div >
             < div className ="t-LH30 t-PL10" >aa </ div >
             < div className ="t-LH30 t-PL10" >aa </ div >
             < div className ="t-LH30 t-PL10" >aa </ div >
             < div className ="t-LH30 t-PL10" >aa </ div >
             < div className ="t-LH30 t-PL10" >aa </ div >
         </ Group.List >
     </ Scroller >
     < Group.List itemIndent ={[ 10, 10]} >
         < HBox vAlign ="center" className ='t-H64 t-BCf' >
             < Box >
                 < img src ='/images/free.png' />
             </ Box >
             < HBox flex ={ 1} >

                 < Box >
                     < p className ='t-H32 t-LH44 t-FS16 t-FAL' >{ Global. LogonInfo.corpName}
                     </ p >
                     < p className ='t-H32 t-FS12 t-FAL t-PT4' >免费版 </ p >
                 </ Box >
             </ HBox >
             < Box >
                 < span className ='demo-t-list-arrow' >< Button type ="primary" className ="t-P4" size ="small" >升级VIP版 </ Button ></ span >
             </ Box >
         </ HBox >
     </ Group.List >

展开
收起
stwflyfox 2016-09-11 10:38:21 3295 0
1 条回答
写回答
取消 提交回答
  • ReSaltUI的scroller问题
    这个是对iscroll的一个封装,你可以去查查iscroll的用法,我最近也在用saltUI,基本都测过了,都能用。
    2016-09-12 09:02:38
    赞同 展开评论 打赏
问答地址:
问答排行榜
最热
最新

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载