Skip to content
This repository was archived by the owner on Aug 8, 2022. It is now read-only.

docs: translate breaking #220

Merged
merged 3 commits into from
Oct 25, 2020
Merged

docs: translate breaking #220

merged 3 commits into from
Oct 25, 2020

Conversation

veaba
Copy link
Member

@veaba veaba commented Oct 24, 2020

@veaba veaba requested review from Jinjiang and Justineo October 24, 2020 09:14
@@ -1,15 +1,25 @@
<script>
const validBadges = ['new', 'breaking', 'removed', 'updated']
const validBadges = {
Copy link
Member

Choose a reason for hiding this comment

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

这部分改动我觉得可以作为更好的多语言支持 PR 回英文版

Copy link
Member Author

Choose a reason for hiding this comment

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

那我先给英文版扔个 PR

Copy link
Member Author

Choose a reason for hiding this comment

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

@veaba
Copy link
Member Author

veaba commented Oct 25, 2020

更新: new 对应译法 新增

- **NEW**:现在可以在同一个组件上使用多个 `v-model` 进行双向绑定;
- **NEW**:现在可以自定义 `v-model` 修饰符。
- **非兼容**:`v-bind` 的 `.sync` 修饰符和组件的 `model` 选项已移除,可用 `v-model` 作为代替;
- **新**:现在可以在同一个组件上使用多个 `v-model` 进行双向绑定;
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.

这里忽略了,我处理下。

- **NEW**:对于 `v-if`/`v-else`/`v-else-if` 的各分支项 `key` 将不再是必须的,因为现在 Vue 会自动生成唯一的 `key`。
- **BREAKING**:如果你手动提供 `key`,那么每个分支必须使用唯一的 `key`。你不能通过故意使用相同的 `key` 来强制重用分支。
- **BREAKING**:`<template v-for>` 的 `key` 应该设置在 `<template>` 标签上 (而不是设置在它的子节点上)。
- **新**:对于 `v-if`/`v-else`/`v-else-if` 的各分支项 `key` 将不再是必须的,因为现在 Vue 会自动生成唯一的 `key`。
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

@Jinjiang Jinjiang left a comment

Choose a reason for hiding this comment

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

英文 PR 如果有变化可以晚些时候另外同步

@Jinjiang Jinjiang merged commit de0f80c into master Oct 25, 2020
@Jinjiang Jinjiang deleted the docs-breaking branch October 25, 2020 07:18
@veaba
Copy link
Member Author

veaba commented Oct 28, 2020

英文 PR 如果有变化可以晚些时候另外同步

英文 PR 已合并。

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants