MCPcopy Create free account
hub / github.com/ElemeFE/element-react / handleIndicatorHover

Method handleIndicatorHover

src/carousel/Carousel.jsx:203–209  ·  view source on GitHub ↗
(index: number)

Source from the content-addressed store, hash-verified

201 }
202
203 handleIndicatorHover(index: number): void {
204 if (this.props.trigger === 'hover' && index !== this.state.activeIndex) {
205 this.setState({
206 activeIndex: index
207 });
208 }
209 }
210
211 get iscard(): boolean {
212 const { type } = this.props;

Callers 1

constructorMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected