会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
卑面派对
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
下一页
2022年12月3日
Git 使用
摘要: git stash git stash list 查看所有stash git stash clear 清除所有stash git stash drop stash@{index} 清除index stash git stash pop git stash save '注释' 加备注 git 查看历史
阅读全文
posted @ 2022-12-03 10:39 卑面派对
阅读(15)
评论(0)
推荐(0)
2022年9月20日
el-scrollbar 横向滚动 监听滚动事件
摘要: 横向滚动 隐藏横向滚动条 .el-scrollbar__wrap { overflow-x: hidden; } 显示横向滚动条 .el-scrollbar__wrap { overflow-x: auto; } .el-scrollbar__view { display: inline-block
阅读全文
posted @ 2022-09-20 11:46 卑面派对
阅读(957)
评论(0)
推荐(0)
2022年8月23日
el-table组件 单选 同时监听 row-click 点击 单选框radio 无法选择问题记录
摘要: 需求 表格数据实现单选,单击某行实现单选,再次点击选中行,取消单选 问题 在不需要点击取消单选的功能 此问题不会出现 点击组件区域 会无法选择, debugger 发现触发了row-click 两次 问题代码如下 <template> <el-table ... @row-click="handle
阅读全文
posted @ 2022-08-23 17:06 卑面派对
阅读(1026)
评论(0)
推荐(0)
2022年8月10日
el-dialog 子组件无法通过$parent 访问父组件方法属性 解决方法
摘要: 需求: 子组件需要动态获取父组件某个属性或者动态调用父组件方法 // 父组件 <template> <el-dialog> <son @return-prop="getName"/> </el-dialog> </template> <script> ... data() { return {pro
阅读全文
posted @ 2022-08-10 16:21 卑面派对
阅读(472)
评论(0)
推荐(0)
2022年8月8日
模块 ""path"" 只能在使用 "allowSyntheticDefaultImports" 标志时进行默认导入
摘要: 在tsconfig.node.json添加compilerOptions对象属性添加"allowSyntheticDefaultImports": true { "compilerOptions": { "composite": true, "module": "esnext", "moduleRe
阅读全文
posted @ 2022-08-08 15:32 卑面派对
阅读(663)
评论(0)
推荐(0)
2022年8月3日
正则
摘要: 验证包含字母、数字 /^[0-9a-zA-Z]*$/g 验证特殊符号 /[`~!@#$%^&*()-_+=<>?:"{}|,/;'\\[\].·~!@#¥%……&*()+={}|《》?:“”【】、;‘’,。、]/g 验证文件命名 if (/[\\\\/:*?"<>|]/gu.test(value))
阅读全文
posted @ 2022-08-03 16:26 卑面派对
阅读(21)
评论(0)
推荐(0)
时间 常用工具函数
摘要: dayjs 使用 import * as dayjs from 'dayjs' dayjs(dateTime).format('YYYY-MM-DD HH:mm:ss') // 1970-00-00 00:00:00 dayjs(dateTime).format('YYYY-MM-DD') // 1
阅读全文
posted @ 2022-08-03 16:05 卑面派对
阅读(66)
评论(0)
推荐(0)
文件相关
摘要: 文件相关 获取文件后缀名 /** * @description 获取文件后缀名 * @param {String} fileName */ export function getFileExt(fileName) { return fileName.substring(fileName.lastIn
阅读全文
posted @ 2022-08-03 15:45 卑面派对
阅读(12)
评论(0)
推荐(0)
平铺数据组装Tree
摘要: 平铺数组 组装成tree结构数据 /** * @description 平铺的数组数据 组装成树结构数据 * @param {array} data 平铺的数组 * @param {string|number} rootId 根节点id */ export function generateTree
阅读全文
posted @ 2022-08-03 15:45 卑面派对
阅读(142)
评论(0)
推荐(0)
颜色工具函数
摘要: 颜色转换 import { normal } from 'color-blend' /** * @description 将16进制色号转换成rgb:{r,g,b,a} * @param {string} color * @param {float} Alpha * @return {object}
阅读全文
posted @ 2022-08-03 15:19 卑面派对
阅读(42)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
下一页
公告