@@ -1,3 +1,4 @@
+"use strict";
/**
* 表单字段验证库
* author:kindring
import FieldCheck from "./fieldCheck";
let hasOwnProperty = Object.prototype.hasOwnProperty;
@@ -28,11 +29,11 @@ function hasOwn (obj, key) {
* @param {object} [option] 配置项
*/
class FormItem {
- formData;
+ formData = null;
* @type {FieldCheck} 字段验证对象
- fieldCheck;
+ fieldCheck = null;
// 表单状态 默认 0 通过 1 不通过 2
formState_default = 0;
formState_pass = 1;
@@ -2,7 +2,7 @@
"name": "kind-form-verify",
"version": "1.0.2",
"description": "表单规则验证工具库",
- "main": "index.js",
+ "module": "index.js",
"author": "kindring",
"scripts": {
"docs": "jsdoc2md lib/*.js > api.md",