博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2024年3月21日

摘要: 原因:element-ui的依赖版本过高; 解决: 1.降低element-ui版本 2.在vite.config.js文件中添加配置 { find: "vue", replacement: "vue/dist/vue.esm.js" } 阅读全文

posted @ 2024-03-21 16:25 Hhuizi 阅读(261) 评论(0) 推荐(0) 编辑

2024年2月28日

摘要: 1 // 设置元素可拖拽 2 <div 3 @click="clickImageItemHandler()" 4 :draggable="true" 5 @dragstart="dragstartHandler" 6 @dragend="dragendHandler" 7 :class="isSel 阅读全文

posted @ 2024-02-28 15:44 Hhuizi 阅读(59) 评论(0) 推荐(0) 编辑

2024年2月21日

摘要: // 查看镜像 npm config get registry // 更换镜像 npm config set registry xxxxxx // 恢复官方默认镜像 npm config set registry https://registry.npmjs.org // 最新的配置淘宝镜像,原‘h 阅读全文

posted @ 2024-02-21 11:33 Hhuizi 阅读(44) 评论(0) 推荐(0) 编辑

2024年2月20日

摘要: // 隐藏点击按钮 input::-webkit-outer-spin-button, input::-webkit-inner-spin-button { -webkit-appearance: none; } input[type='number'] { -moz-appearance: tex 阅读全文

posted @ 2024-02-20 17:32 Hhuizi 阅读(253) 评论(0) 推荐(0) 编辑

2024年2月1日

摘要: 1 // resizeObserver.ts 2 // 监听元素大小变化的指令 3 const map = new WeakMap() 4 const ob = new ResizeObserver((entries) => { 5 for (const entry of entries) { 6 阅读全文

posted @ 2024-02-01 14:17 Hhuizi 阅读(219) 评论(0) 推荐(0) 编辑

摘要: 1 import JSZip from "jszip"; 2 3 function jszipFile(file) { 4 if (!/\.zip$/i.test(file.name)) { 5 reject(`文件"${file.name}"不是zip文件`); 6 return; 7 } 8 9 阅读全文

posted @ 2024-02-01 10:59 Hhuizi 阅读(59) 评论(0) 推荐(1) 编辑

2023年11月30日

摘要: 截取全屏图片 F12打开开发者工具 ctrl + shift + p Capture full size screenshot 回车 截取部分图片 F12打开开发者工具 Elements选中元素 ctrl + shift + p Capture node screenshot 回车 一键发起请求 F 阅读全文

posted @ 2023-11-30 14:39 Hhuizi 阅读(20) 评论(0) 推荐(0) 编辑

2023年6月2日

摘要: created() { this.keyDown(); }, beforeDestroy() { this.keyDownReview(); }, methods: { //按键恢复 keyDownReview() { document.onkeydown = function (event) { 阅读全文

posted @ 2023-06-02 16:24 Hhuizi 阅读(854) 评论(0) 推荐(0) 编辑

2023年3月18日

摘要: // 获取视窗高度 export function getClientHeight() { var clientHeight = 0; if (document.body.clientHeight && document.documentElement.clientHeight) { var cli 阅读全文

posted @ 2023-03-18 16:53 Hhuizi 阅读(352) 评论(0) 推荐(0) 编辑

2022年9月7日

摘要: .el-table__body-wrapper::-webkit-scrollbar { display: block; width: 16px; /*滚动条宽度*/ height: 16px; /*滚动条高度*/ } /*定义滚动条轨道 内阴影+圆角*/ .el-table__body-wrapp 阅读全文

posted @ 2022-09-07 19:57 Hhuizi 阅读(267) 评论(0) 推荐(0) 编辑