安装依赖
cnpm i leaflet --save
引用
main.js
import L from "leaflet";
import "leaflet/dist/leaflet.css";
初始化
<div id=&quo...
yekong
3年前 (2022-03-17)
喜欢
vue项目开发使用mqtt
安装依赖
npm i mqtt --save
引用
import mqtt from 'mqtt'
创建链接
mqttAccessToken() {
var that = this;
mqttAccessToken(...
yekong
3年前 (2022-03-07)
喜欢
安装依赖
npm i html2canvas --save
引入
import html2canvas from "html2canvas"
使用
<div class="body-content" ref='creatImg'&...
yekong
3年前 (2022-03-05)
喜欢
vue开发实现搜索
<template>
<div>
<div class="search">
<div class="searchinput wow fadeInLeft"...
yekong
3年前 (2022-03-05)
喜欢
::v-deep {
.el-input__inner {
height: 44px;
}
}
...
yekong
3年前 (2022-03-02)
喜欢
vue elementui 实现换肤效果
运行实例
代码
/**
* @Author: 858834013@qq.com
* @Name: changeSkin
* @Date: 2022-02-07
* @Desc:
*/
<template>
<di...
yekong
3年前 (2022-02-25)
喜欢
分别是
@mousedown="mousedown"
和
@mouseup="mouseup"
<div class="jianghua" @mousedown="mousedown" @m...
yekong
3年前 (2022-02-21)
喜欢
/**
* @Author: 858834013@qq.com
* @Name: status
* @Date: 2022-02-19
* @Desc:
*/
<template>
<div>
<div v-if="isOnli...
yekong
3年前 (2022-02-18)
喜欢
/**
* @Author: 858834013@qq.com
* @Name: icons
* @Date: 2022-02-19
* @Desc: 根据状态以及类型返回对应的图标
*/
<template>
<div class="icons&...
yekong
3年前 (2022-02-18)
喜欢
uniapp实现实现点击按钮判断是否需要升级,需要升级则弹出升级弹窗
<template>
<view>
<view @click="apiversion">
<slot></slot>...
yekong
3年前 (2022-02-18)
喜欢