resize-xm
v0.0.1
Published
实现一个函数同时支持 hook 和自定义指令 去监听dom宽高的变化
Downloads
3
Readme
#需求 实现一个函数同时支持 hook 和自定义指令 去监听dom宽高的变化
#问题分析 1、如何监听DOM宽高变化 2、如何用 vite 打包库 3、如何发布 npm
#初始化 pnpm init 生成 package npm install typescript -g 全局安装typescript tsc --init 生成一个 TS 的配置文件 pnpm i vue -D 安装 vue3 -D 安装到 devDependencies -d 安装到 dependencies pnpm i vite -D 安装 vite
#npm 发布 npm adduser 注册 npm login 登录 npm publish 发布