-
format
补充格式化函数formatFileSize
文件大小单位格式化
-
assets
补充资源函数getBase64ImageSize
获取Base64编码图片文件大小compressImage
图片压缩
date
补充延迟函数sleep
同步延迟asyncSleep
异步延迟
-
date
添加时间模块isDate
获取日期对象isLeapYear
是否闰年getDaysOfMonth
获取月份天数getBeginDayOfMonth
获取月份开始getMonthInfo
获取月份信息getMonthDays
获取日历月份视图信息
-
assets
添加资源模块downloadFile
下载文件dataURItoBlob
base64转二进制imageToBase64
图像转Base64getImageSize
获取图片尺寸
-
storage
补充缓存函数setLocalStorage
存储 localStoragegetLocalStorage
获取 localStoragesetSessionStorage
存储 sessionStoragegetSessionStorage
获取 sessionStorage
-
format
添加格式化模块numberWithCommas
数字千分位分割formatBankCardNumber
格式化银行卡号
-
math
添加数学计算模块compute
四则运算
-
DOM
添加DOM模块getParentNode
获取指定class的祖先元素requestFullscreen
指定dom元素全屏exitFullScreen
退出全屏
-
颜色值
添加颜色值模块rgbaRegex
匹配rgba或rgb颜色hexRegex
匹配十六进制颜色hslRegex
匹配hsl颜色hslaRegex
匹配hsla颜色rgbaToHex
rgba转十六进制hexToRgba
十六进制转rgbargbaToHsl
rgba转hslhslToRgb
hsl转rgbhslaToRgba
hsla转rgba
-
utils
补充工具函数copyAsync
复制debounce
防抖函数throttle
节流函数
utils
其他函数中移除requestFullscreen
指定 dom 元素全屏exitFullScreen
退出全屏
file
文件模块移除
- 修复 README
utils
添加工具模块getDataType
获取数据类型getParentNode
递归获取指定 class 的祖先元素hasNotNullValue
判断对象是否至少有一项值hasNullValue
判断对象是否有空值uniqueByKey
根据指定 key 的值,对对象数组进行去重requestFullscreen
指定 dom 元素全屏exitFullScreen
退出全屏copy
复制函数
file
添加文件模块dataURItoBlob
将 base64 转换为字符串中的原始二进制数据downloadFile
下载文件
storage
添加缓存模块getCookies
获取 cookie
url
添加路由模块getUrlParams
获取 url 参数setSearchParams
修改 hrefpackUrlParams
组装 url 参数
- 添加 ts
- 添加部署脚本 deploy.sh
- 添加 rollup 打包
- 初始化测试 scope 发布