摘要: 准备 安装swiper低版本的包,如swiper^3.4.2 在mian.js中引入 import 'swiper/dist/css/swiper.min.css'import 'swiper/dist/js/swiper.min' 具体使用 引入Swipre对象 mounted() { new S 阅读全文
posted @ 2021-06-30 10:44 Demy1201 阅读(122) 评论(0) 推荐(0)
摘要: module.exports = { publicPath: '/', // 项目部署的基础路径 我们默认假设你的应用将会部署在域名的根部 outputDir: 'dist', // 构建好的文件的输出地址 assetsDir: 'static', // 静态资源打包的地址 lintOnSave: 阅读全文
posted @ 2021-06-30 10:21 Demy1201 阅读(195) 评论(0) 推荐(0)
摘要: 配置文件 如果想保留 eslint 的语法检测,那就把不符合自己习惯的规则去掉吧。 配置文件在项目根目录里,文件名以 .eslintrc.* 为名。 module.exports = { root: true, parser: 'babel-eslint', parserOptions: { //设 阅读全文
posted @ 2021-06-30 10:18 Demy1201 阅读(197) 评论(0) 推荐(0)
摘要: //目标类型 data = [{},{},{}...]data = this.chartData.map((item, index) => { const newItem = { value: item.num, name: item.title_name, } return newItem}) 阅读全文
posted @ 2021-06-28 14:55 Demy1201 阅读(66) 评论(0) 推荐(0)