Skip to content

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

Merged
merged 2 commits into from
May 30, 2019
Merged

docs: refine list doc #896

merged 2 commits into from
May 30, 2019

Conversation

Justineo
Copy link
Member

@Justineo Justineo commented Apr 8, 2019

No description provided.

@Justineo Justineo requested a review from Jinjiang April 8, 2019 06:04

``` html
<div v-for="item of items"></div>
```

## 一个对象的 `v-for`
## 在对象上使用 `v-for`
Copy link
Member

Choose a reason for hiding this comment

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

“在 v-for 里使用对象”怎么样?下同

Copy link
Member Author

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` 一同使用
Copy link
Member

Choose a reason for hiding this comment

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

这个标题我感觉需要确定一下别的文档里有没有引用,有的话需要联动修改

Copy link
Member Author

Choose a reason for hiding this comment

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

这里个站的文档我检查过,其它站可能需要看一下

@@ -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>
Copy link
Member

Choose a reason for hiding this comment

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

我在别的地方 valid 也都是译为“有效”的,包括 invalid -> 无效的、validation -> 有效性验证。觉得有必要讨论一下要不要改。在我个人看来译为“有效”是没有问题的。

Copy link
Member Author

Choose a reason for hiding this comment

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

那就和别的地方保持一致吧。

@Jinjiang
Copy link
Member

@Justineo 这个 PR 出现 conflict 了,可以 resolve 一下吗?这里翻译细节比较多我有点下不去手……

@Justineo
Copy link
Member Author

OK,我找时间看一下。

@Justineo
Copy link
Member Author

@Justineo 这个 PR 出现 conflict 了,可以 resolve 一下吗?这里翻译细节比较多我有点下不去手……

DONE

@Justineo Justineo requested a review from Jinjiang May 30, 2019 06:26
@Jinjiang Jinjiang merged commit 8282cd8 into master May 30, 2019
@Jinjiang Jinjiang deleted the refine-list branch May 30, 2019 15:54
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.

2 participants