Skip to content

Commit 3b6e4ca

Browse files
authored
Merge pull request #52 from BrendonHenrique/master
Docs: Portuguese translation
2 parents bfd5b52 + 5c5ea87 commit 3b6e4ca

File tree

82 files changed

+1796
-2
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+1796
-2
lines changed

docs/en/_navbar.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
- [English](/)
2-
- [简体中文](/zh-cn/readme.md)
2+
- [简体中文](/zh-cn/readme.md)
3+
- [Portuguese](/pt-br/readme.md)

docs/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
loadNavbar: true,
4444
mergeNavbar: true,
4545
alias: {
46+
'/pt-br/(.*)': '/pt-br/$1',
4647
'/zh-cn/(.*)': '/zh-cn/$1',
4748
'/en/(.*)': '/en/$1',
4849
'/': '/readme.md',

docs/pt-br/_navbar.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
- [Inglês](/en/readme.md)
2+
- [Chinês](/zh-cn/readme.md)
3+
- [Português](/pt-br/readme.md)

docs/pt-br/_sidebar.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
- [Informações](/pt-br/readme.md)
2+
- [Começar](/pt-br/quick-start/quick-start.md)
3+
- Class components
4+
- [Componentes](/pt-br/class-component/component/component.md)
5+
- [Propriedades](/pt-br/class-component/property/property.md)
6+
- [Métodos](/pt-br/class-component/method/method.md)
7+
- [Hooks](/pt-br/class-component/hooks/hooks.md)
8+
- [Propriedades dos Componentes](/pt-br/class-component/component-property/component-property.md)
9+
- [Acessores](/pt-br/class-component/accessor/accessor.md)
10+
- [Eventos](/pt-br/class-component/event/event.md)
11+
- [Referencias](/pt-br/class-component/reference/reference.md)
12+
- [Observadores](/pt-br/class-component/watcher/watcher.md)
13+
- [Inject](/pt-br/class-component/injection/injection.md)
14+
- [Model](/pt-br/class-component/model/model.md)
15+
- [Use](/pt-br/class-component/use/use.md)
16+
- Herança
17+
- [Classes ECMAScript](/pt-br/inheritance/es-class/es-class.md)
18+
- [Componentes](/pt-br/inheritance/component/component.md)
19+
- [Exemplo complexo](/pt-br/inheritance/complex-example/complex-example.md)
20+
- TSX
21+
- [TSX render](/pt-br/tsx/tsx-render/tsx-render.md)
22+
- [Tipando Atributos](/pt-br/tsx/attribute-types/attribute-types.md)
23+
- Compatibilidade
24+
- [reflect-metadata](/pt-br/compatibility/reflect-metadata/reflect-metadata.md)
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
## Utilização
2+
3+
Getters de uma propriedade será transformada em `{computed:{get:Foo}}`.
4+
5+
[](./code-usage.ts ':include :type=code typescript')
6+
7+
## Escrita
8+
9+
Setters de uma propriedade será transformada em `{computed:{set:Foo}}`.
10+
11+
[](./code-writable.ts ':include :type=code typescript')
12+
13+
## Vanilla getter
14+
15+
Nós podemos definir um getter utilizando ES vanilla com `@Vanilla`.
16+
17+
[](./code-vanilla-getter.ts ':include :type=code typescript')
18+
19+
## Vanilla setter
20+
21+
Nós podemos definir também um setter utilizando ES vanilla com `@Vanilla`.
22+
23+
[](./code-vanilla-setter.ts ':include :type=code typescript')
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
2+
import { Component, Vue } from 'vue-facing-decorator'
3+
4+
/*
5+
Vue options API
6+
{
7+
computed:{
8+
get(){
9+
return 'value'
10+
}
11+
}
12+
}
13+
*/
14+
15+
@Component
16+
export default class MyComponent extends Vue {
17+
get getter() {
18+
return 'value'
19+
}
20+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
2+
import { Component, Vue, Vanilla } from 'vue-facing-decorator'
3+
4+
@Component
5+
export default class MyComponent extends Vue {
6+
@Vanilla
7+
get getter() {
8+
return 'value'
9+
}
10+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
2+
import { Component, Vue, Vanilla } from 'vue-facing-decorator'
3+
4+
@Component
5+
export default class MyComponent extends Vue {
6+
foo = ''
7+
@Vanilla
8+
set setter(bar: string) {
9+
this.foo = bar
10+
}
11+
}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
2+
import { Component, Vue } from 'vue-facing-decorator'
3+
4+
/*
5+
Vue options API
6+
{
7+
data(){
8+
return {
9+
foo:''
10+
}
11+
},
12+
computed:{
13+
set(bar){
14+
this.foo = bar
15+
}
16+
}
17+
}
18+
*/
19+
20+
@Component
21+
export default class MyComponent extends Vue {
22+
foo = ''
23+
set setter(bar: string) {
24+
this.foo = bar
25+
}
26+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
2+
import { Prop, Component, Vue } from 'vue-facing-decorator'
3+
4+
/*
5+
6+
Vue options API
7+
{
8+
props:{
9+
p:{
10+
default: 'foo'
11+
}
12+
}
13+
}
14+
*/
15+
16+
@Component
17+
export default class MyComponent extends Vue {
18+
@Prop({
19+
default: 'foo'
20+
})
21+
p!: string
22+
}

0 commit comments

Comments
 (0)