Skip to content

Commit e7932a3

Browse files
committed
Translation of api/options-dom
1 parent 067e21e commit e7932a3

File tree

1 file changed

+23
-23
lines changed

1 file changed

+23
-23
lines changed

src/api/options-dom.md

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,40 @@
11
# DOM
22

3-
## template
3+
## `template`
44

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

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

9-
A string template to be used as the markup for the component instance. The template will **replace** the `innerHTML` of mounted element. Any existing markup inside the mounted element will be ignored, unless content distribution slots are present in the template.
9+
Um _template_ string a ser usado como marcação para a instância do componente. O _template_ **substituirá** o `innerHTML` do elemento montado. Qualquer marcação existente dentro do elemento montado será ignorada, a menos que os _slots_ de distribuição de conteúdo estejam presentes no _template_.
1010

11-
If the string starts with `#` it will be used as a `querySelector` and use the selected element's innerHTML as the template string. This allows the use of the common `<script type="x-template">` trick to include templates.
11+
Se a string começar com `#` ela será usada como um `querySelector` e usará o `innerHTML` do elemento selecionado como a _template_ string. Isso permite o uso do truque comum `<script type="x-template">` para incluir _templates_.
1212

13-
:::tip Note
14-
From a security perspective, you should only use Vue templates that you can trust. Never use user-generated content as your template.
13+
:::tip Nota
14+
De uma perspectiva de segurança, você deve usar apenas _templates_ Vue nos quais possa confiar. Nunca use conteúdo gerado pelo usuário como seu _template_.
1515
:::
1616

17-
:::tip Note
18-
If render function is present in the Vue option, the template will be ignored.
17+
:::tip Nota
18+
Se a função de renderização estiver presente na opção Vue, o _template_ será ignorado.
1919
:::
2020

21-
- **See also:**
22-
- [Lifecycle Diagram](../guide/instance.html#lifecycle-diagram)
23-
- [Content Distribution with Slots](../guide/component-basics.html#content-distribution-with-slots)
21+
- **Ver também:**
22+
- [Diagrama do ciclo de vida](../guide/instance.html#diagrama-do-ciclo-de-vida)
23+
- [Distribuição de conteúdo com _slots_](../guide/component-basics.html#distribuicao-de-conteudo-com-slots)
2424

25-
## render
25+
## `render`
2626

27-
- **Type:** `Function`
27+
- **Tipo:** `Function`
2828

29-
- **Details:**
29+
- **Detalhes:**
3030

31-
An alternative to string templates allowing you to leverage the full programmatic power of JavaScript.
31+
Uma alternativa aos _templates_ string, permitindo que você aproveite todo o poder programático do JavaScript.
3232

33-
- **Usage:**
33+
- **Uso:**
3434

3535
```html
3636
<div id="app" class="demo">
37-
<my-title blog-title="A Perfect Vue"></my-title>
37+
<my-title blog-title="Uma Vue (view) Perfeita"></my-title>
3838
</div>
3939
```
4040

@@ -45,8 +45,8 @@
4545
app.component('my-title', {
4646
render() {
4747
return h(
48-
'h1', // tag name,
49-
this.blogTitle // tag content
48+
'h1', // nome da tag,
49+
this.blogTitle // conteúdo da tag
5050
)
5151
},
5252
props: {
@@ -60,8 +60,8 @@
6060
app.mount('#app')
6161
```
6262

63-
:::tip Note
64-
The `render` function has priority over the render function compiled from `template` option or in-DOM HTML template of the mounting element
63+
:::tip Nota
64+
A função `render` tem prioridade sobre a função de renderização compilada da opção `template` ou o _template_ HTML no-DOM do elemento sendo montado
6565
:::
6666

67-
- **See also:** [Render Functions](../guide/render-function.html)
67+
- **Ver também:** [Funções de Renderização](../guide/render-function.html)

0 commit comments

Comments
 (0)