-
Notifications
You must be signed in to change notification settings - Fork 838
Conversation
@@ -1,15 +1,25 @@ | |||
<script> | |||
const validBadges = ['new', 'breaking', 'removed', 'updated'] | |||
const validBadges = { |
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.
这部分改动我觉得可以作为更好的多语言支持 PR 回英文版
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.
那我先给英文版扔个 PR
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/guide/migration/v-model.md
Outdated
- **NEW**:现在可以在同一个组件上使用多个 `v-model` 进行双向绑定; | ||
- **NEW**:现在可以自定义 `v-model` 修饰符。 | ||
- **非兼容**:`v-bind` 的 `.sync` 修饰符和组件的 `model` 选项已移除,可用 `v-model` 作为代替; | ||
- **新**:现在可以在同一个组件上使用多个 `v-model` 进行双向绑定; |
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/guide/migration/key-attribute.md
Outdated
- **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`。 |
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.
英文 PR 如果有变化可以晚些时候另外同步
英文 PR 已合并。 |
breaking