会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
路漫漫其修远兮,吾将上下而求索
博客园
首页
新随笔
联系
管理
订阅
2025年5月15日
使用 Vite + Vue实现SPA单页面
摘要: 1. 项目初始化 创建基础项目 npm create vite@latest vue-seo-spa --template vue cd vue-seo-spa npm install 安装 Vue 全家桶和 SEO 相关插件 npm install vue-router pinia npm ins
阅读全文
posted @ 2025-05-15 16:53 三寸日光
阅读(105)
评论(0)
推荐(0)
2025年2月14日
GitLab中重置ssh密钥
摘要: 1、通过命令查看当前密钥地址 ls ~/.ssh 2、从新生成新的密钥 ssh-keygen -t rsa -b 4096 -C "your-email@example.com" 3、找到public key 名称为 id_rsa.pub 复制其内容,在新建密钥的时候粘贴到key中即可
阅读全文
posted @ 2025-02-14 18:02 三寸日光
阅读(211)
评论(0)
推荐(0)
vue3插件handsontable实现表格批量编辑类似于xlsx
摘要: 官方文档:https://handsontable.com/docs import { HotTable } from '@handsontable/vue3' import 'handsontable/dist/handsontable.full.css' <template> <hot-tabl
阅读全文
posted @ 2025-02-14 10:15 三寸日光
阅读(348)
评论(0)
推荐(0)
2024年9月23日
Js中获取鼠标中的某一个点的位置以及getBoundingClientRect
摘要: getBoundingClientRect() 是一个用于获取元素位置和尺寸信息的方法。它返回一个 DOMRect对象,其提供了元素的大小及其相对于视口的位置,其中包含了以下属性: x:元素左边界相对于视口的 x 坐标。 y:元素上边界相对于视口的 y 坐标。 width:元素的宽度。 height
阅读全文
posted @ 2024-09-23 09:28 三寸日光
阅读(131)
评论(0)
推荐(0)
2024年6月7日
echarts 曲线中显示最大值进行标签样式的设置和修改
摘要: 曲线中最大值最小值需要完善一些相关的信息 let color = [ '#ee6666', '#73c0de', '#3ba272', '#fc8452', '#9a60b4', '#ea7ccc'] let xData =['00:00', '04:00', '08:00', '12:00', '
阅读全文
posted @ 2024-06-07 10:16 三寸日光
阅读(532)
评论(0)
推荐(0)
2023年12月4日
elementUI-table 表格内容按照内容显示,且没有折行
摘要: /** * 使用span标签包裹内容,然后计算span的宽度 width: px * @param valArr */ getTextWidth(str) { let padding = 0;//单元格左右padding距离 let width = 0; let span = document.cr
阅读全文
posted @ 2023-12-04 16:58 三寸日光
阅读(156)
评论(0)
推荐(0)
2023年10月19日
git 统计代码行数
摘要: 统计指定分支下的所有作者的代码数目 git log --format='%aN' | sort -u | while read name; do echo -en "$name\t"; git log --author="$name" --pretty=tformat: --numstat | aw
阅读全文
posted @ 2023-10-19 19:48 三寸日光
阅读(180)
评论(0)
推荐(0)
2023年6月19日
vue使用@符合写路径不识别
摘要: 在vue中写@符合不被识别,需要在配置中进行修改,修改内容如下: resolve: { //别名配置 alias: [ { find: "@", replacement: "/src", }, ], //忽略文件名 extensions: [".mjs", ".js", ".ts", ".jsx",
阅读全文
posted @ 2023-06-19 11:46 三寸日光
阅读(1123)
评论(0)
推荐(0)
2023年4月19日
elementui table 树形表格,为每一个元素新增一个对象
摘要: //递归方法,为数据增加一个isSelect 的属性initData(data) { data.forEach((item) => { item.isSelect = false; //默认为不选中 if (item.children && item.children.length) { this.
阅读全文
posted @ 2023-04-19 10:41 三寸日光
阅读(105)
评论(0)
推荐(0)
2023年4月18日
JS树形多级数据过滤,根据指定对象保存并保留数据格式
摘要: function filterTreeData(data, value) { return data.filter(item = >{ if (item.value value) { return true; } if (item.children) { item.children = filter
阅读全文
posted @ 2023-04-18 20:27 三寸日光
阅读(640)
评论(0)
推荐(0)
下一页
公告