摘要:
<template> <div class="container"> <div class="earth-container"> <div class="earth-item-box"> <div class="earth-item"></div> </div> <div class="earth-
阅读全文
posted @ 2021-08-06 14:21
abcByme
阅读(1075)
推荐(1)
摘要:
https://www.jianshu.com/p/a2a7d3a9cf2b 侵删 1、安装vue-seamless-scroll npm install vue-seamless-scroll --save 2、引入组件 <vue-seamless-scroll></vue-seamless-sc
阅读全文
posted @ 2021-08-04 11:24
abcByme
阅读(1262)
推荐(0)
摘要:
来自 https://www.cnblogs.com/tuspring/p/9801603.html 侵删 vue-countTo是一个无依赖,轻量级的vue组件,可以自行覆盖easingFn。 你可以设置 startVal 和 endVal,它会自动判断计数或倒计时。支持vue-ssr。vue-c
阅读全文
posted @ 2021-08-03 11:25
abcByme
阅读(345)
推荐(0)
摘要:
来自:https://www.cnblogs.com/taohuaya/p/10274993.html#%E5%A6%82%E4%BD%95%E5%9C%A8vue-cli3.0%E4%B8%AD%E4%BD%BF%E7%94%A8postcss-plugin-px2rem%C2%A0%E6%8F%
阅读全文
posted @ 2021-07-28 11:12
abcByme
阅读(321)
推荐(0)
摘要:
来自 https://www.jb51.net/article/174637.htm 侵删 1.cnpm install postcss-pxtorem -D安装postcss-pxtorem,此插件如果你用的是webpack的话只要进行安装即可,不需要另外进行配置,此插件是对px进行转换。 2.新
阅读全文
posted @ 2021-07-28 10:08
abcByme
阅读(495)
推荐(0)
摘要:
let current = this.$router.history.current; this.activeIndex = current.path; if (current.meta.parent) { this.activeIndex = current.meta.parent; }
阅读全文
posted @ 2021-07-23 15:14
abcByme
阅读(663)
推荐(0)
摘要:
<el-carousel trigger="click" class="gwbox-carouselBox left-sub2-carouselBox" :autoplay="false" > <el-carousel-item class="gwbox-carouselBox-child" v-f
阅读全文
posted @ 2021-07-23 10:25
abcByme
阅读(553)
推荐(0)
摘要:
方式一<template> <div v-for="(item,index) in menus :key="index> <img :src="require(`../../assets/images/${item.icon}`)" /> <span>{{item.name}}</span> </d
阅读全文
posted @ 2021-07-09 11:20
abcByme
阅读(3705)
推荐(0)
摘要:
mapJson: [ { featureType: "land", elementType: "geometry.fill", stylers: { color: "#08304B", }, }, { featureType: "land", elementType: "geometry.strok
阅读全文
posted @ 2021-07-05 10:09
abcByme
阅读(861)
推荐(0)
摘要:
// 地图默认弹框 /*地图标题 infoWindow*/ // .BMap_bubble_title { // color: #fff; // font-size: 16px; // font-weight: bold; // text-align: left; // background: tr
阅读全文
posted @ 2021-06-30 11:11
abcByme
阅读(3744)
推荐(0)
摘要:
//地图点击事件-公司详情 // 创建图文信息窗口 let sContent = "<div class='comyInfoBox'>" + " <div class='comyInfoBox-head'>" + "<span class='active' id='qiye1'> 企业数据 </sp
阅读全文
posted @ 2021-06-30 10:59
abcByme
阅读(920)
推荐(0)
摘要:
function showTime() { let show_day = new Array( "星期一", "星期二", "星期三", "星期四", "星期五", "星期六", "星期日" ); let time = new Date(); let year = time.getFullYear(
阅读全文
posted @ 2021-06-24 16:30
abcByme
阅读(1548)
推荐(0)
摘要:
这个问题是因为异步加载的 树形数据结构造成的。只需要筛选保留需要的属性即可。 例如,原数组结构是 对数据进行处理。保留几个需要的属性即可——
阅读全文
posted @ 2021-06-22 11:05
abcByme
阅读(434)
推荐(0)
摘要:
result.data = [ { id: "0c4a850086f211eb88ce2e17e48e1195", name: "创新园二期", parentId: "0", iconSkin: "group", isParent: true, orgNode: true, limit: false
阅读全文
posted @ 2021-06-22 11:01
abcByme
阅读(323)
推荐(0)
摘要:
<div class="content"> <div class="chart-rising-list" v-for="(item,index) in proportionList" :key="item + index"> <div class="chart-rising-title">{{ it
阅读全文
posted @ 2021-06-18 14:36
abcByme
阅读(245)
推荐(0)
摘要:
<template> <div ref="myChart" :class="className" :style="{ height: height, width: width }" /> </template> <script> import * as echarts from "echarts";
阅读全文
posted @ 2021-06-16 16:40
abcByme
阅读(4600)
推荐(0)
摘要:
<template> <div id="app" :class="{ 'bg-img': mapShow == false }"> <page-top /> <router-view /> <!-- <page-nav :nav-list="navList" @mapHandle="mapSwitc
阅读全文
posted @ 2021-06-16 14:38
abcByme
阅读(676)
推荐(0)
摘要:
<template> <div class="beonduty-wrap"> <p>当前模块的信息,是呈现在指挥调度的,用以呈现指挥调度的工作人员</p> <div class="beonduty-c"> <span>工作人员:</span> <div class="beonduty-c-form"
阅读全文
posted @ 2021-05-27 09:31
abcByme
阅读(330)
推荐(0)
摘要:
html: <canvas style="position:fixed;z-index:-1;left:0;top:0;min-width:100vw;min-height:100vh;" width="9600" height="2700"></canvas> js: <script> //粒子动
阅读全文
posted @ 2021-05-19 15:05
abcByme
阅读(170)
推荐(0)
摘要:
<div v-for="(item, index) in newList" class="floor-board-contbox-sub-t" > <div class="contbox-sub-t-f"> <div :class="item.isShow ? 'corner-l' : 'corne
阅读全文
posted @ 2021-04-25 16:09
abcByme
阅读(796)
推荐(0)
摘要:
来自:https://www.gxlcms.com/htmldaima-283044.html 侵删 Canvas是使用JavaScript程序绘图(动态生成),SVG是使用XML文档描述来绘图。从这点来看:SVG更适合用来做动态交互,而且SVG绘图很容易编辑,只需要增加或移除相应的元素就可以了。同
阅读全文
posted @ 2021-04-15 15:49
abcByme
阅读(702)
推荐(0)
摘要:
<template> <div class="center"> <div class="baidu-map" id="baidu_Map" ref="baiduMapRef"></div> <div ref="r_result" class="r-result"> 搜索地址 : <input typ
阅读全文
posted @ 2021-04-15 15:30
abcByme
阅读(161)
推荐(0)
摘要:
main.js中 new Vue({ router, store, data: { eventHub: new Vue() }, render: h => h(App), watch: { '$route.path': function(newVal, oldVal) { const userId
阅读全文
posted @ 2021-04-15 15:14
abcByme
阅读(116)
推荐(0)
摘要:
<li v-for="(item, index) in 15" @click="clickcategory(index)" :class="{ active: categoryIndex == index }" > {{ index }} </li> return { categoryIndex:
阅读全文
posted @ 2021-04-15 09:53
abcByme
阅读(682)
推荐(0)
摘要:
来自:https://www.cnblogs.com/zhangnan35/p/12682925.html 侵删 主角是谁 在今天这篇文章中,我并不会在这里讲一些移动端视口的概念,包括物理像素和逻辑像素,理想视口,dpr等等等等,我只介绍这样一种非常不错的移动端适配方案:post-css-to-vi
阅读全文
posted @ 2021-04-14 10:33
abcByme
阅读(372)
推荐(0)
摘要:
<template> <div :class="className" :style="{height:height,width:width}"/> </template> <script> import echarts from 'echarts' export default { props: {
阅读全文
posted @ 2021-04-14 09:32
abcByme
阅读(2707)
推荐(0)
摘要:
官方有个属性设置poster 图片。但是失效 无奈。强行js修改 <video-player ref="videoPlayerHls" :playsinline="true" :options="videoOption" @error="errors($event)" class="video-pl
阅读全文
posted @ 2021-04-14 09:28
abcByme
阅读(236)
推荐(0)
摘要:
var monitorEntity = viewer.entities.add({ name: "video", position: Cesium.Cartesian3.fromDegrees(109.44, 32.11,30.0), point: { //点 pixelSize: 0, Heigh
阅读全文
posted @ 2021-04-12 17:13
abcByme
阅读(1987)
推荐(0)
摘要:
<template> <div class="container"> <div class="top"> <div class="addr"> <svg-icon icon-class="location" style="width: 16px; height: 16px" />{{ dingAdd
阅读全文
posted @ 2021-04-12 16:59
abcByme
阅读(180)
推荐(0)
摘要:
来自:https://blog.csdn.net/qq_39378657/article/details/107550663 侵删 踩坑总结本来是非常简单的一个报错。正常情况下,按照网上的方法就可以解决问题。 但是我尝试了使用代理、换源、重装node.js(但是npm的配置参数没变),都没有解决问题
阅读全文
posted @ 2021-04-12 16:57
abcByme
阅读(2771)
推荐(0)
摘要:
来自:https://blog.csdn.net/weixin_45031595/article/details/104946373 侵删
阅读全文
posted @ 2021-03-05 14:47
abcByme
阅读(174)
推荐(0)
摘要:
//去重 if ( (this.selectPeopleList != null) & (this.selectPeopleList.length != 0) ) { let arrId = []; let arrName = []; this.selectPeopleList.map((item)
阅读全文
posted @ 2021-02-19 11:42
abcByme
阅读(191)
推荐(0)
摘要:
<template> <div> <bg-popout :isShow.sync="isShowPermissionTree" class="dialog-wrap" width="50" height="65" style="position: fixed;left: 0;top: 0;botto
阅读全文
posted @ 2021-02-05 11:38
abcByme
阅读(247)
推荐(0)
摘要:
原来的格式: dataObj: [ { id: 1, pattern: "白天模式", upTime: "08:00", downTime: "18:00", notificationMethod: 1, modelUrgency: ["1", "2", "3", "4"], }, { id: 2,
阅读全文
posted @ 2021-02-03 14:41
abcByme
阅读(579)
推荐(0)
摘要:
1.选择时间范围的时候 //此处是循环表单,v-for = item in objArr objArr: [ { id: 1, pattern: "白天模式", upTime: "08:00", downTime: "18:00", notificationMethod: 1, modelUrgen
阅读全文
posted @ 2021-02-03 14:36
abcByme
阅读(670)
推荐(0)
摘要:
<template> <div class="wap-wrap"> <h1>复制WAP链接</h1> <div class="input-box"> <Input disabled search v-model="inputData" enter-button="复制链接" @click.nativ
阅读全文
posted @ 2021-01-22 09:40
abcByme
阅读(1198)
推荐(0)
摘要:
//判断浏览器类型 myBrowser() { var userAgent = navigator.userAgent; //取得浏览器的userAgent字符串 var isOpera = userAgent.indexOf("Opera") > -1; if (isOpera) { return
阅读全文
posted @ 2021-01-22 09:39
abcByme
阅读(209)
推荐(0)
摘要:
来自:https://juejin.cn/post/6903852199311310862 侵删 数组拷贝经常被误解,但这并不是因为拷贝过程本身,而是因为缺乏对 JS 如何处理数组及其元素的理解。JS 中的数组是可变的,这说明在创建数组之后还可以修改数组的内容。这意味着要拷贝一个数组,咱们不能简单地
阅读全文
posted @ 2020-12-11 15:18
abcByme
阅读(496)
推荐(0)
摘要:
//时间转换 changeTime(time) { //time 为 '2020-06-15T07:23:17.000+0000' let time2 = this.myTime(time); let time3 = this.formatDateTime(time2); return time3;
阅读全文
posted @ 2020-06-17 11:09
abcByme
阅读(2070)
推荐(0)
摘要:
<template> <div> <el-upload list-type="picture-card" class="avatar-uploader" :action="action" :auto-upload="true" :data="uploadData" name="file" :show
阅读全文
posted @ 2020-06-15 14:42
abcByme
阅读(1224)
推荐(0)