File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -82,9 +82,9 @@ const app = Vue.createApp({
82
82
83
83
一般的に属性の無効化は、ルート要素ではない別の要素に属性を適用したいようなケースで利用される場面が考えられるでしょう。
84
84
85
- ` inheritAttrs ` を ` false ` にセットした場合、コンポーネントの ` $attrs ` プロパティを通じて、コンポーネントのプロパティ ( ` props ` や ` emits ` それに ` class ` や ` style ` 、 ` v-on ` といったもの)を除く全ての属性にアクセスできるようになります 。
85
+ ` inheritAttrs ` を ` false ` にセットした場合、コンポーネントの ` $attrs ` プロパティを通じて、` props ` や ` emits ` といったコンポーネントのプロパティを除く全ての属性(例えば ` class ` や ` style ` 、 ` v-on ` といったものも)にアクセスできるようになります 。
86
86
87
- [ previous section ] ( '#属性の継承 ) で利用した date-picker のコンポーネント例を用いて、プロパティでない属性の全てを ルートの ` div ` 要素ではなく ` input ` 要素に適用する場合、` v-bind ` を用いて簡略的に記述することも可能です。
87
+ [ 前節 ] ( '#属性の継承 ) で利用した date-picker のコンポーネント例を用いて、プロパティでない属性の全てを ルートの ` div ` 要素ではなく ` input ` 要素に適用する場合、` v-bind ` を用いて簡略的に記述することも可能です。
88
88
89
89
``` js{5}
90
90
app.component('date-picker', {
You can’t perform that action at this time.
0 commit comments