-
Notifications
You must be signed in to change notification settings - Fork 3.4k
docs: refine list doc #896
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
Conversation
src/v2/guide/list.md
Outdated
|
||
``` html | ||
<div v-for="item of items"></div> | ||
``` | ||
|
||
## 一个对象的 `v-for` | ||
## 在对象上使用 `v-for` |
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.
“在 v-for
里使用对象”怎么样?下同
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.
OK
@@ -439,19 +439,19 @@ methods: { | |||
</ul> | |||
``` | |||
|
|||
## `v-for` with `v-if` | |||
## `v-for` 与 `v-if` 一同使用 |
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.
这个标题我感觉需要确定一下别的文档里有没有引用,有的话需要联动修改
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.
这里个站的文档我检查过,其它站可能需要看一下
src/v2/guide/list.md
Outdated
@@ -514,7 +514,7 @@ methods: { | |||
</div> | |||
``` | |||
|
|||
<p class="tip">注意这里的 `is="todo-item"` 属性。这种做法在使用 DOM 模板时是十分必要的,因为在 `<ul>` 元素内只有 `<li>` 元素会被看作有效内容。这样做实现的效果与 `<todo-item>` 相同,但是可以避开一些潜在的浏览器解析错误。查看 [DOM 模板解析说明](components.html#解析-DOM-模板时的注意事项) 来了解更多信息。</p> | |||
<p class="tip">注意这里的 `is="todo-item"` 属性。这种做法在使用 DOM 模板时是十分必要的,因为在 `<ul>` 元素内只有 `<li>` 元素会被看作合法内容。这样做实现的效果与 `<todo-item>` 相同,但是可以避开一些潜在的浏览器解析错误。查看 [DOM 模板解析说明](components.html#解析-DOM-模板时的注意事项) 来了解更多信息。</p> |
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.
我在别的地方 valid 也都是译为“有效”的,包括 invalid -> 无效的、validation -> 有效性验证。觉得有必要讨论一下要不要改。在我个人看来译为“有效”是没有问题的。
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.
那就和别的地方保持一致吧。
@Justineo 这个 PR 出现 conflict 了,可以 resolve 一下吗?这里翻译细节比较多我有点下不去手…… |
OK,我找时间看一下。 |
DONE |
No description provided.