fix: update spin steps

pull/309/head
tangjinzhou 2018-11-30 19:58:45 +08:00
parent ac7cf55bcf
commit 6b5c0a404b
2 changed files with 6 additions and 5 deletions

View File

@ -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 () {

View File

@ -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,