fix: update spin steps
parent
ac7cf55bcf
commit
6b5c0a404b
|
@ -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 () {
|
||||||
|
|
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue