![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
vue
Dream Tim
这个作者很懒,什么都没留下…
展开
-
vue van-tabs组件切换tab时候,影响display:fixed属性导致降级问题解决
vue vant2van-tabs组件切换tab时候,影响display:fixed属性导致降级问题解决<template> <van-tabs v-model="active"> <van-tab title="标签 1">内容 1</van-tab> <van-tab title="标签 2">内容 2</van-tab> <van-tab title="标签 3">内容 3</van-ta原创 2022-04-20 13:30:03 · 1800 阅读 · 0 评论 -
Vue引入Bootstrap jquery 后 dropdown下拉菜单没反应
注意引入次序:jQuery (Bootstrap 的所有 JavaScript 插件都依赖 jQuery,所以必须放在前边)<template> <div> <div class="dropup"> <button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu2" data-toggle="dropdown" aria-haspopup="true" ar原创 2020-10-28 09:55:55 · 1263 阅读 · 2 评论 -
父子组件之间的数据传递
父组件:parents.vue <div style="background:purple;"> <div style="color: white">(父组件){{'这是:'+psonMsg}}</div> <child :message="parentMsg" @sonMsg='showChildMsg'></child> </div></template><script>原创 2020-10-20 10:36:04 · 167 阅读 · 0 评论 -
vue+Bootstrap实现导航栏active自动变化
<template> <div> <nav class="navbar navbar-inverse navbar-fixed-top nav-bg"> <div class="container"> <!-- links --> <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">原创 2020-09-25 17:23:04 · 2104 阅读 · 0 评论 -
Duplicate keys detected: ‘xxx‘. This may cause an update error.问题
Duplicate keys detected: 'xxx'. This may cause an update error.v-for 之前的写法<el-tag v-for="tags in dynamicTags" :key="tags" >{{tags}}</el-tag>报错 Duplicate keys detected: 'Rhizosolenia'. This may cause an update error.这里循环是有key 这里循环key重复了,原创 2020-08-19 15:56:43 · 5613 阅读 · 1 评论 -
vue 发布nginx刷新项目 404 白屏
vue2.0构建项目,默认不做配置,使用是hash模式,地址栏上有个“/#/”号,like http://localhost:8000/#/login 这样.官网文档使用history模式可以去掉#,样子like http://localhost:8000/login 这样.history模式下:当项目,在nginx上运行页面时,由于history模式的链接url是伪静态 路由地...原创 2019-12-26 10:19:10 · 1272 阅读 · 0 评论 -
[Violation] Added non-passive event listener to a scroll-blocking 'mousewheel' event. Consider marki
某度翻译将非被动事件侦听器添加到滚动阻止“鼠标滚轮”事件。考虑将事件处理程序标记为“被动”以使页更具响应性解决:https://blog.csdn.net/dj0379/article/details/52883315Google公布了一个让页面滑动更流畅的新特性Passive Event Listeners1、npm i default-passive-events -S2、ma...原创 2019-12-20 14:40:04 · 1302 阅读 · 1 评论 -
vue push传值与router-link :to传值
本文以query为例子<router-link :to="{path:'/login',query: {activeName: 'first' }}">登录</router-link><router-link :to="{path:'/register'query: {activeName: 'second' }}">注册</router-link&g...原创 2019-12-16 17:06:29 · 326 阅读 · 0 评论 -
element-ui修改el-steps默认样式
默认样式: <template> <div> <el-steps :active=values space="400px" align-center> <el-step :title="item.title" :description="item....原创 2019-08-28 15:16:47 · 19123 阅读 · 11 评论 -
el-popover修改样式
子页面修改失效原因:el-popover是和app同级el-popover的样式class也是el-popover,el-popover生成的div不在当前组件之内,和App.vue组件的div平级,所以需要设置全局style。在App.vue里添加样式 .el-popover { position: absolute; background: rgba(22,38,94...原创 2019-08-06 16:47:56 · 9539 阅读 · 5 评论 -
vue+echarts 地图携带参数下钻【demo二】
相关必要文件已上传个人GIT代码库,自行下载https://gitee.com/lemon-design/EchartsMap.git个人鼓捣了快一周了本文地图下钻部分通过watch监控返回数据,进而进行地图渲染附上代码...原创 2019-08-08 14:05:11 · 1751 阅读 · 0 评论 -
vue+echarts 地图携带参数下钻【demo一】
相关必要文件已上传个人GIT代码库,自行下载https://gitee.com/lemon-design/EchartsMap.git个人鼓捣了快一周了明日续更原创 2019-07-18 23:53:34 · 3166 阅读 · 1 评论 -
vue.js获取返回状态码
axios.interceptors.response.use(response => {console.log('拦截器 response success ')console.log(response.status)return response},error => {console.log('拦截器 response error ')console.log(erro...原创 2019-06-05 09:40:58 · 11758 阅读 · 0 评论 -
vue重置data+vue 定时器
vue实现页面定时刷新export default { name: "TimerAndDataClear", data () { return { timer: null } }, methods: { setTimer() { if(this.timer == nu...原创 2019-05-29 13:46:01 · 1160 阅读 · 0 评论 -
vue.js + element-ui 修改table右侧滚动条
在App.vue 添加全局样式 /*定义滚动条高宽及背景 高宽分别对应横竖滚动条的尺寸*/ ::-webkit-scrollbar { width: 7px; /*滚动条宽度*/ height: 7px; /*滚动条高度*/ background-color: #132958; } /*定义滑块 内阴影+圆角*/ ::-webkit-scr...原创 2019-06-06 09:37:04 · 3598 阅读 · 1 评论