07 2020 档案

摘要:<template> <div id="box"> <div id="con1" ref="con1" :class="{anim:animate==true}" @mouseenter="mEnter" @mouseleave="mLeave" > <p v-for="(item,index) i 阅读全文
posted @ 2020-07-20 10:14 微笑时很美n 阅读(1872) 评论(0) 推荐(1)
摘要:通过npm 安装 npm install highcharts --save 然后在components文件夹下创建 hightBar 文件夹以及 highcharts.vue和index.js 文件 highcharts.vue写入要封装的内容 <template> <div :class="ba 阅读全文
posted @ 2020-07-20 09:59 微笑时很美n 阅读(646) 评论(0) 推荐(0)
摘要:原因是template里边有两个v-for 把其中一个的key值改变一下就行了 阅读全文
posted @ 2020-07-08 15:29 微笑时很美n 阅读(544) 评论(0) 推荐(0)
摘要:我们在官网的demo中看到饼图的引导线都是直接对接文字的 但是需求是要把文字放在引导线上方 所以代码应该修改 option:{ tooltip: { trigger: "item", formatter: "{b}: {c} ({d}%)", textStyle: { color: "#ffffff 阅读全文
posted @ 2020-07-06 15:45 微笑时很美n 阅读(7840) 评论(0) 推荐(0)
摘要:echarts是我们项目中常用的插件,在这要封装一个echarts组件,在项目中能够复用 我们先安装依赖 npm install echarts 安装成功以后在main.js中引入 import echart from 'echarts' Vue.prototype.$echarts = echar 阅读全文
posted @ 2020-07-02 17:06 微笑时很美n 阅读(801) 评论(0) 推荐(0)