WithdrawalNote.ts 575 B

1234567891011121314151617181920
  1. import { _decorator, Component, Node } from 'cc';
  2. import List from '../core/ui/virtualList/List';
  3. const { ccclass, property } = _decorator;
  4. @ccclass('WithdrawalNote')
  5. export class WithdrawalNote extends Component {
  6. @property({ tooltip: "任务列表", type: List }) list: List;
  7. private listData: [];
  8. start() {
  9. this.list.numItems = 100;
  10. }
  11. /**
  12. * 当列表项渲染
  13. */
  14. public onListRender(item: Node, index: number) {
  15. // item.getComponent(TaskItem).onDataChange(this.listData[index], this.targetNode, this.effectNode);
  16. }
  17. }