This repository was archived by the owner on Aug 8, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 835
docs: translate breaking #220
Merged
Merged
Changes from 1 commit
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,9 +7,9 @@ badges: | |
|
||
## 概览 | ||
|
||
- **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 commentThe reason will be displayed to describe this comment to others. Learn more. 这里还是新而不是新增,似乎还没更新? |
||
- **非兼容**:如果你手动提供 `key`,那么每个分支必须使用唯一的 `key`。你不能通过故意使用相同的 `key` 来强制重用分支。 | ||
- **非兼容**:`<template v-for>` 的 `key` 应该设置在 `<template>` 标签上 (而不是设置在它的子节点上)。 | ||
|
||
## 背景 | ||
|
||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,12 +10,12 @@ badges: | |
|
||
就变化内容而言,此部分属于高阶内容: | ||
|
||
- **BREAKING**:用于自定义组件时,`v-model` prop 和事件默认名称已更改: | ||
- **非兼容**:用于自定义组件时,`v-model` prop 和事件默认名称已更改: | ||
- prop:`value` -> `modelValue`; | ||
- event:`input` -> `update:modelValue`; | ||
- **BREAKING**:`v-bind` 的 `.sync` 修饰符和组件的 `model` 选项已移除,可用 `v-model` 作为代替; | ||
- **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 commentThe 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 commentThe reason will be displayed to describe this comment to others. Learn more. 这里忽略了,我处理下。 |
||
- **新**:现在可以自定义 `v-model` 修饰符。 | ||
|
||
更多信息,请见下文。 | ||
|
||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
英文PR update: migration badges support i18n