Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

typo: style modification #1030

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

yanquanfahei
Copy link

@yanquanfahei yanquanfahei commented Sep 26, 2024

在创建 pull request 之前

请确认:

  • 我已经阅读过项目的 wiki 了解相关注意事项。
  • 我对翻译内容的改动不包含基于英文原版的扩展、删减或演绎 (如有,请移步至英文文档仓库讨论,相关结论会被定期从英文版同步)

问题描述

image

Copy link

vercel bot commented Sep 26, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs-zh-cn ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 17, 2024 2:43pm

@@ -264,7 +264,7 @@ methods: {
`.passive` 修饰符一般用于触摸事件的监听器,可以用来[改善移动端设备的滚屏性能](https://developer.mozilla.org/zh-CN/docs/Web/API/EventTarget/addEventListener#%E4%BD%BF%E7%94%A8_passive_%E6%94%B9%E5%96%84%E6%BB%9A%E5%B1%8F%E6%80%A7%E8%83%BD)。

::: tip
请勿同时使用 `.passive` 和 `.prevent`,因为 `.passive` 已经向浏览器表明了你*不想*阻止事件的默认行为。如果你这么做了,则 `.prevent` 会被忽略,并且浏览器会抛出警告。
请勿同时使用 `.passive` 和 `.prevent`,因为 `.passive` 已经向浏览器表明了你不想阻止事件的默认行为。如果你这么做了,则 `.prevent` 会被忽略,并且浏览器会抛出警告。
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

此处对应英文文档的斜体 do not

image

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

英文文档看起来是美观的,中文文档这边我个人觉得看着很别扭。
如果要保持斜体是否要针对这种中文的情况怎么处理修改下~

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这种用于强调的句式按照以前的案例是不需要修改的,保持与英文文档一致即可

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这种用于强调的句式按照以前的案例是不需要修改的,保持与英文文档一致即可

好的,已回退。英文文档的URL也替换为最新的 MDN URL

src/guide/essentials/event-handling.md Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants