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
@@ -52,12 +52,8 @@ import { Toast } from 'vant';
export default {
setup() {
const value = ref('');
const onSearch = (val) => {
Toast(val);
};
const onCancel = () => {
Toast('Cancel');
};
const onSearch = (val) => Toast(val);
const onCancel = () => Toast('Cancel');
return {
value,
onSearch,