mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
[Doc] fix picker demo (#766)
This commit is contained in:
parent
72cca2c961
commit
0030024282
@ -23,8 +23,10 @@ export default {
|
|||||||
columns: ['Delaware', 'Florida', 'Georqia', 'Indiana', 'Maine']
|
columns: ['Delaware', 'Florida', 'Georqia', 'Indiana', 'Maine']
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
onChange(picker, value, index) {
|
methods: {
|
||||||
Toast(`Value: ${value}, Index: ${index}`);
|
onChange(picker, value, index) {
|
||||||
|
Toast(`Value: ${value}, Index: ${index}`);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
```
|
```
|
||||||
|
@ -24,8 +24,10 @@ export default {
|
|||||||
columns: ['杭州', '宁波', '温州', '嘉兴', '湖州']
|
columns: ['杭州', '宁波', '温州', '嘉兴', '湖州']
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
onChange(picker, value, index) {
|
methods: {
|
||||||
Toast(`当前值:${value}, 当前索引:${index}`);
|
onChange(picker, value, index) {
|
||||||
|
Toast(`当前值:${value}, 当前索引:${index}`);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user