Skip to content

Commit 86d84af

Browse files
authored
Migration > Slots Unification の翻訳 (#265)
* fix: translate 'x.x syntax' * fix: translate 'migration strategy'
1 parent dc6bf4c commit 86d84af

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/guide/migration/slots-unification.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ badges:
1616

1717
詳細については、以下をお読みください!
1818

19-
## 2.x 構文
19+
## 2.x での構文
2020

2121
render 関数を使用する場合、つまり、`h` は、2.x ではコンテンツノードの `slot` データプロパティを定義するために使用されます。
2222

2323
```js
24-
// 2.x 構文
24+
// 2.x での構文
2525
h(LayoutComponent, [
2626
h('div', { slot: 'header' }, this.header),
2727
h('div', { slot: 'content' }, this.content)
@@ -31,16 +31,16 @@ h(LayoutComponent, [
3131
さらに、スコープ付きスロットを参照する場合、次の構文を使用して参照できます:
3232

3333
```js
34-
// 2.x 構文
34+
// 2.x での構文
3535
this.$scopedSlots.header
3636
```
3737

38-
## 3.x 構文
38+
## 3.x での構文
3939

4040
3.x では、スロットはオブジェクトとしての現在のノードの子として定義されています:
4141

4242
```js
43-
// 3.x 構文
43+
// 3.x での構文
4444
h(LayoutComponent, {}, {
4545
header: () => h('div', this.header),
4646
content: () => h('div', this.content)
@@ -50,14 +50,14 @@ h(LayoutComponent, {}, {
5050
また、スコープ付きスロットをプログラムで参照する必要がある場合、それらは `$slots` オプションに統合されるようになりました。
5151

5252
```js
53-
// 2.x 構文
53+
// 2.x での構文
5454
this.$scopedSlots.header
5555

56-
// 3.x 構文
56+
// 3.x での構文
5757
this.$slots.header()
5858
```
5959

60-
## 移行戦略
60+
## 移行の戦略
6161

6262
変更の大部分はすでに 2.6 で行われています。その結果、移行は1つのステップで実行できます:
6363

0 commit comments

Comments
 (0)