Browse Source

Improve spin transition delay

pull/7390/head
afc163 7 years ago
parent
commit
f2fe374a18
  1. 2
      components/spin/index.tsx
  2. 1
      components/spin/style/index.less

2
components/spin/index.tsx

@ -73,7 +73,7 @@ export default class Spin extends React.Component<SpinProps, any> {
clearTimeout(this.debounceTimeout);
}
if (currentSpinning && !spinning) {
this.debounceTimeout = setTimeout(() => this.setState({ spinning }), 300);
this.debounceTimeout = setTimeout(() => this.setState({ spinning }), 200);
if (this.delayTimeout) {
clearTimeout(this.delayTimeout);
}

1
components/spin/style/index.less

@ -74,7 +74,6 @@
}
&-container {
transition: all 0.3s @ease-in-out;
position: relative;
}

Loading…
Cancel
Save