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
@@ -71,9 +71,7 @@ export default {
{ name: 'Option 2' },
{ name: 'Option 3' },
];
const onCancel = () => {
Toast('cancel');
};
const onCancel = () => Toast('cancel');
return {
show,
+1 -3
View File
@@ -79,9 +79,7 @@ export default {
{ name: '选项二' },
{ name: '选项三' },
];
const onCancel = () => {
Toast('取消');
};
const onCancel = () => Toast('取消');
return {
show,
+1 -4
View File
@@ -122,10 +122,7 @@ export default {
state.show.basic = false;
Toast(item.name);
};
const onCancel = () => {
Toast(t('cancel'));
};
const onCancel = () => Toast(t('cancel'));
return {
...toRefs(state),