Skip to content
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

Closed
wants to merge 13 commits into from
Closed

Conversation

seven-lh
Copy link
Contributor

@seven-lh seven-lh commented Jan 2, 2024

No description provided.

Copy link
Contributor

@YSMJ1994 YSMJ1994 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. 合并下master
  2. 有太多修改原来实现的地方了,都要回退,重新过一下吧

const height = (
Array.prototype.slice.call(
step.getElementsByClassName(`${prefix}step-item`)
) as Element[]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

错误的类型断言,应为 HTMLLIElement[]

@@ -184,13 +208,23 @@ class Step extends Component {
return result;
}

_stepRefHandler = ref => {
_stepRefHandler = (ref: HTMLOListElement | null) => {
this.step = ref;
};

render() {
// eslint-disable-next-line
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

eslint-disable 需移除

@seven-lh seven-lh requested a review from YSMJ1994 January 25, 2024 04:05
@seven-lh seven-lh closed this Feb 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

3 participants