Skip to content

Commit 2024329

Browse files
authored
feat: ChangeEvent React 类型 (#490)
1 parent 1ada182 commit 2024329

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed

db/TDesign.db

0 Bytes
Binary file not shown.

packages/products/tdesign-mobile-react/src/radio/type.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ export interface TdRadioGroupProps<T = RadioValue> {
150150
/**
151151
* 选中值发生变化时触发, `context.name` 指 RadioGroup 的 name 属性
152152
*/
153-
onChange?: (value: T, context: { e: ChangeEvent<HTMLDivElement>; name?: string }) => void;
153+
onChange?: (value: T, context: { e: ChangeEvent<HTMLInputElement>; name?: string }) => void;
154154
}
155155

156156
export type RadioOption = string | number | RadioOptionObj;

packages/products/tdesign-react/src/radio/type.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ export interface TdRadioGroupProps<T = RadioValue> {
102102
/**
103103
* 选中值发生变化时触发, `context.name` 指 RadioGroup 的 name 属性
104104
*/
105-
onChange?: (value: T, context: { e: ChangeEvent<HTMLDivElement>; name?: string }) => void;
105+
onChange?: (value: T, context: { e: ChangeEvent<HTMLInputElement>; name?: string }) => void;
106106
}
107107

108108
export type RadioOption = string | number | RadioOptionObj;

packages/scripts/api.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90494,7 +90494,7 @@
9049490494
"syntactic_sugar": null,
9049590495
"readonly": 1,
9049690496
"html_attribute": 0,
90497-
"trigger_elements": "",
90497+
"trigger_elements": "ChangeEvent<HTMLInputElement>",
9049890498
"deprecated": 0,
9049990499
"version": null,
9050090500
"test_description": null,

0 commit comments

Comments
 (0)