diff --git a/src/guide/migration/props-default-this.md b/src/guide/migration/props-default-this.md index 56ddde52f9..965fd47080 100644 --- a/src/guide/migration/props-default-this.md +++ b/src/guide/migration/props-default-this.md @@ -19,11 +19,13 @@ import { inject } from 'vue' export default { props: { - theme: props => { - // `props` is the raw values passed to the component, - // before any type / default coercions - // can also use `inject` to access injected properties - 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 + return inject('theme', 'default-theme') + } } } }