File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change 123
123
const app = createApp({})
124
124
125
125
// オプションオブジェクトを登録します。
126
- app.component('my-component ', {
126
+ app.component('MyComponent ', {
127
127
/* ... */
128
128
})
129
129
130
130
// 登録されたコンポーネントを取得します。
131
- const MyComponent = app.component('my-component ')
131
+ const MyComponent = app.component('MyComponent ')
132
132
` ` `
133
133
134
134
- ** 参照** [コンポーネントの登録](/ guide / components / registration )
156
156
})
157
157
158
158
// 登録(オブジェクトディレクティブ)
159
- app.directive('my-directive ', {
159
+ app.directive('myDirective ', {
160
160
/* カスタムディレクティブのフック */
161
161
})
162
162
163
163
// 登録(関数ディレクティブの省略記法)
164
- app.directive('my-directive ', () => {
164
+ app.directive('myDirective ', () => {
165
165
/* ... */
166
166
})
167
167
168
168
// 登録済ディレクティブの取得
169
- const myDirective = app.directive('my-directive ')
169
+ const myDirective = app.directive('myDirective ')
170
170
` ` `
171
171
172
172
- ** 参照** [カスタムディレクティブ](/ guide / reusability / custom - directives )
@@ -634,12 +634,12 @@ Vue からの実行時警告に対して、カスタムハンドラーを割り
634
634
- ** 例**
635
635
636
636
` ` ` js
637
- app.config.idPrefix = 'my-app '
637
+ app.config.idPrefix = 'myApp '
638
638
` ` `
639
639
` ` ` js
640
640
// コンポーネント内:
641
- const id1 = useId() // 'my-app :0'
642
- const id2 = useId() // 'my-app :1'
641
+ const id1 = useId() // 'myApp :0'
642
+ const id2 = useId() // 'myApp :1'
643
643
` ` `
644
644
645
645
## app .config .throwUnhandledErrorInProduction < sup class = " vt-badge" data - text = " 3.5+" / > {#app-config-throwunhandlederrorinproduction }
You can’t perform that action at this time.
0 commit comments