github文档地址
github文档地址
安装依赖
npm install validator --save
使用
非es6
var validator = require('validator');
es6
import validator from 'validator...
yekong
2年前 (2022-06-26) 1153℃
0喜欢
百度地图getBounds每隔一段时间字段名就会发生变化
如果每个一段时间就会变化的话,不可能让用户每次都跟着调整字段吧,搜索了一下发现原来是有获取的方法的
右上角经纬度 东北角
var bounds = that.map.getBounds()
co...
yekong
2年前 (2022-06-24) 947℃
0喜欢
高德地图移除代码
that.map.remove(that.markerList);
添加marker
this.potList.forEach(item => {
// 根据type判断icon类型
// 1 隧道 2服务区 ...
yekong
2年前 (2022-06-23) 3337℃
1喜欢
高德地图 初始化时 设置中心点和级别无效,于是延迟1秒后重新设置。
that.map.setZoomAndCenter(13, [108.095907, 23.919379])
initMap() {
//仅供参考
var that = this...
yekong
2年前 (2022-06-23) 1694℃
0喜欢
文档地址
文档地址
中文文档地址
安装依赖
npm install v-viewer --save
main.js 引入
//预览图片
import Viewer from 'v-viewer'
import 'viewerjs/dist/viewer.css'
Vue.use...
yekong
2年前 (2022-06-20) 505℃
0喜欢
vue2 数据可视化大屏 项目开发时,经常会遇到table效果,但是限于页面大小,table的数据并不能完全的显示出来,这就需要让table滚动起来。当前是使用的vue2如果是vue3项目中开发的话,可以用:vue3 table结合vue3-seamless-scroll实现滚动...
yekong
2年前 (2022-06-15) 1632℃
0喜欢
<div class="userInfos">
<el-dropdown trigger="click">
<div class="userInfo"&...
yekong
2年前 (2022-06-15) 2412℃
4喜欢
纵向滚动条
.is-scrolling-none::-webkit-scrollbar {
width: 6px;
height: 200px;
}
/*滚动条滑块*/
.is-scrolling-none::-webkit-scrollbar-thumb {
/...
yekong
2年前 (2022-06-15) 1865℃
0喜欢
代码
/**
* @Author: 858834013@qq.com
* @Name: popWin
* @Date: 2022-06-10
* @Desc:
*/
<template>
<div>
<el-dialog
...
yekong
2年前 (2022-06-13) 1174℃
0喜欢
vue element ui Select自定义样式
<el-select v-model="value" placeholder="请选择">
<el-option
v-for="item...
yekong
2年前 (2022-06-11) 1529℃
0喜欢