Skip to content

Commit

Permalink
fix: valueType returned by Field.init defaults to unknown
Browse files Browse the repository at this point in the history
  • Loading branch information
eternalsky committed Jun 7, 2024
1 parent 774e477 commit 3edbf23
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -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/",
Expand Down Expand Up @@ -93,7 +93,7 @@
"表单"
]
},
"homepage": "https://unpkg.com/@alifd/[email protected].1/build/index.html",
"homepage": "https://unpkg.com/@alifd/[email protected].2/build/index.html",
"bugs": "https://github.com/alibaba-fusion/field/issues",
"publishConfig": {
"access": "public",
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ class Field {
* @param rprops - 其它参数
*/
init<
ValueType,
ValueType = any,
ValueName extends string = 'value',
Trigger extends string = 'onChange',
OtherProps extends object = object,
Expand Down

0 comments on commit 3edbf23

Please sign in to comment.