34 lines
845 B
JavaScript
34 lines
845 B
JavaScript
|
|
"use strict";
|
||
|
|
cc._RF.push(module, '0bab6SC0WZDoZ0Q7+M8T27x', 'cmp.taskc.main.item');
|
||
|
|
// Scripts/mod/task/cmp/cmp.taskc.main.item.js
|
||
|
|
|
||
|
|
"use strict";
|
||
|
|
|
||
|
|
var SVCItem = require("nx.fx.sv.expand.item");
|
||
|
|
cc.Class({
|
||
|
|
"extends": SVCItem,
|
||
|
|
properties: {
|
||
|
|
nodContent: {
|
||
|
|
"default": null,
|
||
|
|
type: cc.Node
|
||
|
|
}
|
||
|
|
},
|
||
|
|
// 数据重置
|
||
|
|
rebind: function rebind(_idx, _data, _key) {
|
||
|
|
this._super(_idx, _data, _key);
|
||
|
|
},
|
||
|
|
setData: function setData() {
|
||
|
|
nx.gui.gocChildren(this.nodContent, "", this.mdata.task.length);
|
||
|
|
var cmp = nx.gui.getComponent(this.node.parent.parent.parent, "", "nx.fx.sv.expand");
|
||
|
|
if (cmp) {
|
||
|
|
cmp.initPlaceholder();
|
||
|
|
var content = cmp.bindSCV.content;
|
||
|
|
// let lay = content.getComponent( cc.Layout );
|
||
|
|
// if( lay ) {
|
||
|
|
// lay.updateLayout();
|
||
|
|
// }
|
||
|
|
}
|
||
|
|
}
|
||
|
|
});
|
||
|
|
|
||
|
|
cc._RF.pop();
|