Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
initDatas(datas) {
let list = utils.copy(datas);
if (this.param.dataMode == 'list' && datas.length > 0) {
list = utils.generateTree(list, this.param);
}
let isWait = utils.isFunction(this.param.getDatas);
return this.initTreeModeData(list, null, isWait);
},
initTreeModeData(list, parentKey, isWait) {
initDatas(datas) {
let list = (datas = utils.copy(datas));
if (this.param.dataMode == 'list' && datas.length > 0) {
list = utils.generateTree(datas, this.param);
}
let isWait = utils.isFunction(this.param.getDatas);
return this.initTreeModeData(list, isWait);
},
initTreeModeData(list, isWait, parentKey) {
initDatas(datas) {
let list = utils.copy(datas);
if (this.param.dataMode == 'list' && datas.length > 0) {
list = utils.generateTree(list, this.param);
}
let isWait = utils.isFunction(this.param.getDatas);
return this.initTreeModeData(list, null, isWait);
},
initTreeModeData(list, parentKey, isWait) {
initDatas(datas) {
let list = utils.copy(datas);
if (this.param.dataMode == 'list' && datas.length > 0) {
list = utils.generateTree(list, this.param);
}
let isWait = utils.isFunction(this.param.getDatas);
this.categoryDatas = this.initTreeModeData(list, null, isWait, 0);
this.list = this.categoryDatas;
this.parse();
},
initTreeModeData(list, parentKey, isWait, level) {