diff --git a/src/v2/style-guide/index.md b/src/v2/style-guide/index.md index a85e2f902..8499261ff 100644 --- a/src/v2/style-guide/index.md +++ b/src/v2/style-guide/index.md @@ -1490,22 +1490,22 @@ computed: { -## Priority D Rules: Use with Caution (Potentially Dangerous Patterns) +## 优先级 D 的规则:谨慎使用 (有潜在危险的模式) -### `v-if`/`v-if-else`/`v-else` without `key` use with caution +### 没有在 `v-if`/`v-if-else`/`v-else` 中使用 `key` 谨慎使用 -**It's usually best to use `key` with `v-if` + `v-else`, if they are the same element type (e.g. both `
- Error: {{ error }} + 错误:{{ error }}