We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
答案:
第一步:在 components 目录新建你的组件文件(如:indexPage.vue),script 一定要 export default {}
第二步:在需要用的页面(组件)中导入:import indexPage from '@/components/indexPage.vue'
第三步:注入到 vue 的子组件的 components 属性上面,components:{indexPage}
第四步:在 template 视图 view 中使用
遇到的问题: 例如有 indexPage 命名,使用的时候则 index-page
The text was updated successfully, but these errors were encountered:
No branches or pull requests
答案:
第一步:在 components 目录新建你的组件文件(如:indexPage.vue),script 一定要 export default {}
第二步:在需要用的页面(组件)中导入:import indexPage from '@/components/indexPage.vue'
第三步:注入到 vue 的子组件的 components 属性上面,components:{indexPage}
第四步:在 template 视图 view 中使用
遇到的问题:
例如有 indexPage 命名,使用的时候则 index-page
The text was updated successfully, but these errors were encountered: