Skip to content

Commit 6fb674a

Browse files
committed
Translation of options-misc.md to pt-BR
1 parent 8d7d122 commit 6fb674a

File tree

1 file changed

+19
-18
lines changed

1 file changed

+19
-18
lines changed

src/api/options-misc.md

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,48 +2,49 @@
22

33
## name
44

5-
- **Type:** `string`
5+
- **Tipo:** `string`
66

7-
- **Details:**
7+
- **Detalhes:**
88

9-
Allow the component to recursively invoke itself in its template. Note that when a component is registered globally with `Vue.createApp({}).component({})`, the global ID is automatically set as its name.
9+
Permitir que o componente seja invocado recursivamente no *template*. Observe que quando um componente é registrado globalmente com `Vue.createApp({}).component({})`, o ID global é automaticamente definido como seu nome.
1010

11-
Another benefit of specifying a `name` option is debugging. Named components result in more helpful warning messages. Also, when inspecting an app in the [vue-devtools](https://github.com/vuejs/vue-devtools), unnamed components will show up as `<AnonymousComponent>`, which isn't very informative. By providing the `name` option, you will get a much more informative component tree.
11+
Outro benefício de especificar a opção `name` é o *debugging*. Componentes nomeados resultam em mensagens de aviso mais úteis. Também, quando inspecionado um *app* no [vue-devtools](https://github.com/vuejs/vue-devtools), componentes sem nome vão ser exibidos como `<AnonymousComponent>`, o que não é muito informativo. Provendo a opção `name`, você vai ter uma árvore de componentes muito mais informativa.
1212

1313
## delimiters
1414

15-
- **Type:** `Array<string>`
15+
- **Tipo:** `Array<string>`
1616

17-
- **Default:** `{{ "['\u007b\u007b', '\u007d\u007d']" }}`
17+
- **Padrão:** `{{ "['\u007b\u007b', '\u007d\u007d']" }}`
1818

19-
- **Restrictions:** This option is only available in the full build, with in-browser template compilation.
19+
- **Restrições:** Essa opção só é disponível na *full build*, com compilação de *template* no navegador.
2020

21-
- **Details:**
21+
- **Detalhes:**
2222

23-
Sets the delimiters used for text interpolation within the template.
23+
Define os delimitadores usados para interpolação de texto dentro do *template*.
2424

25-
Typically this is used to avoid conflicting with server-side frameworks that also use mustache syntax.
25+
Tipicamente isso é usado para evitar conflito com frameworks *server-side* que também usam sintaxe *mustache*.
2626

27-
- **Example:**
27+
- **Exemplo:**
2828

2929
```js
3030
Vue.createApp({
31-
// Delimiters changed to ES6 template string style
31+
// Delimitadores mudaram para o estilo template string ES6
3232
delimiters: ['${', '}']
3333
})
3434
```
3535

3636
## inheritAttrs
3737

38-
- **Type:** `boolean`
38+
- **Tipo:** `boolean`
3939

40-
- **Default:** `true`
40+
- **Padrão:** `true`
4141

42-
- **Details:**
42+
- **Detalhes:**
4343

44-
By default, parent scope attribute bindings that are not recognized as props will "fallthrough". This means that when we have a single-root component, these bindings will be applied to the root element of the child component as normal HTML attributes. When authoring a component that wraps a target element or another component, this may not always be the desired behavior. By setting `inheritAttrs` to `false`, this default behavior can be disabled. The attributes are available via the `$attrs` instance property and can be explicitly bound to a non-root element using `v-bind`.
44+
Por padrão, ligações de atributo de escopo pai que não são reconhecidas como props vão "cair". Isso signifca que quando nós temos um componente *single-root*, essas ligações vão ser aplicadas para o elemento raiz do componente filho como atributos normais de HTML. Ao criar um componente que envolve um elemento alvo ou outro componente, isso pode não ser sempre o comportamento desejado. Configurando `inheritAttrs` para `false`, esse comportamento padrão pode ser desabilitado. Os atributos estão disponíveis via instância de propriedade `$attrs` e pode ser explicitamente vinculada a um elemento não não raiz usando `v-bind`.
4545

46-
- **Usage:**
46+
47+
- **Uso:**
4748

4849
```js
4950
app.component('base-input', {
@@ -63,4 +64,4 @@
6364
})
6465
```
6566

66-
- **See also:** [Disabling Attribute Inheritance](../guide/component-attrs.html#disabling-attribute-inheritance)
67+
- **Veja também:** [Desativando a Herança de Atributos](../guide/component-attrs.html#disabling-attribute-inheritance)

0 commit comments

Comments
 (0)