会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
yw3692582
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
3
4
5
6
7
8
9
10
11
···
23
下一页
2022年5月9日
Vue@2.x+element打包常见问题汇总
摘要: 1、打包后dist文件夹下的index.html可以直接打开,需要修改的地方如下: -src/route/index.js, mode改为hash模式 -config/index.js, build对象下的 assetsPublicPath 改为 './', (ps:productionSource
阅读全文
posted @ 2022-05-09 10:58 yw3692582
阅读(305)
评论(0)
推荐(0)
2022年4月20日
使用电脑终端压缩图片
摘要: 第一种方式(Mac终端):1、安装node.js:http://nodejs.cn/download/ 2、安装squoosh/cli:npx @squoosh/cli(这一步可以忽略) 3、如下: 通用:npx @squoosh/cli --mozjpeg '{"quality":75,"base
阅读全文
posted @ 2022-04-20 22:42 yw3692582
阅读(253)
评论(0)
推荐(0)
2022年3月31日
echarts上画垂直线并标注
摘要: 封装echarts: function workOption({ work_condition_data, public_min, public_max, gauge_min, gauge_max, work_condition_unit, tem_unit, title, warn_line, }
阅读全文
posted @ 2022-03-31 08:52 yw3692582
阅读(1807)
评论(0)
推荐(0)
2022年3月28日
el-upload转为二进制上传的使用示例
摘要: <template> <div class="model_box"> <div class="upload_bin"> <el-dialog width="400px" title="上传文件" :lock-scroll="true" :show-close="true" @close="cance
阅读全文
posted @ 2022-03-28 20:15 yw3692582
阅读(1838)
评论(0)
推荐(0)
2022年3月23日
el-select和el-tree一起用
摘要: template中:<el-select v-model="treeData" placeholder="请选择"> <el-option :value="treeValue" style="height: auto"> <el-tree :data="tree_list" default-expa
阅读全文
posted @ 2022-03-23 16:18 yw3692582
阅读(320)
评论(0)
推荐(0)
2022年3月22日
JavaScript中列表转成树结构
摘要: // 列表转树结构 list_to_tree() { let a = [ { id: 3, name: '测试3', up_id: 2, }, { id: 2, name: '测试2', up_id: 1, }, { id: 1, name: '测试1', up_id: null, }, ] let
阅读全文
posted @ 2022-03-22 16:19 yw3692582
阅读(714)
评论(0)
推荐(0)
2022年3月18日
修改svg上某个内容的颜色
摘要: 1、<embed id="station_svg" :src="station_svg" type="image/svg+xml" /> 2、let svg_dom = document.getElementById('station_svg').getSVGDocument() // 获取dom
阅读全文
posted @ 2022-03-18 09:19 yw3692582
阅读(919)
评论(0)
推荐(0)
2022年3月14日
vue中全局websocket
摘要: 1、创建 websocket.js 文件 // 定义 websocket export default { ws: {}, setWs: function(newWs) { this.ws = newWs }, } 2、在main.js 中引入 import wsk from './utils/we
阅读全文
posted @ 2022-03-14 14:13 yw3692582
阅读(1895)
评论(0)
推荐(0)
2022年2月9日
Vue实现左右拉伸效果
摘要: 参考地址:https://www.cnblogs.com/yx1102/p/13170533.html 注:需要把vue的cdn地址替换掉。
阅读全文
posted @ 2022-02-09 09:25 yw3692582
阅读(398)
评论(0)
推荐(0)
2022年1月27日
el-table使用分页删除最后一页数据后显示无数据
摘要: 这样就可以了,判断一共多少页,然后如果当前页大于总页数则跳到最后一页
阅读全文
posted @ 2022-01-27 14:35 yw3692582
阅读(328)
评论(0)
推荐(0)
上一页
1
···
3
4
5
6
7
8
9
10
11
···
23
下一页
公告