@@ -18,31 +18,31 @@ A conversão reativa é "profunda" - ela afeta todas as propriedades aninhadas.
18
18
function reactive<T extends object >(target : T ): UnwrapNestedRefs <T >
19
19
```
20
20
21
- ::: tip Note
22
- ` reactive ` will unwrap all the deep [refs ](./ refs - api .html #ref ), while maintaining the ref reactivity
21
+ ::: tip Nota
22
+ ` reactive ` desempacotar á profundamente todas as [refs ](./refs -api .html #ref ), enquanto mant é m a reatividade da ref
23
23
24
24
` ` ` ts
25
25
const count = ref(1)
26
26
const obj = reactive({ count })
27
27
28
- // ref will be unwrapped
28
+ // A ref será desempacotada
29
29
console.log(obj.count === count.value) // true
30
30
31
- // it will update ` obj .count `
31
+ // Isto vai atualizar ` obj .count `
32
32
count.value++
33
33
console.log(count.value) // 2
34
34
console.log(obj.count) // 2
35
35
36
- // it will also update ` count ` ref
36
+ // Isto também vai atualizar a ref ` count `
37
37
obj.count++
38
38
console.log(obj.count) // 3
39
39
console.log(count.value) // 3
40
40
` ` `
41
41
42
42
:::
43
43
44
- ::: warning Important
45
- When assigning a [ref ](./ refs - api .html #ref ) to a ` reactive ` property , that ref will be automatically unwrapped .
44
+ ::: warning Importante
45
+ Ao atribuir um [ref ](./ refs - api .html #ref ) a uma propriedade ` reactive ` , este ref ser á automaticamente desempacotado .
46
46
47
47
` ` ` ts
48
48
const count = ref(1)
@@ -77,7 +77,7 @@ original.count++
77
77
copy.count++ // aviso!
78
78
` ` `
79
79
80
- As with [` reactive ` ](#reactive ), if any property uses a ` ref ` it will be automatically unwrapped when it is accessed via the proxy :
80
+ Assim como acontece com [` reactive ` ](#reactive ), se alguma propriedade usar ` ref ` , este ser á automaticamente desempacotado quando for acessado pelo _proxy_ :
81
81
82
82
` ` ` js
83
83
const raw = {
0 commit comments