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 () { data () {
const { spinning, delay } = this const { spinning, delay } = this
this.debounceTimeout = null
this.delayTimeout = null
return { return {
sSpinning: spinning && !shouldDelay(spinning, delay), sSpinning: spinning && !shouldDelay(spinning, delay),
debounceTimeout: null,
delayTimeout: null,
} }
}, },
mounted () { mounted () {

View File

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