摘要: <!DOCTYPE html> <html style="height: 100%"> <head> <meta charset="utf-8"> </head> <body style="height: 100%; margin: 0"> <div id="container" style="he 阅读全文
posted @ 2020-10-26 10:58 凉城i 阅读(995) 评论(0) 推荐(1) 编辑
摘要: 1.给el-menu添加 :default-active="activePath" default-active(当前激活菜单的index) <el-menu background-color="#333744" text-color="#fff" active-text-color="#409EF 阅读全文
posted @ 2020-10-23 10:25 凉城i 阅读(262) 评论(0) 推荐(0) 编辑
摘要: 1.创建nextwork.js import axios from 'axios' // 进行一些全局配置 axios.defaults.baseURL = 'http://127.0.0.1:3000' axios.defaults.timeout = 3000 // 封装组件的get/post方 阅读全文
posted @ 2020-10-09 16:36 凉城i 阅读(406) 评论(0) 推荐(0) 编辑
摘要: 通过vue-cli创建的脚手架项目, 配置.browserslistrc 即可实现CSS3/ES678 语法兼容 ie >= 8 Firefox >= 3.5 chrome >= 35 opera >= 11.5 阅读全文
posted @ 2020-09-30 15:45 凉城i 阅读(3508) 评论(0) 推荐(0) 编辑
摘要: postcss-pxtorem 用于自动帮助将px转换成rem,所以在编写代码时候,直接按照设计图px即可 module.exports = { plugins: { autoprefixer: {}, 'postcss-pxtorem': { rootValue: 100, // 根元素字体大小 阅读全文
posted @ 2020-09-30 15:39 凉城i 阅读(3274) 评论(0) 推荐(0) 编辑
摘要: module.exports = { /* 部署应用包的基本URL, 不设置可能会出现打包后项目找不到资源问题 */ publicPath: './', configureWebpack: { module: { rules: [ { test: /\.(html)$/, exclude: /nod 阅读全文
posted @ 2020-09-30 15:26 凉城i 阅读(800) 评论(0) 推荐(0) 编辑
摘要: <template> <div class="menu"> <div :class="index==menuIndex?'active':'menu-box'" v-for="(item,index) in menu" :key="index" @click="setMenu(index)"> <r 阅读全文
posted @ 2020-09-27 15:51 凉城i 阅读(741) 评论(0) 推荐(0) 编辑
摘要: 方法一:直接在文字后面+“|” 方法二: border-right来实现(不可操作竖线高度) margin-right: 15px; padding-right: 15px; border-right: 1px solid #6598c7; 方法三:伪类实现 .content { &:after { 阅读全文
posted @ 2020-09-16 10:54 凉城i 阅读(3717) 评论(0) 推荐(0) 编辑
摘要: module.exports = { presets: [ ['@vue/cli-plugin-babel/preset', { modules: false }] ], plugins: [ [ 'component', { libraryName: 'element-ui', styleLibr 阅读全文
posted @ 2020-09-05 17:34 凉城i 阅读(566) 评论(0) 推荐(0) 编辑
摘要: <input v-model="sth" /> // 等同于 <input :value="sth" @input="sth = $event.target.value" /> v-model只不过是一个语法糖而已,真正的实现靠的还是 v-bind:绑定响应式数据 触发oninput 事件并传递数据 阅读全文
posted @ 2020-09-04 00:35 凉城i 阅读(304) 评论(0) 推荐(0) 编辑