소스 검색

注释优化

薛鸿潇 5 년 전
부모
커밋
f05c252c0f
1개의 변경된 파일5개의 추가작업 그리고 2개의 파일을 삭제
  1. 5 2
      assets/script/game/component/TableView.ts

+ 5 - 2
assets/script/game/component/TableView.ts

@@ -4,17 +4,20 @@ const { ccclass, property } = cc._decorator;
 /** 动态加载的滚动列表
 /** 动态加载的滚动列表
  * - 滑动列表动态加载
  * - 滑动列表动态加载
  * - 支持多种类型预制体混合滚动 
  * - 支持多种类型预制体混合滚动 
+ * 
  * - item脚本需要有函数 setItemData 用于接收数据
  * - item脚本需要有函数 setItemData 用于接收数据
+ * 
  * - 多个prefab混合时,要为每条item指定 pfbType
  * - 多个prefab混合时,要为每条item指定 pfbType
+ * 
  * - item、content锚点y需要为1其他为0.5
  * - item、content锚点y需要为1其他为0.5
  * @author 薛鸿潇
  * @author 薛鸿潇
 */
 */
 @ccclass
 @ccclass
 export default class TableView extends cc.Component {
 export default class TableView extends cc.Component {
 
 
-    @property({ displayName: '预制条目', type: [cc.Prefab] })
+    @property({ displayName: '预制条目', tooltip: '脚本必须实现 setItemData 方法用于接收数据!', type: [cc.Prefab] })
     private pre_item: cc.Prefab[] = [];
     private pre_item: cc.Prefab[] = [];
-    @property({ displayName: '脚本名', type: [cc.String] })
+    @property({ displayName: '脚本名', tooltip: '脚本必须实现 setItemData 方法用于接收数据!', type: [cc.String] })
     private scr_item: string[] = [];
     private scr_item: string[] = [];
     /** 间距 */
     /** 间距 */
     @property({ displayName: '间距' })
     @property({ displayName: '间距' })