File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -313,7 +313,7 @@ This can be especially useful in combination with the `$attrs` instance property
313
313
314
314
``` js
315
315
{
316
- class : ' username-input ' ,
316
+ required : true ,
317
317
placeholder: ' Enter your username'
318
318
}
319
319
```
@@ -337,12 +337,14 @@ Vue.component('base-input', {
337
337
})
338
338
```
339
339
340
+ <p class =" tip " >Note that `inheritAttrs: false` option does **not** affect `style` and `class` bindings.</p >
341
+
340
342
This pattern allows you to use base components more like raw HTML elements, without having to care about which element is actually at its root:
341
343
342
344
``` html
343
345
<base-input
344
346
v-model =" username"
345
- class = " username-input "
347
+ required
346
348
placeholder =" Enter your username"
347
349
></base-input >
348
350
```
You can’t perform that action at this time.
0 commit comments