摘要: 1、npm 下载 echarts npm install echarts@4 --save 2、全局引入main.js或者按需引入 import echarts from "echarts"; 3、创建一个容器 div ,并赋予一个 ref,之后要通过这个 ref 属性来建立图表实例 <div id 阅读全文
posted @ 2022-01-06 17:13 RikkaXl 阅读(135) 评论(0) 推荐(0) 编辑
摘要: 1、在main.js全局引入,别忘了npm i 下载先 安装基础依赖 $ npm i --save @fortawesome/fontawesome $ npm i --save @fortawesome/vue-fontawesome 安装样式依赖 $ npm i --save @fortawes 阅读全文
posted @ 2022-01-06 17:11 RikkaXl 阅读(1910) 评论(0) 推荐(0) 编辑
摘要: 1、Object.hasOwnProperty( v: PropertyKey): boolean getTypeSelectionMenu().then(res => { for (let item in res.data) { //添加hasOwnProperty验证,作用是看看有没有这个属性 阅读全文
posted @ 2022-01-06 16:44 RikkaXl 阅读(98) 评论(0) 推荐(0) 编辑
点击右上角即可分享
微信分享提示