mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-05-21 22:09:16 +08:00
Picker: 修复设置defaultIndex时的选项样式问题
This commit is contained in:
parent
f9b7ddbbb3
commit
c5a3a45742
@ -10,7 +10,7 @@ Page({
|
|||||||
{ text: '温州' }
|
{ text: '温州' }
|
||||||
],
|
],
|
||||||
column3: {
|
column3: {
|
||||||
浙江: ['杭州', { text: '宁波' }, { text: '温州', disabled: true }, '嘉兴', '湖州'],
|
浙江: ['杭州', '宁波', '温州', '嘉兴', '湖州'],
|
||||||
福建: ['福州', '厦门', '莆田', '三明', '泉州']
|
福建: ['福州', '厦门', '莆田', '三明', '泉州']
|
||||||
},
|
},
|
||||||
column4: [
|
column4: [
|
||||||
|
@ -35,6 +35,8 @@ VantComponent({
|
|||||||
this.set({
|
this.set({
|
||||||
currentIndex: defaultIndex,
|
currentIndex: defaultIndex,
|
||||||
options: initialOptions
|
options: initialOptions
|
||||||
|
}, () => {
|
||||||
|
this.setIndex(defaultIndex);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user