|
@ -335,6 +335,9 @@ import {computeArea} from '@/common/utils' |
|
|
setPickerCol(columns[i].children, value, ++n) |
|
|
setPickerCol(columns[i].children, value, ++n) |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
}else if(dataType(columns[0].children,"array")){ |
|
|
|
|
|
this.setColumnValues(n,columns[0].children) |
|
|
|
|
|
setPickerCol(columns[0].children, value, ++n) |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
function setPickerVal(columns, value){ |
|
|
function setPickerVal(columns, value){ |
|
@ -440,7 +443,6 @@ import {computeArea} from '@/common/utils' |
|
|
watch:{ |
|
|
watch:{ |
|
|
columns(n){ |
|
|
columns(n){ |
|
|
if(this.type=='select'){ |
|
|
if(this.type=='select'){ |
|
|
console.log(n[0],this.value) |
|
|
|
|
|
this.$nextTick(()=>{ |
|
|
this.$nextTick(()=>{ |
|
|
setPickerCol.bind(this.$refs.picker)(n[0]||[],this.value,1) |
|
|
setPickerCol.bind(this.$refs.picker)(n[0]||[],this.value,1) |
|
|
}) |
|
|
}) |
|
|