@jalngo/gtools
v0.0.2
Published
工具库
Downloads
6
Readme
Gtools
工具库
API
| name | 说明 | | -------- | ---------------- | | Utils | 常用 API | | EleRules | Element 表单验证 | | Stock | 本地存储 |
NPM 安装
npm i @jalngo/gtools
使用
import Gtools from '@jalngo/gtools';
// or
import { Utils, EleRules, Stock } from '@jalngo/gtools';
(一)Utils 说明
| 属性 | 说明 | | ------------ | -------- | | DataType | 数据类型 | | ObjectExtend | 对象扩展 |
(二)EleRules 说明
| 属性 | 说明 | | ------------- | ------------------------ | | createRules | 生成验证规则方法(必须) | | LimitEnums | 限制枚举 | | Patterns | 正则表达式合集 | | baserule | 生成正则表达式验证方法 | | comparerule | 多个比较 生成验证方法 | | patternsTest | 正则 test 验证方法 | | thresholdrule | 阈值 区间限制验证方法 |
(三)Stock 说明
| 属性 | 说明 | | --------- | ------------ | | Stock | Stock 类 | | StockType | 存储类型枚举 |