Skip to content

Commit 6ecdd86

Browse files
authored
fix(*): 修复消费侧类型推断错误问题 (#5030)
1 parent be83106 commit 6ecdd86

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

components/breadcrumb/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ interface Child {
1717
};
1818
}
1919

20-
interface BreadcrumbState {
20+
export interface BreadcrumbState {
2121
maxNode: number;
2222
prevMaxNode?: BreadcrumbProps['maxNode'];
2323
}

components/split-button/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ class SplitButton extends React.Component<SplitButtonProps> {
8585
visible: this.props.defaultVisible,
8686
};
8787

88-
private wrapper: HTMLDivElement | null = null;
89-
private menu: HTMLUListElement | null = null;
88+
wrapper: HTMLDivElement | null = null;
89+
menu: HTMLUListElement | null = null;
9090

9191
componentDidMount() {
9292
// 由于定位目标是 wrapper,如果弹层默认展开,wrapper 还未渲染,didMount 后强制再渲染一次,弹层重新定位

0 commit comments

Comments
 (0)