Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
getValue(item) {
if (utils.isNull(item)) {
return null;
}
if (this.type == 'key') {
return this.cascaderObj[item];
} else {
return utils.getValue(item, this.param);
}
},
dispose() {
getValue(item) {
if (utils.isNull(item)) {
return null;
}
if (this.type == 'key') {
return this.categoryObj[item];
} else {
return utils.getValue(item, this.param);
}
},
dispose() {
getValue(item) {
if (!utils.isObject(item) && this.type == 'object') {
return utils.getValue({
[this.param.titleName]: item
}, this.param);
} else {
return utils.getValue(item, this.param);
}
},
focus(event) {
getValue(item) {
if (utils.isNull(item)) {
return null;
}
if (this.type == 'key') {
return this.categoryObj[item];
} else {
return utils.getValue(item, this.param);
}
},
getShow(data) {
getValue(item) {
if (!utils.isObject(item) && this.type == 'object') {
return utils.getValue({
[this.param.titleName]: item
}, this.param);
} else {
return utils.getValue(item, this.param);
}
},
focus(event) {