Skip to content

Commit c7af027

Browse files
authored
fix: typo in component props guide (#166)
Also fixes an example syntax highlighting
1 parent 7ebaed9 commit c7af027

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/guide/component-props.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ In the event we need to define the status of the date-picker component via a `da
278278

279279
### Disabling Attribute Inheritance
280280

281-
If you do **not** want the a component to automatically inherit attributes, you can set `inheritAttrs: false` in the component's options.
281+
If you do **not** want a component to automatically inherit attributes, you can set `inheritAttrs: false` in the component's options.
282282

283283
There are two common scenarios when attribute inheritance needs to be disabled:
284284

@@ -318,7 +318,7 @@ With this new configuration, our `data-status` attribute will be applied to our
318318

319319
Unlike single root node components, components with multiple root nodes do not have an automatic attribute fallthrough behavior if `inheritAttrs` and `$attrs` are not defined. A runtime warning will be issued if this is left off
320320

321-
```js{2, 5}
321+
```js{2,5}
322322
app.component('custom-layout', {
323323
inheritAttrs: false,
324324
template: `

0 commit comments

Comments
 (0)