Browse Source

fix: update spin steps

pull/309/head
tangjinzhou 6 years ago
parent
commit
6b5c0a404b
  1. 5
      components/spin/Spin.jsx
  2. 6
      components/steps/index.jsx

5
components/spin/Spin.jsx

@ -41,10 +41,11 @@ export default {
}),
data () {
const { spinning, delay } = this
this.debounceTimeout = null
this.delayTimeout = null
return {
sSpinning: spinning && !shouldDelay(spinning, delay),
debounceTimeout: null,
delayTimeout: null,
}
},
mounted () {

6
components/steps/index.jsx

@ -34,13 +34,13 @@ const Steps = {
const props = getOptionProps(this)
const { prefixCls } = props
const icons = {
finish: <Icon type='check' className={`${prefixCls}-finish-icon`} />,
error: <Icon type='close' className={`${prefixCls}-error-icon`} />,
finish: <Icon type='check' class={`${prefixCls}-finish-icon`} />,
error: <Icon type='close' class={`${prefixCls}-error-icon`} />,
}
const stepsProps = {
props: {
...props,
icons,
...props,
},
on: this.$listeners,
scopedSlots: this.$scopedSlots,

Loading…
Cancel
Save