MediaSeries

API

Attributes

NameDescriptionTypeDefault
gradientBackground背景颜色QTGradient{colors:['#1AFFFFFF','#1AFFFFFF'],orientation:6,cornerRadius:8}
gradientFocusBackground焦点状态背景颜色QTGradient{colors:['#FFFFFF','#FFFFFF'],orientation:6,cornerRadius:8}
iconGradientBackground图标背景颜色QTGradient{colors:['#FFB67827','#FFDBAF5C'],cornerRadius:4,orientation:6}
markColor角标颜色string#FF4E46
markVipColorVIP角标颜色string#FFD97C
textColors文字颜色QTStateListColor{color:'rgba(255, 255, 255, .5)',focusColor:'rgba(0, 0, 0, 1)',selectColor:'rgba(255, 255, 255, .5)'}
textVipColorsVIP文字颜色QTStateListColor{color:'#FFD97C',focusColor:'#B67827',selectColor:'#B67827'}'}
itemDivWidth选集条目的宽度number490
itemDivHeight选集条目的高度number100

Events

NameDescriptionType
item-focused选集条目焦点变化事件Function
item-click选集条目点击事件Function
load-data加载数据Function
group-item-focused选集分组条目焦点变化事件Function

Exposes

MethodDescriptionType
setup设置Function
setInitData设置初始化数据Function
setPageData设置页面数据Function
scrollTo滚动到指定位置Function
scrollToWithOffset滚动到指定位置并偏移Function
setSelected设置选中位置Function
setGroupSelected设置选中组位置Function
release回收Function

Source

Docs