File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 9
9
10
10
コンポーネントのライフサイクルに合わせて、ディレクティブのフック関数の名称が変更されました。
11
11
12
+ 加えて、` expression ` 文字列は ` binding ` オブジェクトの一部として渡されなくなりました。
13
+
12
14
## 2.x での構文
13
15
14
16
Vue 2 では、以下のフックを使用して要素のライフサイクルをターゲットにしたカスタムディレクティブが作成していました。これらはすべてオプションです。
Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ Vue 3 で注目すべきいくつかの新機能の次のとおりです。
100
100
- ` destroyed ` ライフサイクルオプションの名前が ` unmounted ` に変更されました
101
101
- ` beforeDestroy ` ライフサイクルオプションの名前が ` beforeUnmount ` に変更されました
102
102
- [ 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 )
104
104
- [ ` data ` オプションは常に関数として宣言されることが必要になりました] ( /guide/migration/data-option.html )
105
105
- [ ミックスインの ` data ` オプションは浅くマージされるようになりました] ( /guide/migration/data-option.html#mixin-merge-behavior-change )
106
106
- [ 属性強制の戦略が変更されました] ( /guide/migration/attribute-coercion.html )
You can’t perform that action at this time.
0 commit comments