mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-24 11:10:01 +08:00
fix: lint
This commit is contained in:
parent
ac85fbec6f
commit
a33e344546
@ -3,6 +3,7 @@ import mountTest from '../../../tests/shared/mountTest';
|
|||||||
import { render, waitFakeTimer, fireEvent, act } from '../../../tests/utils';
|
import { render, waitFakeTimer, fireEvent, act } from '../../../tests/utils';
|
||||||
import ConfigProvider from '../../config-provider';
|
import ConfigProvider from '../../config-provider';
|
||||||
import Wave from '../wave';
|
import Wave from '../wave';
|
||||||
|
import type { InternalWave } from '../wave';
|
||||||
|
|
||||||
describe('Wave component', () => {
|
describe('Wave component', () => {
|
||||||
mountTest(Wave);
|
mountTest(Wave);
|
||||||
@ -194,7 +195,7 @@ describe('Wave component', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it('bindAnimationEvent should return when node is null', () => {
|
it('bindAnimationEvent should return when node is null', () => {
|
||||||
const ref = React.createRef<Wave>();
|
const ref = React.createRef<InternalWave>();
|
||||||
render(
|
render(
|
||||||
<Wave ref={ref}>
|
<Wave ref={ref}>
|
||||||
<button type="button" disabled>
|
<button type="button" disabled>
|
||||||
@ -206,7 +207,7 @@ describe('Wave component', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it('bindAnimationEvent.onClick should return when children is hidden', () => {
|
it('bindAnimationEvent.onClick should return when children is hidden', () => {
|
||||||
const ref = React.createRef<Wave>();
|
const ref = React.createRef<InternalWave>();
|
||||||
render(
|
render(
|
||||||
<Wave ref={ref}>
|
<Wave ref={ref}>
|
||||||
<button type="button" style={{ display: 'none' }}>
|
<button type="button" style={{ display: 'none' }}>
|
||||||
@ -218,7 +219,7 @@ describe('Wave component', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it('bindAnimationEvent.onClick should return when children is input', () => {
|
it('bindAnimationEvent.onClick should return when children is input', () => {
|
||||||
const ref = React.createRef<Wave>();
|
const ref = React.createRef<InternalWave>();
|
||||||
render(
|
render(
|
||||||
<Wave ref={ref}>
|
<Wave ref={ref}>
|
||||||
<input />
|
<input />
|
||||||
|
@ -70,7 +70,7 @@ export interface WaveProps {
|
|||||||
children?: React.ReactNode;
|
children?: React.ReactNode;
|
||||||
}
|
}
|
||||||
|
|
||||||
class InternalWave extends React.Component<WaveProps> {
|
export class InternalWave extends React.Component<WaveProps> {
|
||||||
static contextType = ConfigContext;
|
static contextType = ConfigContext;
|
||||||
|
|
||||||
private instance?: {
|
private instance?: {
|
||||||
|
Loading…
Reference in New Issue
Block a user