-
Notifications
You must be signed in to change notification settings - Fork 594
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Step]: adjust ts types #4691
[Step]: adjust ts types #4691
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- 合并下master
- 有太多修改原来实现的地方了,都要回退,重新过一下吧
components/step/view/step.tsx
Outdated
const height = ( | ||
Array.prototype.slice.call( | ||
step.getElementsByClassName(`${prefix}step-item`) | ||
) as Element[] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
错误的类型断言,应为 HTMLLIElement[]
components/step/view/step.tsx
Outdated
@@ -184,13 +208,23 @@ class Step extends Component { | |||
return result; | |||
} | |||
|
|||
_stepRefHandler = ref => { | |||
_stepRefHandler = (ref: HTMLOListElement | null) => { | |||
this.step = ref; | |||
}; | |||
|
|||
render() { | |||
// eslint-disable-next-line |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
eslint-disable 需移除
No description provided.