Skip to content

Commit 3db5f71

Browse files
authored
Merge pull request #242 from fabiodepin/patch-9
Update built-in-components.md
2 parents 69573a4 + a8a51c7 commit 3db5f71

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/api/built-in-components.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
# Componentes Integrados
22

3-
Built-in components can be used directly in templates without needing to be registered.
3+
Os componentes integrados podem ser usados diretamente em _templates_ sem a necessidade de registro.
44

5-
The `<keep-alive>`, `<transition>`, `<transition-group>`, and `<teleport>` components can all be tree-shaken by bundlers, so that they are only included in the build if they're used. They can also be imported explicitly if you need direct access to the component itself:
5+
Os componentes `<keep-alive>`, `<transition>`, `<transition-group>`, e `<teleport>` podem ser todos _tree-shaken_ por empacotadores (_bundlers_), de modo que só são incluídos na construção se forem usados. Eles também podem ser importados explicitamente se você precisar de acesso direto ao próprio componente:
66

77
```js
8-
// CDN build of Vue
8+
// Distribuição em CDN do Vue
99
const { KeepAlive, Teleport, Transition, TransitionGroup } = Vue
1010
```
1111

1212
```js
13-
// ESM build of Vue
13+
// Distribuição em ESM do Vue
1414
import { KeepAlive, Teleport, Transition, TransitionGroup } from 'vue'
1515
```
1616

17-
`<component>` and `<slot>` are component-like features of template syntax. They are not true components and they can't be imported like the components shown above.
17+
`<component>` e `<slot>` são recursos da sintaxe de _template_ em forma de componentes. Eles não são componentes verdadeiros e não podem ser importados como os componentes mostrados acima.
1818

1919
## component
2020

@@ -41,7 +41,7 @@ import { KeepAlive, Teleport, Transition, TransitionGroup } from 'vue'
4141
<component :is="href ? 'a' : 'span'"></component>
4242
```
4343

44-
The built-in components `KeepAlive`, `Transition`, `TransitionGroup`, and `Teleport` can all be passed to `is`, but you must register them if you want to pass them by name. For example:
44+
Os componentes integrados `KeepAlive`, `Transition`, `TransitionGroup`, e `Teleport` podem ser passados para `is`, mas você deve registrá-los se quiser transmiti-los por nome. Por exemplo:
4545

4646
```js
4747
const { Transition, TransitionGroup } = Vue
@@ -60,7 +60,7 @@ import { KeepAlive, Teleport, Transition, TransitionGroup } from 'vue'
6060
}
6161
```
6262

63-
Registration is not required if you pass the component itself to `is` rather than its name.
63+
O registro não será necessário se você passar o próprio componente para `is` ao invés de seu nome.
6464

6565
- **Ver também:** [Componentes Dinâmicos](../guide/component-dynamic-async.html)
6666

0 commit comments

Comments
 (0)