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
@@ -130,11 +130,11 @@ In 3.x, the entire VNode props structure is flattened. Using the example from ab
130
130
}
131
131
```
132
132
133
-
## Registered Component
133
+
## Componente registrado
134
134
135
-
### 2.x Syntax
135
+
### Sintaxe 2.x
136
136
137
-
In 2.x, when a component has been registered, the render function would work well when passing the component's name as a string to the first argument:
137
+
Em 2.x, quando um componente foi registrado, a função render funcionaria bem quando passasse o nome do componente como uma string para o primeiro argumento:
138
138
139
139
```js
140
140
// 2.x
@@ -158,9 +158,9 @@ export default {
158
158
}
159
159
```
160
160
161
-
### 3.x Syntax
161
+
### Sintaxe 3.x
162
162
163
-
In 3.x, with VNodes being context-free, we can no longer use a string ID to implicitly lookup registered components. Instead, we need to use an imported `resolveComponent` method:
163
+
Em 3.x, com os VNodes sendo livres de contexto, não podemos usar um ID como string para implicitamente buscar por componentes registrado. Em vez disos, precisamos usar o método importado `resolveComponent`:
164
164
165
165
```js
166
166
// 3.x
@@ -173,19 +173,20 @@ export default {
173
173
}
174
174
}
175
175
```
176
+
Para mais informações, veja [O RFC* das mudanças da API da Função Render](https://github.com/vuejs/rfcs/blob/master/active-rfcs/0008-render-function-api-change.md#context-free-vnodes).
176
177
177
-
For more information, see [The Render Function Api Change RFC](https://github.com/vuejs/rfcs/blob/master/active-rfcs/0008-render-function-api-change.md#context-free-vnodes).
178
+
***Nota da tradução**: RFC significa Request For Comments, e é um processo que visa prover um caminho consistente e controlado para as novas funcionalidades de um framework.
178
179
179
-
## Migration Strategy
180
+
## Estratégia de Migração
180
181
181
-
### Library Authors
182
+
### Autores da biblioteca
182
183
183
-
`h`being globally imported means that any library that contains Vue components will include `import { h } from 'vue'`somewhere. As a result, this creates a bit of overhead since it requires library authors to properly configure the externalization of Vue in their build setup:
184
+
A Importação global do `h`significa que qualquer biblioteca que contenha componentes Vue vão incluir `import { h } from 'vue'`em algum lugar. Como resultado, isso cria um pouco de sobrecarga, pois requer que os autores da biblioteca configurem corretamente a externalização do Vue em suas configurações de compilação:
184
185
185
-
- Vue should not be bundled into the library
186
-
-For module builds, the import should be left alone and be handled by the end user bundler
187
-
-For UMD / browser builds, it should try the global Vue.h first and fallback to require calls
186
+
-o Vue não deve estar no bundle da biblioteca
187
+
-Para construções de módulo, a importação deve ser deixada sozinha e tratada pelo empacotador do usuário final
188
+
-Para UMD / compilações de navegador, deve-se tentar o Vue.h global primeiro e alternar para exigir chamadas
188
189
189
-
## Next Steps
190
+
## Próximos passos
190
191
191
-
See [Render Function Guide](/guide/render-function)for more detailed documentation!
192
+
Veja [O Guia da Função Render](/guide/render-function)para documentação mais detalhada!
0 commit comments