-
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #109 from SaitoYuto/master
Doc Japanese Translation
- Loading branch information
Showing
94 changed files
with
2,262 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
- [English](/) | ||
- [简体中文](/zh-cn/readme.md) | ||
- [Portuguese](/pt-br/readme.md) | ||
- [Portuguese](/pt-br/readme.md) | ||
- [Japanese](/ja/readme.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
- [英語](/) | ||
- [简体中文](/zh-cn/readme.md) | ||
- [ポルトガル語](/pt-br/readme.md) | ||
- [日本語](/ja/readme.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
- [インフォメーション](/ja/readme.md) | ||
- [クイックスタート](/ja/quick-start/quick-start.md) | ||
- クラスコンポーネント | ||
- [コンポーネント](/ja/class-component/component/component.md) | ||
- [プロパティ](/ja/class-component/property/property.md) | ||
- [メソッド](/ja/class-component/method/method.md) | ||
- [フック](/ja/class-component/hooks/hooks.md) | ||
- [コンポーネントプロパティ](/ja/class-component/component-property/component-property.md) | ||
- [アクセサ](/ja/class-component/accessor/accessor.md) | ||
- [イベント](/ja/class-component/event/event.md) | ||
- [リファレンス](/ja/class-component/reference/reference.md) | ||
- [ウォッチャー](/ja/class-component/watcher/watcher.md) | ||
- [プロバイド](/ja/class-component/provide/provide.md) | ||
- [インジェクション](/ja/class-component/injection/injection.md) | ||
- [モデル](/ja/class-component/model/model.md) | ||
- [セットアップ](/ja/class-component/setup/setup.md) | ||
- 継承 | ||
- [ECMAScript クラス](/ja/inheritance/es-class/es-class.md) | ||
- [コンポーネント](/ja/inheritance/component/component.md) | ||
- [高度な例](/ja/inheritance/complex-example/complex-example.md) | ||
- TSX | ||
- [TSX レンダー](/ja/tsx/tsx-render/tsx-render.md) | ||
- [アトリビュート タイプ](/ja/tsx/attribute-types/attribute-types.md) | ||
- Custom Decorator | ||
- [カスタム デコレーター](/ja/custom/custom.md) | ||
- v2 からのマイグレーション | ||
- [v2 からのマイグレーション](/ja/migrate-from-v2/migrate-from-v2.md) | ||
- Stage3 decorators | ||
- [Stage3 デコレーター](/ja/stage3-decorators/stage3-decorators.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
## 使用方法 | ||
|
||
`getters`プロパティは`{computed:{get:Foo}}`に変換されます。 | ||
|
||
[](./code-usage.ts ':include :type=code typescript') | ||
|
||
## 書き込み可能な算出関数 | ||
|
||
`setters`プロパティは`{computed:{set:Foo}}`に変換されます。 | ||
|
||
[](./code-writable.ts ':include :type=code typescript') | ||
|
||
## Vanilla ゲッター | ||
|
||
`@Vanilla`でES vanillaのゲッターを定義できます。 | ||
|
||
[](./code-vanilla-getter.ts ':include :type=code typescript') | ||
|
||
## Vanilla セッター | ||
|
||
`@Vanilla`でES vanillaのセッターを定義できます。 | ||
|
||
[](./code-vanilla-setter.ts ':include :type=code typescript') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
|
||
import { Component, Vue, toNative } from 'vue-facing-decorator' | ||
|
||
/* | ||
Vue options API | ||
{ | ||
computed:{ | ||
get(){ | ||
return 'value' | ||
} | ||
} | ||
} | ||
*/ | ||
|
||
@Component | ||
class MyComponent extends Vue { | ||
get getter() { | ||
return 'value' | ||
} | ||
} | ||
|
||
export default toNative(MyComponent) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
|
||
import { Component, Vue, Vanilla, toNative } from 'vue-facing-decorator' | ||
|
||
@Component | ||
class MyComponent extends Vue { | ||
@Vanilla | ||
get getter() { | ||
return 'value' | ||
} | ||
} | ||
|
||
export default toNative(MyComponent) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
|
||
import { Component, Vue, Vanilla, toNative } from 'vue-facing-decorator' | ||
|
||
@Component | ||
class MyComponent extends Vue { | ||
foo = '' | ||
@Vanilla | ||
set setter(bar: string) { | ||
this.foo = bar | ||
} | ||
} | ||
|
||
export default toNative(MyComponent) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
|
||
import { Component, Vue, toNative } from 'vue-facing-decorator' | ||
|
||
/* | ||
Vue options API | ||
{ | ||
data(){ | ||
return { | ||
foo:'' | ||
} | ||
}, | ||
computed:{ | ||
set(bar){ | ||
this.foo = bar | ||
} | ||
} | ||
} | ||
*/ | ||
|
||
@Component | ||
class MyComponent extends Vue { | ||
foo = '' | ||
set setter(bar: string) { | ||
this.foo = bar | ||
} | ||
} | ||
|
||
export default toNative(MyComponent) |
24 changes: 24 additions & 0 deletions
24
docs/ja/class-component/component-property/code-option-default.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
|
||
import { Prop, Component, Vue, toNative } from 'vue-facing-decorator' | ||
|
||
/* | ||
Vue options API | ||
{ | ||
props:{ | ||
p:{ | ||
default: 'foo' | ||
} | ||
} | ||
} | ||
*/ | ||
|
||
@Component | ||
class MyComponent extends Vue { | ||
@Prop({ | ||
default: 'foo' | ||
}) | ||
p!: string | ||
} | ||
|
||
export default toNative(MyComponent) |
24 changes: 24 additions & 0 deletions
24
docs/ja/class-component/component-property/code-option-required.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
|
||
import { Prop, Component, Vue, toNative } from 'vue-facing-decorator' | ||
|
||
/* | ||
Vue options API | ||
{ | ||
props:{ | ||
p:{ | ||
required:true | ||
} | ||
} | ||
} | ||
*/ | ||
|
||
@Component | ||
class MyComponent extends Vue { | ||
@Prop({ | ||
required: true | ||
}) | ||
p!: string | ||
} | ||
|
||
export default toNative(MyComponent) |
24 changes: 24 additions & 0 deletions
24
docs/ja/class-component/component-property/code-option-type.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
|
||
import { Prop, Component, Vue, toNative } from 'vue-facing-decorator' | ||
|
||
/* | ||
Vue options API | ||
{ | ||
props:{ | ||
p:{ | ||
type: String | ||
} | ||
} | ||
} | ||
*/ | ||
|
||
@Component | ||
class MyComponent extends Vue { | ||
@Prop({ | ||
type: String | ||
}) | ||
p?: string | ||
} | ||
|
||
export default toNative(MyComponent) |
28 changes: 28 additions & 0 deletions
28
docs/ja/class-component/component-property/code-option-validator.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
|
||
import { Prop, Component, Vue, toNative } from 'vue-facing-decorator' | ||
|
||
/* | ||
Vue options API | ||
{ | ||
props:{ | ||
p:{ | ||
validator(val:any){ | ||
return true | ||
} | ||
} | ||
} | ||
} | ||
*/ | ||
|
||
@Component | ||
class MyComponent extends Vue { | ||
@Prop({ | ||
validator(val: any) { | ||
return true | ||
} | ||
}) | ||
p?: string | ||
} | ||
|
||
export default toNative(MyComponent) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
|
||
import { Prop, Component, Vue, toNative } from 'vue-facing-decorator' | ||
|
||
/* | ||
Vue options API | ||
{ | ||
props:{ | ||
p:{ | ||
} | ||
} | ||
} | ||
*/ | ||
|
||
@Component | ||
class MyComponent extends Vue { | ||
@Prop | ||
p?: string | ||
} | ||
|
||
export default toNative(MyComponent) |
31 changes: 31 additions & 0 deletions
31
docs/ja/class-component/component-property/component-property.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
## 使用方法 | ||
|
||
`Prop`デコレーターを使用して、Vue の`props`を定義できます。 | ||
|
||
[](./code-usage.ts ':include :type=code typescript') | ||
|
||
## オプション | ||
|
||
### default | ||
|
||
以下のソースコードでは`props`のデフォルト値を設定しています。 | ||
|
||
[](./code-option-default.ts ':include :type=code typescript') | ||
|
||
### required | ||
|
||
以下のソースコードでは`props`の必須是非を設定しています。 | ||
|
||
[](./code-option-required.ts ':include :type=code typescript') | ||
|
||
### type | ||
|
||
以下のソースコードでは`props`のデータ型を設定しています。 | ||
|
||
[](./code-option-type.ts ':include :type=code typescript') | ||
|
||
### validator | ||
|
||
以下のソースコードでは`props`のバリデーターを設定しています。 | ||
|
||
[](./code-option-validator.ts ':include :type=code typescript') |
27 changes: 27 additions & 0 deletions
27
docs/ja/class-component/component/code-option-components.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
|
||
import { Component, Vue, toNative } from 'vue-facing-decorator' | ||
|
||
@Component | ||
class MyAnotherComponent extends Vue { | ||
|
||
} | ||
|
||
/* | ||
Vue options component | ||
{ | ||
components:{ | ||
MyAnotherComponent | ||
} | ||
} | ||
*/ | ||
|
||
@Component({ | ||
components: { | ||
MyAnotherComponent | ||
} | ||
}) | ||
class MyComponent extends Vue { | ||
|
||
} | ||
|
||
export default toNative(MyComponent) |
22 changes: 22 additions & 0 deletions
22
docs/ja/class-component/component/code-option-directives.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
|
||
import { Component, Vue, toNative } from 'vue-facing-decorator' | ||
|
||
/* | ||
Vue options component | ||
{ | ||
directives:{ | ||
MyDirective:{} | ||
} | ||
} | ||
*/ | ||
|
||
@Component({ | ||
directives: { | ||
MyDirective: {} | ||
} | ||
}) | ||
class MyComponent extends Vue { | ||
|
||
} | ||
|
||
export default toNative(MyComponent) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
|
||
import { Component, Vue, toNative } from 'vue-facing-decorator' | ||
|
||
/* | ||
Vue options component | ||
{ | ||
emits:['MyEvent'] | ||
} | ||
*/ | ||
|
||
@Component({ | ||
emits: ['MyEvent'] | ||
}) | ||
class MyComponent extends Vue { | ||
|
||
} | ||
|
||
export default toNative(MyComponent) |
Oops, something went wrong.