mirror of
https://github.com/youzan/vant.git
synced 2025-10-22 11:54:02 +00:00
docs: prefer shorter demo
This commit is contained in:
@@ -35,14 +35,8 @@ const i18n = {
|
||||
export default {
|
||||
setup() {
|
||||
const t = useTranslate(i18n);
|
||||
|
||||
const onClickLeft = () => {
|
||||
Toast(t('back'));
|
||||
};
|
||||
|
||||
const onClickRight = () => {
|
||||
Toast(t('button'));
|
||||
};
|
||||
const onClickLeft = () => Toast(t('back'));
|
||||
const onClickRight = () => Toast(t('button'));
|
||||
|
||||
return {
|
||||
t,
|
||||
|
Reference in New Issue
Block a user