会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
wjs0509
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
···
8
下一页
2024年5月9日
vue3 elementplus 封装el-tooltip
摘要: 基于父元素的宽度计算是否需要展示el-tooltip <template> <el-tooltip class="item" :effect="effect" :content="content" placement="top-start" :disabled="showPopper"> <slot
阅读全文
posted @ 2024-05-09 15:59 wjs0509
阅读(323)
评论(0)
推荐(0)
2024年2月29日
vue3 vite seo
摘要: 使用 vite-plugin-seo-prerender 做页面预渲染 安装 vite-plugin-seo-prerender 解决打包多个页面 yarn add vite-plugin-seo-prerender -D 配置vite.config文件 import seoPrerender fr
阅读全文
posted @ 2024-02-29 09:43 wjs0509
阅读(891)
评论(0)
推荐(0)
2024年2月20日
vue2 echarts 渲染数据
摘要: <template> <div ref="friendsTrend" class="mt-16 friendsTrend" /> </template> <script> import * as echarts from 'echarts' import moment from 'moment' i
阅读全文
posted @ 2024-02-20 17:34 wjs0509
阅读(101)
评论(0)
推荐(0)
2024年1月24日
html2canvas使用文档
摘要: 安装 npm install html2canvas or yarn add html2canvas 引入 import html2canvas from 'html2canvas' 使用 <div ref="canvasDom"> <div ref="businessCard">这是需要生成图片的
阅读全文
posted @ 2024-01-24 20:18 wjs0509
阅读(6545)
评论(0)
推荐(0)
2023年12月19日
Git — husky + eslint 实现提交前校验与规范提交
摘要: node版本: =14.21.3 || >=16.0.0 一、配置ESlint 1.1 安装eslint npm install eslint -D 1.2 初始化eslint,生成配置文件 npx eslint --init 1.3 在编辑器安装ESlint插件 1.4 通过执行命令检测文件代码规
阅读全文
posted @ 2023-12-19 15:39 wjs0509
阅读(1120)
评论(0)
推荐(0)
2023年12月9日
vue3 vite.config.ts 如何增加构建时间,并展示在index.html里面
摘要: 1. 首先需要安装vite-plugin-html插件 yarn add vite-plugin-html -D or npm install vite-plugin-html -D 2. 在vite.config.ts文件中增加如下代码: import { createHtmlPlugin } f
阅读全文
posted @ 2023-12-09 17:50 wjs0509
阅读(487)
评论(0)
推荐(0)
2023年11月14日
vant list refresh 二次封装
摘要: 组件: <template> <div> <van-pull-refresh v-model="refreshing" @refresh="onRefresh" :disabled="disabled" :style="fullScreen? 'min-height: 100vh;': ''"> <
阅读全文
posted @ 2023-11-14 20:21 wjs0509
阅读(306)
评论(0)
推荐(0)
2023年10月30日
vue 将html保存成pdf文件
摘要: 结合 html2canvas 和 jspdf 插件处理 /* eslint-disable */ //不使用JQuery版的 import html2canvas from 'html2canvas' import JsPDF from 'jspdf' /** * @param ele 要生成 pd
阅读全文
posted @ 2023-10-30 20:20 wjs0509
阅读(259)
评论(0)
推荐(0)
2023年10月20日
20个js工具函数助力高效开发
摘要: 1、校验数据类型 export const typeOf = function(obj) { return Object.prototype.toString.call(obj).slice(8, -1).toLowerCase() } 示例: typeOf('树哥') // string type
阅读全文
posted @ 2023-10-20 09:16 wjs0509
阅读(32)
评论(0)
推荐(0)
2023年9月11日
vue2打包组件发布到npm
摘要: 1.使用 vue create projectName 新建一个项目 2.将src的文件夹名称改为example,便于我们调试代码 3.增加packages文件夹,其下面的index.js代码如下 import panel from './panel/index.vue' const compone
阅读全文
posted @ 2023-09-11 09:38 wjs0509
阅读(795)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
···
8
下一页
公告