junlas / SuperScrollView

Cocos Creator自定义组件: 高效滚动条,支持自动复用显示条目,支持超大数据

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

高效ScrollView组件

注意事项:

  1. ScrollView 对应的条目 Item Cell Prefab,其挂在的脚本名称,需要与其名称一致;
  2. Item Cell prefab挂载的脚本中,需要实现方法: updateView(index, data){};
  3. 重点: 对于自下而上的排列,需要手动设置content Node和Item Cell Node的 anchorY=0,同理,自左而右,设置anchorX = 0; 对于自上而下的排列,需要手动设置content Node和Item Cell Node的 anchorY=1,同理,自左而右,设置anchorX = 1;

About

Cocos Creator自定义组件: 高效滚动条,支持自动复用显示条目,支持超大数据


Languages

Language:JavaScript 51.2%Language:TypeScript 48.8%