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
+1 -3
View File
@@ -95,9 +95,7 @@ import { Toast } from 'vant';
export default {
setup() {
const value = ref(3);
const onChange = (value) => {
Toast('current value:' + value);
};
const onChange = (value) => Toast('current value:' + value);
return {
value,
onChange,
+1 -3
View File
@@ -99,9 +99,7 @@ import { Toast } from 'vant';
export default {
setup() {
const value = ref(3);
const onChange = (value) => {
Toast('当前值:' + value);
};
const onChange = (value) => Toast('当前值:' + value);
return {
value,
onChange,
+1 -3
View File
@@ -85,9 +85,7 @@ export default {
value7: 2,
});
const onChange = (value) => {
Toast(t('toastContent', value));
};
const onChange = (value) => Toast(t('toastContent', value));
return {
...toRefs(state),