Skip to content

Commit bf717f1

Browse files
committed
revert: steps
1 parent 0a58c08 commit bf717f1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

components/vc-steps/Steps.jsx

+3-2
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ export default defineComponent({
2727
canClick: PropTypes.looseBool,
2828
},
2929
data() {
30+
this.calcStepOffsetWidth = debounce(this.calcStepOffsetWidth, 150);
3031
return {
3132
flexSupported: true,
3233
lastStepOffsetWidth: 0,
@@ -62,7 +63,7 @@ export default defineComponent({
6263
this.__emit('change', next);
6364
}
6465
},
65-
calcStepOffsetWidth: debounce(function() {
66+
calcStepOffsetWidth() {
6667
if (isFlexSupported()) {
6768
return;
6869
}
@@ -86,7 +87,7 @@ export default defineComponent({
8687
this.setState({ lastStepOffsetWidth: offsetWidth });
8788
});
8889
}
89-
}, 150),
90+
},
9091
},
9192
render() {
9293
const {

0 commit comments

Comments
 (0)