uniapp开发时,需要一个进度组件,存个模板,方面后期复用
<template>
<view class="schedule">
<div class="scheduleitem" ...
yekong
3年前 (2021-12-05)
喜欢
<template>
<div class="echarts1">
<div class="echarts2" ref="echarts">
</div&g...
yekong
3年前 (2021-12-04)
喜欢
computed: {
list2: function () {
let total = 0
var list2 = this.list;
var list = []
this.list.forEach((type) ...
yekong
3年前 (2021-12-04)
喜欢
Vue开发时,经常会遇到写切换,每次都要手写一般很累人,存个备份留待后期复用。
<template>
<div class="tabs">
<div class="tab cur" :class=...
yekong
3年前 (2021-12-04)
喜欢
可以获取到当前网页宽度和当前网页高度
mounted() {
window.addEventListener('resize', this.getHeight)
},
methods: {
getHeight(e) {
con...
yekong
3年前 (2021-12-03)
喜欢
使用对象的形式,传给headers 就可以了。
:headers="{Authorization: ''}"
<el-upload
action=""
...
yekong
3年前 (2021-12-03)
喜欢
获取当前月份
moment().daysInMonth();
获取指定年月
console.log(moment("2022-01", "YYYY-MM").daysInMonth()) //31
console.log(moment(&...
yekong
3年前 (2021-12-03)
喜欢
最近在写一个Echarts地图,需要用到lines来显示人流量,但是给lines添加value后后,线条却不显示。
最后发现是因为数据区间visualMap写反了。
drawLine (list) {
var that = this
window.add...
yekong
3年前 (2021-12-02)
喜欢
vue项目开发时可能会使用iframe引入页面,留个实例,方便后期用到的时候回查
<template>
<div>
<iframe class="iframe" id="template-iframe&quo...
yekong
3年前 (2021-12-02)
喜欢
var a = ['1', '2', '3', '4', '5', '6', '7', '8', '9']
a.map(Number);...
yekong
3年前 (2021-12-01)
喜欢