1.1.37 • Published 21 days ago

@msvx/h5 v1.1.37

Weekly downloads
-
License
ISC
Repository
-
Last release
21 days ago

vxcomponents

v 校 H5 组件库

npm install
npm i

本地组件库测试

npm run serve

构件 lib 包

npm run lib

组件库如何使用

// 1、发布版本前,本工程需要先执行 npm run lib
// 2、本工程npm publish

// 3、在相应工程添加依赖
    使用npm
    npm config set registry http://192.168.3.200:8080/nexus/content/repositories/npm-group/
    或使用yarn
    yarn config set registry http://192.168.3.200:8080/nexus/content/repositories/npm-group/
    
    安装
    npm i @component/h5 -S 

    更新
    npm uninstall @component/h5
    npm i @component/h5 -S 
    或使用
    npm update @component/h5

工具类

- check 数据校验
- date 日期处理
- storage 浏览器缓存

// check api
check.isRealArray(_) // 验证是否是有效的数字
check.isString(_) // 验证是否是字符串
check.isNumber(_) // 判断是否是number、Number
check.isPointNumber(_) // 判断是否数字或者带小数点的数字(小数点后2位)
check.isFunction(_) // 判断目标参数是否为function或Function实例
check.isDate(_) // 判断是否为日期对象
check.isArray(_) // 判断是否为数组
check.isElement(_) // 判断是否为Element对象
check.isBool(_) // 判断目标参数是否Boolean对象
check.isObject(_) // 判断目标参数是否为Object对象
check.isNullObject(_) // 验证是否为空对象
check.isNull(_) // 判断是否为空
check.isNullString(_) // 判断是空字符串 null 或者 ''
check.isNullArray(_) // 判断是空数组
check.isMobile(_) // 手机号码验证,验证13系列和150-159(154除外)、180、185、186、187、188、189几种号码,长度11位
check.isEmail(_) // 验证邮箱
1.1.37

21 days ago

1.1.35

4 months ago

1.1.33

4 months ago

1.1.32

4 months ago

1.1.29

5 months ago

1.1.31

5 months ago

1.1.27

5 months ago

1.1.25

5 months ago

1.1.22

5 months ago

1.1.20

5 months ago

1.1.24

5 months ago

1.1.19

7 months ago

1.1.18

7 months ago

1.1.16

7 months ago

1.1.14

7 months ago

1.1.11

8 months ago

1.1.7

9 months ago

1.0.290

9 months ago