vue大屏页面开发中Echarts地图默认颜色是白色,有点丑需要设置一个默认颜色来调整一下。
areaColor: '#00BCFF',
itemStyle: {
normal: {
borderColo...
yekong
3年前 (2021-12-01)
喜欢
vue项目开发中,经常需要一些列表滚动效果,之前一直使用的是liMarquee,一个滚动的时候,效果还可以,多个滚动的时候总感觉有点不对,就换了一个插件
安装依赖
npm i vue-seamless-scroll --save
使用
<vue-seamless...
yekong
3年前 (2021-11-30)
喜欢
vue项目开发中,会遇到切换页面时,上一个页面的接口还在请求,当只有一两个页面的时候,无所谓,但是当页面有几十个接口的话,就有必要切换页面是,结束上一页未完成的无效请求,以节省接口资源。
切换页面时,由于上一页面请求执行时间长,切换到该页面时,还未执行完,这时那个请求仍会继续执行...
yekong
3年前 (2021-11-29)
喜欢
第一种
methods:{
back(){
this.$router.go(-1);//返回上一层
},
},
第二种
@click="$router.back(-1)"
...
yekong
3年前 (2021-11-27)
喜欢
<div class="profiledetail scroll">
<el-backtop target='.profiledetail'></el-backtop>
<headtop...
yekong
3年前 (2021-11-27)
喜欢
在路由文件中增加
router.afterEach(() => {
document.body.scrollTop = 0
document.documentElement.scrollTop = 0
})
...
yekong
3年前 (2021-11-23)
喜欢
<meta name="viewport" content="width=device-width, initial-scale=0, maximum-scale=0, user-scalable=yes,shrink-to-fit=no&qu...
yekong
3年前 (2021-11-23)
喜欢
<template>
<div class="slide">
<a-carousel autoplay arrows dots-class="slick-dots slick-thumb">...
yekong
3年前 (2021-11-23)
喜欢
vue
<el-input
v-model="scope.row.discount"
type="number"
@inpu...
yekong
3年前 (2021-11-20)
喜欢
import { Message } from 'element-ui'
const router = new Router({
base: '/',
routes: [
{
path: '/',
...
yekong
3年前 (2021-11-19)
喜欢