Skip to content

Commit c8f743a

Browse files
skirtles-codenaokie
authored andcommitted
docs: document the removal of binding.expression (#1133)
1 parent 3c7cfe1 commit c8f743a

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/guide/migration/custom-directives.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ badges:
99

1010
コンポーネントのライフサイクルに合わせて、ディレクティブのフック関数の名称が変更されました。
1111

12+
加えて、`expression` 文字列は `binding` オブジェクトの一部として渡されなくなりました。
13+
1214
## 2.x での構文
1315

1416
Vue 2 では、以下のフックを使用して要素のライフサイクルをターゲットにしたカスタムディレクティブが作成していました。これらはすべてオプションです。

src/guide/migration/introduction.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ Vue 3 で注目すべきいくつかの新機能の次のとおりです。
100100
- `destroyed` ライフサイクルオプションの名前が `unmounted` に変更されました
101101
- `beforeDestroy` ライフサイクルオプションの名前が `beforeUnmount` に変更されました
102102
- [Props の `default` ファクトリ関数は `this` コンテキストにアクセスできなくなりました](/guide/migration/props-default-this.html)
103-
- [コンポーネントライフサイクルに合わせてカスタムディレクティブ API が変更されました](/guide/migration/custom-directives.html)
103+
- [コンポーネントライフサイクルに合わせてカスタムディレクティブ API が変更され、`binding.expression` が削除されました](/guide/migration/custom-directives.html)
104104
- [`data` オプションは常に関数として宣言されることが必要になりました](/guide/migration/data-option.html)
105105
- [ミックスインの `data` オプションは浅くマージされるようになりました](/guide/migration/data-option.html#mixin-merge-behavior-change)
106106
- [属性強制の戦略が変更されました](/guide/migration/attribute-coercion.html)

0 commit comments

Comments
 (0)