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AAC,MAAM,CAAC;4DAC0B;IARrC,oBAAoB;QADhC,OAAO;OACK,oBAAoB,CAoBhC;IAAD,2BAAC;KAAA;AApBY,oDAAoB","file":"","sourceRoot":"/","sourcesContent":["import { MessageEntryItemProps } from \"../type/MessageView\";\nimport { DummyLabel, DummyRichText, DummySprite } from \"../../../../common/CCDummyObjects\";\nimport { ListItemImpl } from \"../../baseview/impl/ListItemImpl\";\nimport { ResUtils } from \"../../../../common/utils/ResUtils\";\n\nconst { ccclass, property } = cc._decorator;\n\n@ccclass\nexport class MessageEntryItemImpl extends ListItemImpl<MessageEntryItemProps> {\n @property({ type: cc.Label })\n protected titleLabel: cc.Label = DummyLabel;\n\n @property({ type: cc.RichText })\n protected lastMsgLabel: cc.RichText = DummyRichText;\n\n @property(cc.Sprite)\n protected iconSprite: cc.Sprite = DummySprite;\n\n onLoad() {\n this.bindProp(\"title\", this.titleLabel, \"string\");\n this.bindProp(\"lastMsg\", this.lastMsgLabel, \"string\");\n this.bindProp(\"redDot\", this.node.getChildByName(\"RedDot\"), \"active\");\n this.bindProp(\"icons\", async (value) => {\n if (value.length == 1) {\n this.iconSprite.spriteFrame = await ResUtils.loadRes(value[0], cc.SpriteFrame);\n }\n });\n }\n}"]}