-
Notifications
You must be signed in to change notification settings - Fork 8.1k
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
[zh-cn] Init translation of 'vue refs focus management' #14104
Conversation
...learn/tools_and_testing/client-side_javascript_frameworks/vue_refs_focus_management/index.md
Outdated
Show resolved
Hide resolved
...learn/tools_and_testing/client-side_javascript_frameworks/vue_refs_focus_management/index.md
Outdated
Show resolved
Hide resolved
Preview URLs Flaws (33)URL:
External URLs (4)URL:
(comment last updated: 2023-07-11 14:54:21) |
...learn/tools_and_testing/client-side_javascript_frameworks/vue_refs_focus_management/index.md
Outdated
Show resolved
Hide resolved
...learn/tools_and_testing/client-side_javascript_frameworks/vue_refs_focus_management/index.md
Outdated
Show resolved
Hide resolved
|
||
{{LearnSidebar}}{{PreviousMenuNext("Learn/Tools_and_testing/Client-side_JavaScript_frameworks/Vue_conditional_rendering","Learn/Tools_and_testing/Client-side_JavaScript_frameworks/Vue_resources", "Learn/Tools_and_testing/Client-side_JavaScript_frameworks")}} | ||
|
||
使用 Vue 所做的事情快要结束了。最后一个需要讲述的内容是焦点管理,换句话说,也是如何提升我们应用的键盘无障碍性。我们将看看使用 **Vue refs** 来处理这个问题——这是一个进阶功能,允许你直接访问虚拟 DOM 之下的底层 DOM 节点,或者从一个组件直接访问一个子组件的内部 DOM 结构。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
使用 Vue 所做的事情快要结束了。最后一个需要讲述的内容是焦点管理,换句话说,也是如何提升我们应用的键盘无障碍性。我们将看看使用 **Vue refs** 来处理这个问题——这是一个进阶功能,允许你直接访问虚拟 DOM 之下的底层 DOM 节点,或者从一个组件直接访问一个子组件的内部 DOM 结构。 | |
使用 Vue 所做的事情快要结束了。最后一个需要讲述的内容是焦点管理,换句话说,也是如何提升我们应用的键盘无障碍性。我们将看看使用 **Vue ref** 来处理这个问题——这是一个进阶功能,允许你直接访问虚拟 DOM 之下的底层 DOM 节点,或者从一个组件直接访问一个子组件的内部 DOM 结构。 |
...learn/tools_and_testing/client-side_javascript_frameworks/vue_refs_focus_management/index.md
Outdated
Show resolved
Hide resolved
相反,如果你需要访问底层 DOM 节点(比如设置焦点时),你可以使用 [Vue 模板引用](https://cn.vuejs.org/guide/essentials/template-refs.html)。对于自定义的 Vue 组件,你也可以使用 refs 来直接访问子组件的内部结构,然而这样做应该是谨慎的,因为这会使代码更难推理和理解。 | ||
|
||
要在一个组件中使用 ref,你需要在你想访问的元素上添加一个 `ref` 属性,并为该属性的值添加一个字符串标识符。值得注意的是,在一个组件中,引用必须是唯一的。在同一时间呈现的两个元素不应该有相同的引用。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
coud we use "模板引用" for all those name, if it's not refering to a attribute :)
We may need to consider the translation for all the instances.
...learn/tools_and_testing/client-side_javascript_frameworks/vue_refs_focus_management/index.md
Outdated
Show resolved
Hide resolved
...learn/tools_and_testing/client-side_javascript_frameworks/vue_refs_focus_management/index.md
Outdated
Show resolved
Hide resolved
Co-authored-by: A1lo <[email protected]>
...learn/tools_and_testing/client-side_javascript_frameworks/vue_refs_focus_management/index.md
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks
Description
reduce sidebar flaw by one :(