auto-tools

常用函数的封装使用
904
Install
npm install auto-tools
Latest Version:0.2.1
Vue:3
License:ISC
Last Updated:Dec 10, 2023
Links: npm
Maintainer: sima00

简介

使用 ts 语言对一般常用函数提取封装,并提供了详尽的ts类型。

使用

yarn add auto-tools 或 npm i auto-tools 

import ATTools from "auto-tools" // 全量引入
import { isEmpty, isNotEmpty } from "auto-tools" // 按需引入

库函数 名称索引

isEmpty,
isNotEmpty,
handleObjNull,
isArrayVal,
isFuncVal,
isAsyncFuncVal,
isObjectVal,
isStringVal,
isBoolVal,
isPromiseVal,
isNumberVal,
postParentMsg,
hasChangeData,
getStorageVal,
getArrObjKVs,
list2ObjAttr,
list2ObjAttrAB,
getPlusPhone,
getSubPhone,
parseTime,
getTimeStamp,
findIdxByKey,
setRangeNumArr,
validateMyForm,
getCurrentLang,
downloadFile,
batchDownload,
ExportExlFile,
getRandomColor,
tranlateTime10,
getUTCtime,
delRepeat,
getCrossArray,
getUnionArray,
sortArrById,
arr2Tree,
tree2Arr,
list2Map,
getRepeatProNum,
val2Undefined,
generateMenuRoutes,
translateMenusField,
translateSiderOps,
sortRelationship,

Version History

Version Released Vue License
0.2.1 ^3.2.45 ISC
0.1.14 ^3.2.45
0.1.13 ^3.2.45
0.1.12 ^3.2.45
0.1.11 ^3.2.45