Skip to content

Commit 339108b

Browse files
committed
translate virtual DOM tree section
1 parent 7477902 commit 339108b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/guide/render-function.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,15 +117,15 @@ render() {
117117

118118
E em ambos os casos, o Vue automaticamente mantem a página atualizada, até mesmo quando o `blogTitle` muda.
119119

120-
## The Virtual DOM tree
120+
## A árvore Virtual DOM
121121

122-
Vue keeps the page updated by building a **virtual DOM** to keep track of the changes it needs to make to the real DOM. Taking a closer look at this line:
122+
Vue mantem a página atualizada compilando um **DOM virtual** para acompanhar as mudanças que necessita para fazer o DOM real. Olhando a seguinte linha mais de perto:
123123

124124
```js
125125
return Vue.h('h1', {}, this.blogTitle)
126126
```
127127

128-
What is the `h()` function returning? It's not _exactly_ a real DOM element. It returns a plain object which contains information describing to Vue what kind of node it should render on the page, including descriptions of any child nodes. We call this node description a "virtual node", usually abbreviated to **VNode**. "Virtual DOM" is what we call the entire tree of VNodes, built by a tree of Vue components.
128+
O que função `h()` retorna? Não é _exatamente_ um elemento DOM real. Ela retorna um objeto que contém informações que descrevem para o Vue que tipo de nó deve ser renderizado na página, incluíndo descrições de qualquer nó filho. Chamamos essa descrição do nó de "nó virtual", geralmente abreviado para **_VNode_**. "Virtual DOM" é como chamamos toda a árvore de _VNodes_, constituída de uma árvore de componentes Vue.
129129

130130
## `h()` Arguments
131131

0 commit comments

Comments
 (0)