Skip to content

Commit

Permalink
Revert "feat: ChangeEvent React 类型 (#490)" (#491)
Browse files Browse the repository at this point in the history
This reverts commit 2024329.

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
liweijie0812 and github-actions[bot] authored Dec 19, 2024
1 parent 20de3e9 commit 874a874
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
Binary file modified db/TDesign.db
Binary file not shown.
2 changes: 1 addition & 1 deletion packages/products/tdesign-mobile-react/src/radio/type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ export interface TdRadioGroupProps<T = RadioValue> {
/**
* 选中值发生变化时触发, `context.name` 指 RadioGroup 的 name 属性
*/
onChange?: (value: T, context: { e: ChangeEvent<HTMLInputElement>; name?: string }) => void;
onChange?: (value: T, context: { e: ChangeEvent<HTMLDivElement>; name?: string }) => void;
}

export type RadioOption = string | number | RadioOptionObj;
Expand Down
2 changes: 1 addition & 1 deletion packages/products/tdesign-react/src/radio/type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export interface TdRadioGroupProps<T = RadioValue> {
/**
* 选中值发生变化时触发, `context.name` 指 RadioGroup 的 name 属性
*/
onChange?: (value: T, context: { e: ChangeEvent<HTMLInputElement>; name?: string }) => void;
onChange?: (value: T, context: { e: ChangeEvent<HTMLDivElement>; name?: string }) => void;
}

export type RadioOption = string | number | RadioOptionObj;
Expand Down
2 changes: 1 addition & 1 deletion packages/scripts/api.json
Original file line number Diff line number Diff line change
Expand Up @@ -90287,7 +90287,7 @@
"syntactic_sugar": null,
"readonly": 1,
"html_attribute": 0,
"trigger_elements": "ChangeEvent<HTMLInputElement>",
"trigger_elements": "",
"deprecated": 0,
"version": null,
"test_description": null,
Expand Down

0 comments on commit 874a874

Please sign in to comment.