Skip to content

Commit

Permalink
fix(Rating): update readAS function signature, close #4350 (#4351)
Browse files Browse the repository at this point in the history
  • Loading branch information
weinianyang authored Jun 5, 2023
1 parent 20c9a23 commit 00a9e0c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion types/rating/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export interface RatingProps extends HTMLAttributesWeak, CommonProps {
/**
* 评分文案生成方法,传入id支持无障碍时,读屏软件可读
*/
readAs?: () => void;
readAs?: (val: number) => void;
}

export default class Rating extends React.Component<RatingProps, any> {}
2 changes: 1 addition & 1 deletion types/tab/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export interface TabProps extends HTMLAttributesWeak, CommonProps {
/**
* 自定义选项卡模板渲染函数
*/
tabRender?: (key: string, props: {}) => React.ReactNode;
tabRender?: (key: string, props: any) => React.ReactNode;

/**
* 弹层属性透传, 只有当 excessMode 为 dropdown 时生效
Expand Down

0 comments on commit 00a9e0c

Please sign in to comment.