We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93b501a commit 0ae5b64Copy full SHA for 0ae5b64
src/guide/migration/props-default-this.md
@@ -19,11 +19,13 @@ import { inject } from 'vue'
19
20
export default {
21
props: {
22
- theme: props => {
23
- // `props` is the raw values passed to the component,
24
- // before any type / default coercions
25
- // can also use `inject` to access injected properties
26
- return inject('theme', 'default-theme')
+ theme: {
+ default (props) {
+ // `props` is the raw values passed to the component,
+ // before any type / default coercions
+ // can also use `inject` to access injected properties
27
+ return inject('theme', 'default-theme')
28
+ }
29
}
30
31
0 commit comments