标签:配置路由 use col class content style menu element default
[1]安装vue_cli
[2]安装Element-UI
[3]在项目main.js文件中引用Element-UI
import ElementUI from ‘element-ui‘ import ‘element-ui/lib/theme-chalk/index.css‘ Vue.use(ElementUI)
[4]在组件中引用组件
<template> <homeContent></homeContent> </template> <script> import menuLeft from ‘./homeContent.vue‘ export default { components: { menuLeft, menuTop, homeContent } } </script>
[5]在项目index.js文件中配置路由
标签:配置路由 use col class content style menu element default
原文地址:https://www.cnblogs.com/mobaiyu/p/11202508.html