diff --git a/package.json b/package.json index aab742d..f5c6376 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@alifd/field", - "version": "2.0.1", + "version": "2.0.2", "description": "Fields can be used to manage data when it comes to form data manipulation and validation. After being associated with a component, the form data can be automatically written back, read, and verified.", "files": [ "demo/", @@ -93,7 +93,7 @@ "表单" ] }, - "homepage": "https://unpkg.com/@alifd/field@2.0.1/build/index.html", + "homepage": "https://unpkg.com/@alifd/field@2.0.2/build/index.html", "bugs": "https://github.com/alibaba-fusion/field/issues", "publishConfig": { "access": "public", diff --git a/src/index.ts b/src/index.ts index 45819e9..326d458 100644 --- a/src/index.ts +++ b/src/index.ts @@ -143,7 +143,7 @@ class Field { * @param rprops - 其它参数 */ init< - ValueType, + ValueType = any, ValueName extends string = 'value', Trigger extends string = 'onChange', OtherProps extends object = object,