VUE
vue
lemontreetrees
这个作者很懒,什么都没留下…
展开
-
vue脚手架安装步骤
vue脚手架安装详细步骤原创 2021-05-08 15:11:57 · 428 阅读 · 2 评论 -
vue中配置路由的详细步骤
1.定义路由组件在compoents文件夹下定义路由组件,如:HelloWorld.vue2.引入路由组件(main.js)import HelloWorld from './components/HelloWorld.vue'3.配置路由(index.js)const routes = [ { path: '/', redirect:'login' //重定向 }, //一级路由 { path: '/HelloWorld', name.原创 2021-08-18 14:09:50 · 5699 阅读 · 0 评论 -
vue中使用echarts的详细步骤
第一步:安装 echarts npm install --save echarts@4.9.0第二步:引入 echarts (main.js) import echarts from 'echarts'第三步:定义名称 (main.js) Vue.prototype.$echarts = echarts第四步:按照文档开发 <div ref="chart" style="width:600px;height:400px" ></div.原创 2021-08-17 13:30:21 · 247 阅读 · 0 评论 -
vue中使用element-ui的详细步骤
vue中使用element-ui组件库的详细步骤1.安装npm install element-ui -S //安装到本地开发者环境中安装成功后:package.json文件中会有以下信息2.导入import ElementUI from 'element-ui'; //导入组件import 'element-ui/lib/theme-chalk/index.css'; //导入样式 Vue.use(ElementUI); //全局引用3.参照官方文档开发hom原创 2021-08-03 09:17:04 · 2101 阅读 · 0 评论