Skip to content

Commit a9ef0a7

Browse files
authored
Merge pull request #55 from vuejs-br/fix-merge-list
Fix merge problems on "list.md"
2 parents 9ba4fe9 + c48b914 commit a9ef0a7

File tree

3 files changed

+8868
-20
lines changed

3 files changed

+8868
-20
lines changed

src/guide/list.md

Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -265,42 +265,27 @@ Similar ao uso de _template_ com `v-if`, você também pode usar a tag `<templat
265265
## Utilizando `v-if` com `v-for`
266266

267267
:::tip
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.
268+
**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.
269269
:::
270270

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`:
276272

277273
```html
278-
<!-- This will throw an error because property "todo" is not defined on instance. -->
274+
<!-- Um erro será lançado pois o dado "todo" não está definido nesta instância. -->
279275

280276
<li v-for="todo in todos" v-if="!todo.isComplete">
281277
{{ todo }}
282278
</li>
283279
```
284280

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>`:
292282

293283
```html
294284
<template v-for="todo in todos">
295285
<li v-if="!todo.isComplete">
296286
{{ todo }}
297287
</li>
298-
<<<<<<< HEAD
299-
</ul>
300-
<p v-else>Não há tarefas a fazer!</p>
301-
=======
302288
</template>
303-
>>>>>>> 84d3484c8edff3aff5e832d69ace073ea0e182a0
304289
```
305290

306291
## Componentes com `v-for`

src/style-guide/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1762,7 +1762,7 @@ h3 {
17621762
a.header-anchor {
17631763
// as we have too many h3 elements on this page, set the anchor to be always visible
17641764
// to make them stand out more from paragraph texts.
1765-
opacity: 1;
1765+
opacity: 1;
17661766
}
17671767

17681768
sup {

0 commit comments

Comments
 (0)