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
In Vue 3, components now have official support for multi-root node components, i.e., fragments!
10
+
No Vue 3, os componentes agora tem suporte oficial para componentes com nós multi-raiz, ou seja, fragmentos!
11
11
12
-
## 2.x Syntax
12
+
## Sintaxe v2.x
13
13
14
-
In 2.x, multi-root components were not supported and would emit a warning when a user accidentally created one. As a result, many components are wrapped in a single`<div>`in order to fix this error.
14
+
Na v2.x, componentes multi-raiz não eram suportados e iriam emitir um aviso no caso de um usuário acidentalmente criar um. Como resultado, vários componentes são envolvidos em uma única`<div>`de forma a corrigir esse erro.
15
15
16
16
```html
17
17
<!-- Layout.vue -->
@@ -24,9 +24,9 @@ In 2.x, multi-root components were not supported and would emit a warning when a
24
24
</template>
25
25
```
26
26
27
-
## 3.x Syntax
27
+
## Sintaxe v3.x
28
28
29
-
In 3.x, components now can have multiple root nodes! However, this does require developers to explicitly define where attributes should be distributed.
29
+
Na v3.x, componentes agora podem ter vários nós raiz! No entanto, isso requer aos desenvolvedores definir explicitamente onde os atributos deveriam ser distribuídos.
30
30
31
31
```html
32
32
<!-- Layout.vue -->
@@ -37,4 +37,4 @@ In 3.x, components now can have multiple root nodes! However, this does require
37
37
</template>
38
38
```
39
39
40
-
For more information on how attribute inheritance works, see [Non-Prop Attributes](/guide/component-attrs.html).
40
+
Para mais informações sobre como a herança de atributos funciona, veja [Atributos Não-Propriedades](/guide/component-attrs.html).
0 commit comments