Vue.js Vue js-将道具传递给Vue rotuer中的组件
我的主页上有以下内容Vue.js Vue js-将道具传递给Vue rotuer中的组件,vue.js,vuejs2,vue-router,Vue.js,Vuejs2,Vue Router,我的主页上有以下内容 <info-panel type="updates"><info-panel/> 这样做应该起到以下作用: path: '/infopanel', components: { default: InfoPanel, nav: PrimaryNav }, props: { default: true, type: "updates" } } 以下是您试图实
<info-panel type="updates"><info-panel/>
这样做应该起到以下作用:
path: '/infopanel',
components: {
default: InfoPanel,
nav: PrimaryNav
},
props: {
default: true,
type: "updates"
}
}
以下是您试图实现的目标指南:
Hi,仅当我有单个组件而不是组件对象时才传递它。
path: '/infopanel',
components: {
default: InfoPanel,
nav: PrimaryNav
},
props: {
default: true,
type: "updates"
}
}