Skip to content

Commit c5756a1

Browse files
authored
Merge pull request #223 from LeandroLS/master
Translation of options-misc.md to pt-BR
2 parents 8649c19 + 944f2e6 commit c5756a1

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

src/api/options-misc.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,49 @@
1-
# Misc
1+
# Diversos
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+
Permite que o componente invoque si mesmo 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` é a depuração. Componentes nomeados resultam em mensagens de aviso mais úteis. Também, ao inspecionar um *app* no [vue-devtools](https://github.com/vuejs/vue-devtools), componentes sem nome serão exibidos como `<AnonymousComponent>`, o que não é muito informativo. Provendo a opção `name`, você 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+
- **Predefiniçã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ó está disponível na distribuição (*build*) completa, 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 do lado do servidor 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 alterados para o estilo "template string" do ES6
3232
delimiters: ['${', '}']
3333
})
3434
```
3535

3636
## inheritAttrs
3737

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

40-
- **Default:** `true`
40+
- **Predefiniçã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, vínculos de atributos do escopo pai irreconhecíveis como props vão "cair" (*fallthrough*). Isso signifca que quando nós temos um componente de raiz única, esses vínculos serão aplicados ao elemento raiz do componente filho como atributos normais do HTML. Ao criar um componente que envolve um elemento alvo ou outro componente, nem sempre este será o comportamento desejado. Configurando `inheritAttrs` para `false`, esse comportamento padrão pode ser desabilitado. Os atributos estarão disponíveis via a propriedade de instância `$attrs` que pode ser explicitamente vinculada a um elemento que não esteja na raiz usando `v-bind`.
4545

46-
- **Usage:**
46+
- **Uso:**
4747

4848
```js
4949
app.component('base-input', {
@@ -63,4 +63,4 @@
6363
})
6464
```
6565

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

0 commit comments

Comments
 (0)