会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
凉城i
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
下一页
2020年11月16日
Vue 全局组件传递参数
摘要: 1.在components文件下创建相关组件如(breadcrumb.vue) <template> <div> <el-breadcrumb separator-class="el-icon-arrow-right"> <el-breadcrumb-item :to="{ path: '/home
阅读全文
posted @ 2020-11-16 15:14 凉城i
阅读(1680)
评论(0)
推荐(0)
2020年10月26日
echarts渐变发光半圆仪表盘
摘要: <!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
阅读(1069)
评论(0)
推荐(1)
2020年10月23日
左侧折叠菜单在sessionStorage中保存左侧菜单的激活状态
摘要: 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
阅读(287)
评论(0)
推荐(0)
2020年10月9日
Vue 封装网络工具类
摘要: 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
阅读(417)
评论(0)
推荐(0)
2020年9月30日
.browserslistrc 配置兼容浏览器
摘要: 通过vue-cli创建的脚手架项目, 配置.browserslistrc 即可实现CSS3/ES678 语法兼容 ie >= 8 Firefox >= 3.5 chrome >= 35 opera >= 11.5
阅读全文
posted @ 2020-09-30 15:45 凉城i
阅读(3619)
评论(0)
推荐(0)
postcss-pxtorem 配置
摘要: postcss-pxtorem 用于自动帮助将px转换成rem,所以在编写代码时候,直接按照设计图px即可 module.exports = { plugins: { autoprefixer: {}, 'postcss-pxtorem': { rootValue: 100, // 根元素字体大小
阅读全文
posted @ 2020-09-30 15:39 凉城i
阅读(3388)
评论(0)
推荐(0)
html-loader 配置
摘要: module.exports = { /* 部署应用包的基本URL, 不设置可能会出现打包后项目找不到资源问题 */ publicPath: './', configureWebpack: { module: { rules: [ { test: /\.(html)$/, exclude: /nod
阅读全文
posted @ 2020-09-30 15:26 凉城i
阅读(827)
评论(0)
推荐(0)
2020年9月27日
解决vue项目刷新后,导航菜单高亮显示的位置不对问题
摘要: <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
阅读(797)
评论(0)
推荐(0)
2020年9月16日
css实现文字加垂直竖线
摘要: 方法一:直接在文字后面+“|” 方法二: border-right来实现(不可操作竖线高度) margin-right: 15px; padding-right: 15px; border-right: 1px solid #6598c7; 方法三:伪类实现 .content { &:after {
阅读全文
posted @ 2020-09-16 10:54 凉城i
阅读(4059)
评论(0)
推荐(0)
2020年9月5日
Element ui 按需引入配置babel.confg.js
摘要: module.exports = { presets: [ ['@vue/cli-plugin-babel/preset', { modules: false }] ], plugins: [ [ 'component', { libraryName: 'element-ui', styleLibr
阅读全文
posted @ 2020-09-05 17:34 凉城i
阅读(578)
评论(0)
推荐(0)
上一页
1
2
3
下一页
公告