File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 3
3
- breaking
4
4
---
5
5
6
- # 属性強制の振舞い <MigrationBadges :badges =" $frontmatter.badges " />
6
+ # 属性強制の振る舞い <MigrationBadges :badges =" $frontmatter.badges " />
7
7
8
8
::: info Info
9
9
これはローレベルな内部 API の変更であり、ほとんどの開発者には影響しません。
@@ -56,7 +56,7 @@ badges:
56
56
57
57
- これにより、` true ` と` false ` の間の矛盾が解消され、` aria-* ` 属性の出力が容易になります。
58
58
59
- 新しい振舞いについては 、以下の表を参照してください:
59
+ 新しい振る舞いについては 、以下の表を参照してください:
60
60
61
61
| バインディング式 | ` foo ` <sup >通常の属性</sup > | ` draggable ` <sup >列挙された属性</sup > |
62
62
| ------------------- | --------------------------- | ------------------------------------- |
@@ -85,15 +85,15 @@ badges:
85
85
| ` draggable ` | ` draggable ` &rarr ; ` false ` |
86
86
| ` spellcheck ` | ` spellcheck ` &rarr ; ` true ` |
87
87
88
- これまでの振舞いを維持するために 、また、` false ` を` 'false' ` に強制するために、3.x Vue の開発者は` contenteditable ` と` spellcheck ` に対して` v-bind ` 式を` false ` または` 'false' ` に解決する必要があります。
88
+ これまでの振る舞いを維持するために 、また、` false ` を` 'false' ` に強制するために、3.x Vue の開発者は` contenteditable ` と` spellcheck ` に対して` v-bind ` 式を` false ` または` 'false' ` に解決する必要があります。
89
89
90
90
2.x では、列挙された属性に対して無効な値を` 'true' ` に強制的に設定していました。これは通常意図していなかったもので、大規模に利用される可能性は低いと思われます。3.x では、` true ` または` 'true' ` を明示的に指定する必要があります。
91
91
92
92
### 属性を削除する代わりに ` false ` を ` 'false' ` に強制する
93
93
94
94
3.x では、明示的に属性を削除するには ` null ` または ` undefined ` を使用しなければなりません。
95
95
96
- ### 2.x と 3.x 間の振舞いの比較
96
+ ### 2.x と 3.x 間の振る舞いの比較
97
97
98
98
<table >
99
99
<thead >
You can’t perform that action at this time.
0 commit comments