docs: prefer shorter demo

This commit is contained in:
chenjiahan
2021-01-20 21:00:36 +08:00
parent 3787e82ec7
commit cb3219ab66
57 changed files with 95 additions and 315 deletions
+2 -6
View File
@@ -30,12 +30,8 @@ import { Toast } from 'vant';
export default {
setup() {
const onClickLeft = () => {
Toast('Back');
};
const onClickRight = () => {
Toast('Button');
};
const onClickLeft = () => Toast('Back');
const onClickRight = () => Toast('Button');
return {
onClickLeft,
onClickRight,