const { ccclass, property } = cc._decorator;

@ccclass
export default class TurnableItem extends cc.Component {
    @property(cc.Sprite)
    icon: cc.Sprite = null;
    @property(cc.Label)
    lbl_name: cc.Label = null;


    public async initData(data) {
        // let src = data.type;
        // this.icon.spriteFrame = await mk.loader.load(src, cc.SpriteFrame);
        this.lbl_name.string = data;
    }

}