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 123123 const app = createApp({})
124124
125125 // オプションオブジェクトを登録します。
126- app.component('my-component ', {
126+ app.component('MyComponent ', {
127127 /* ... */
128128 })
129129
130130 // 登録されたコンポーネントを取得します。
131- const MyComponent = app.component('my-component ')
131+ const MyComponent = app.component('MyComponent ')
132132 ` ` `
133133
134134- ** 参照** [コンポーネントの登録](/ guide / components / registration )
156156 })
157157
158158 // 登録(オブジェクトディレクティブ)
159- app.directive('my-directive ', {
159+ app.directive('myDirective ', {
160160 /* カスタムディレクティブのフック */
161161 })
162162
163163 // 登録(関数ディレクティブの省略記法)
164- app.directive('my-directive ', () => {
164+ app.directive('myDirective ', () => {
165165 /* ... */
166166 })
167167
168168 // 登録済ディレクティブの取得
169- const myDirective = app.directive('my-directive ')
169+ const myDirective = app.directive('myDirective ')
170170 ` ` `
171171
172172- ** 参照** [カスタムディレクティブ](/ guide / reusability / custom - directives )
@@ -634,12 +634,12 @@ Vue からの実行時警告に対して、カスタムハンドラーを割り
634634- ** 例**
635635
636636 ` ` ` js
637- app.config.idPrefix = 'my-app '
637+ app.config.idPrefix = 'myApp '
638638 ` ` `
639639 ` ` ` js
640640 // コンポーネント内:
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'
643643 ` ` `
644644
645645## 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