File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
src/components/cascade-picker Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change 4444
4545<style lang="stylus" rel="stylesheet/stylus">
4646 @require "../../../src/common/stylus/variable.styl"
47- @require "../../../src/common/stylus/mixin.styl"
4847
4948 .view-wrapper
5049 position : fixed
Original file line number Diff line number Diff line change 106106 updatePickerData (fromColumn = 0 ) {
107107 let data = this .cascadeData
108108 let i = 0
109- while (Array . isArray ( data) && data . length ) {
109+ while (data) {
110110 if (i >= fromColumn) {
111111 let columnData = []
112112 data .forEach ((item ) => {
121121 ? (this .pickerSelectedIndex [i] < data .length ? this .pickerSelectedIndex [i] || 0 : 0 )
122122 : this .$refs .picker .refillColumn (i, columnData)
123123 }
124- data = data[this .pickerSelectedIndex [i]].children
124+ data = data . length ? data [this .pickerSelectedIndex [i]].children : null
125125
126126 i++
127127 }
You can’t perform that action at this time.
0 commit comments