diff --git a/example/pages/picker/index.js b/example/pages/picker/index.js index 9a9315fa..db87a324 100644 --- a/example/pages/picker/index.js +++ b/example/pages/picker/index.js @@ -10,7 +10,7 @@ Page({ { text: '温州' } ], column3: { - 浙江: ['杭州', { text: '宁波' }, { text: '温州', disabled: true }, '嘉兴', '湖州'], + 浙江: ['杭州', '宁波', '温州', '嘉兴', '湖州'], 福建: ['福州', '厦门', '莆田', '三明', '泉州'] }, column4: [ diff --git a/packages/picker-column/index.ts b/packages/picker-column/index.ts index 668c3876..8a0bb2d9 100644 --- a/packages/picker-column/index.ts +++ b/packages/picker-column/index.ts @@ -35,6 +35,8 @@ VantComponent({ this.set({ currentIndex: defaultIndex, options: initialOptions + }, () => { + this.setIndex(defaultIndex); }); },