|
|
@ -543,11 +543,10 @@ class Dataset {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
_getDataItems(obj, option) {
|
|
|
|
_getDataItems(obj, option) {
|
|
|
|
obj = obj || [];
|
|
|
|
let array = Array.isArray(obj) ? obj : null;
|
|
|
|
let array = Array.isArray(obj) ? [obj] : null;
|
|
|
|
|
|
|
|
if (!array && this.conf.dataGetter)
|
|
|
|
if (!array && this.conf.dataGetter)
|
|
|
|
array = this.conf.dataGetter(obj) || [];
|
|
|
|
array = this.conf.dataGetter(obj) || [];
|
|
|
|
array = array || [];
|
|
|
|
array = array || [obj];
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|
let array = Array.isArray(obj) ? obj : this.conf.dataGetter(obj) || [];
|
|
|
|
let array = Array.isArray(obj) ? obj : this.conf.dataGetter(obj) || [];
|
|
|
|
if (!Array.isArray(array))
|
|
|
|
if (!Array.isArray(array))
|
|
|
|