This commit is contained in:
qimengjie
2019-07-26 10:29:51 +08:00
parent 27b2e18d67
commit efc8fbd388

View File

@@ -120,12 +120,12 @@ Component({
_multiArrayColumn0.push(item[shownFieldName])
}
if (item[shownFieldName] && index === (defaultIndex[columnIndex] || 0)) {
if (isExist(item[shownFieldName]) && index === (defaultIndex[columnIndex] || 0)) {
// 选中的索引和值默认取每列的第0个
multiIndex.push(index)
if (columnIndex < steps - 1) {
if (item[subsetFieldName]) {
if (isExist(item[subsetFieldName])) {
// 开始处理下一维的数据
const _subsetArr = item[subsetFieldName].map(sub => sub[shownFieldName])
multiArray.push(_subsetArr)