docs: prefer shorter demo
This commit is contained in:
+1
-3
@@ -76,9 +76,7 @@ import { Toast } from 'vant';
|
||||
|
||||
export default {
|
||||
setup() {
|
||||
const onChange = (index) => {
|
||||
Toast('Current Swipe index:' + index);
|
||||
};
|
||||
const onChange = (index) => Toast('Current Swipe index:' + index);
|
||||
return { onChange };
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user