MyInvite.ts 565 B

123456789101112131415
  1. import TableView from "../../component/TableView";
  2. const { ccclass, property } = cc._decorator;
  3. @ccclass
  4. export default class MyInvite extends cc.Component {
  5. @property({type: cc.ScrollView, displayName: '滚动视图'})
  6. scroll_view: cc.ScrollView = null;
  7. start()
  8. {
  9. let list_data = [[{},{},{},{}], [{},{},{},{}], [{},{},{},{}], [{},{},{}],[{},{},{},{}],[{},{},{},{}],[{},{},{},{}],[{},{},{},{}],[{},{},{},{}],[{},{},{},{}],[{},{},{},{}],[{},{},{},{}]];
  10. this.scroll_view.node.emit('srollview-init', list_data);
  11. }
  12. }