Picker: 修复设置defaultIndex时的选项样式问题

This commit is contained in:
rex 2019-01-02 11:08:31 +08:00 committed by GitHub
parent f9b7ddbbb3
commit c5a3a45742
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -10,7 +10,7 @@ Page({
{ text: '温州' }
],
column3: {
浙江: ['杭州', { text: '宁波' }, { text: '温州', disabled: true }, '嘉兴', '湖州'],
浙江: ['杭州', '宁波', '温州', '嘉兴', '湖州'],
福建: ['福州', '厦门', '莆田', '三明', '泉州']
},
column4: [

View File

@ -35,6 +35,8 @@ VantComponent({
this.set({
currentIndex: defaultIndex,
options: initialOptions
}, () => {
this.setIndex(defaultIndex);
});
},