You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/guide/list.md
+2-17Lines changed: 2 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -268,11 +268,7 @@ Similar ao uso de _template_ com `v-if`, você também pode usar a tag `<templat
268
268
Note que **não** é recomendado usar `v-if` e `v-for` juntos. Consulte o [guia de estilos](../style-guide/#avoid-v-if-with-v-for-essential) para detalhes.
269
269
:::
270
270
271
-
<<<<<<< HEAD
272
-
Quando presentes em um mesmo nó, `v-for` tem maior prioridade que `v-if`. Isto significa que `v-if` será executado separadamente a cada iteração da repetição. Isto pode ser útil se quiser renderizar nós condicionalmente para apenas _alguns_ itens, como abaixo:
273
-
=======
274
-
When they exist on the same node, `v-if` has a higher priority than `v-for`. That means the `v-if` condition will not have access to variables from the scope of the `v-for`:
275
-
>>>>>>> 84d3484c8edff3aff5e832d69ace073ea0e182a0
271
+
Quando presentes em um mesmo nó, `v-if` tem maior prioridade que `v-for`. Isto significa que o `v-if` não terá acesso às variáveis criadas no escopo do `v-for`:
276
272
277
273
```html
278
274
<!-- This will throw an error because property "todo" is not defined on instance. -->
@@ -282,25 +278,14 @@ When they exist on the same node, `v-if` has a higher priority than `v-for`. Tha
282
278
</li>
283
279
```
284
280
285
-
<<<<<<< HEAD
286
-
O exemplo acima só renderiza apenas as tarefas que não estão completas.
287
-
288
-
Em vez disso, se sua intenção for condicionalmente pular toda a execução da repetição, você pode colocar o `v-if` em um elemento envolvendo o bloco (ou [`<template>`](conditional#conditional-groups-with-v-if-on-lt-template-gt)). Por exemplo:
289
-
=======
290
-
This can be fixed by moving `v-for` to a wrapping `<template>` tag:
291
-
>>>>>>> 84d3484c8edff3aff5e832d69ace073ea0e182a0
281
+
Isto pode ser resolvido envolvendo-se o `v-for` em uma _tag_`<template>`:
0 commit comments