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AC/B,0BAA0B;AAC1B,qCAAqC;AAGrC,gBAAgB;AAChB,0BAA0B;AAE1B,MAAM;AAEN,8BAA8B;AAC9B,4BAA4B;AAC5B,wFAAwF;AACxF,MAAM;AAEN,wGAAwG;AACxG,4CAA4C;AAC5C,gCAAgC;AAChC,SAAS;AAET,cAAc;AACd,2BAA2B;AAC3B,MAAM;AACN,IAAI;AAEJ,0BAA0B;AAE1B,IAAI;AAEJ,qBAAqB;AAErB,cAAc;AACd,qDAAqD;AAErD,cAAc;AACd,mBAAmB;AAEnB,QAAQ;AAER,8BAA8B;AAE9B,0BAA0B;AAC1B,0CAA0C;AAC1C,+BAA+B;AAC/B,0CAA0C;AAC1C,gDAAgD;AAChD,WAAW;AACX,MAAM;AAEN,IAAI","file":"","sourceRoot":"/","sourcesContent":["\n// import ViewBase from \"../../../common/classbase/ViewBase\";\n// import { UIManager } from \"../../../common/gameplay/managers/UIManager\";\n\n// const { ccclass, property } = cc._decorator;\n\n// export abstract class BaseCcComponent extends ViewBase implements BasePrefabNode {\n// getNode = () => super.node\n\n// registerEvent(action: \"onOpen\" | \"onClose\" | \"onShow\" | \"onHide\", handler: (target?: any) => void) {\n// throw new Error(\"Method not implemented.\");\n// }\n\n// abstract load()\n\n// }\n\n// export interface BasePrefabNode {\n\n// onLoad()\n// onOpen(param?: any)\n// onClose()\n// onShow()\n// onHide()\n\n// load()\n// getNode: () => cc.Node\n// registerEvent(action: \"onOpen\" | \"onClose\" | \"onShow\" | \"onHide\", handler: (target?: any) => void): void\n\n// }\n\n\n// //////////////////////////////////////////\n\n// export interface ListPrefabNode extends BasePrefabNode {\n\n// addItem(item: ListItem)\n// }\n\n\n// /**\n// * 一个List里有什么?\n// * * title\n// */\n// export class ListCcComponent extends BaseCcComponent implements ListPrefabNode {\n\n// static prefabPath = \"prefab/ui/list/ListView\";\n\n// @property({ type: cc.Layout })\n// private contentLayout?: cc.Layout = undefined;\n\n// private _loading = false;\n\n\n// load(){\n// let a: any = \"jjk\"\n// let b: string = a as string\n\n// }\n// addItem(item: ListItem){\n \n// }\n\n// onOpen(sceneId: number) {\n// super.onOpen();\n// this._loading = true;\n// // this.disposable.add(this._viewModel.LoadPlotList.on(this.loadChatBubbleList));\n// }\n\n// // loadChatBubbleList = async (plots: ((ReadonlyPlot & { selection?: number }) | \"history\")[]) => {\n// // this.scrollView!.scrollToBottom();\n// // this._loading = false;\n// // }\n\n// close() {\n// UIManager.popView();\n// }\n\n// }\n\n// /**\n// * ListItem <| --- ChatBubble, MessageEntry\n// * * 展示第一页: function initLoad(..)\n// * * 获取下一页并展示: function loadMore(..)\n// * * 操作某一个item(点击,拖放,点击特定区域): actions\n// * * initLoading: bool\n// * * loading: bool\n// * * data: []\n// * * items: ListItem[]\n// * * itemType: string\n// */\n// export default class List {\n\n// constructor(\n// data: any[],\n// itemType: string,\n// prefab: ListPrefabNode,\n// initLoading = true,\n// loading = false,\n// ) {\n// this._data = data;\n// this._itemType = itemType;\n// this._initLoading = initLoading;\n// this._loading = loading;\n// this._prefab = prefab\n// this.refresh()\n// }\n\n// private _loading: boolean;\n// private _initLoading: boolean;\n// private _itemType: string;\n// private _data: any[];\n// private _prefab: ListPrefabNode;\n\n\n// refresh() {\n// this._prefab.load()\n\n// }\n\n// onOpen(sceneId: number) {\n// this._loading = true;\n// // this.disposable.add(this._viewModel.LoadPlotList.on(this.loadChatBubbleList));\n// }\n\n// // loadChatBubbleList = async (plots: ((ReadonlyPlot & { selection?: number }) | \"history\")[]) => {\n// // this.scrollView!.scrollToBottom();\n// // this._loading = false;\n// // }\n\n// close() {\n// UIManager.popView();\n// }\n// }\n\n// export class ListItem {\n\n// }\n\n// class TestScript {\n\n// test1() {\n// //假设这里是某个入口点击后的command function(in xxxmanager)\n\n// //先去取数据\n// let data = [\n\n// ]\n\n// //取到数据后,创建view并灌入初始数据列表\n\n// //创建ListCcComponent\n// UIManager.pushView(ListCcComponent)\n// .then((component) => {\n// //新建List,绑定ListCcComponent,并初始化\n// new List(data, \"itemType\", component)\n// })\n// }\n\n// }"]}