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 -9
View File
@@ -98,15 +98,8 @@ const i18n = {
export default {
setup() {
const t = useTranslate(i18n);
const onClickIcon = () => {
Toast(t('clickIcon'));
};
const onClickButton = () => {
Toast(t('clickButton'));
};
const onClickIcon = () => Toast(t('clickIcon'));
const onClickButton = () => Toast(t('clickButton'));
return {
t,
onClickIcon,