docs: prefer shorter demo
This commit is contained in:
@@ -34,10 +34,7 @@ export default {
|
||||
{ text: 'Option 2' },
|
||||
{ text: 'Option 3' },
|
||||
];
|
||||
|
||||
const onSelect = (action) => {
|
||||
Toast(action.text);
|
||||
};
|
||||
const onSelect = (action) => Toast(action.text);
|
||||
|
||||
return {
|
||||
actions,
|
||||
|
||||
@@ -42,10 +42,7 @@ export default {
|
||||
{ text: '选项二' },
|
||||
{ text: '选项三' },
|
||||
];
|
||||
|
||||
const onSelect = (action) => {
|
||||
Toast(action.text);
|
||||
};
|
||||
const onSelect = (action) => Toast(action.text);
|
||||
|
||||
return {
|
||||
actions,
|
||||
|
||||
@@ -212,9 +212,7 @@ export default {
|
||||
});
|
||||
};
|
||||
|
||||
const onSelect = (action: { text: string }) => {
|
||||
Toast(action.text);
|
||||
};
|
||||
const onSelect = (action: { text: string }) => Toast(action.text);
|
||||
|
||||
return {
|
||||
...toRefs(state),
|
||||
|
||||
Reference in New Issue
Block a user