We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a58c08 commit bf717f1Copy full SHA for bf717f1
components/vc-steps/Steps.jsx
@@ -27,6 +27,7 @@ export default defineComponent({
27
canClick: PropTypes.looseBool,
28
},
29
data() {
30
+ this.calcStepOffsetWidth = debounce(this.calcStepOffsetWidth, 150);
31
return {
32
flexSupported: true,
33
lastStepOffsetWidth: 0,
@@ -62,7 +63,7 @@ export default defineComponent({
62
63
this.__emit('change', next);
64
}
65
- calcStepOffsetWidth: debounce(function() {
66
+ calcStepOffsetWidth() {
67
if (isFlexSupported()) {
68
return;
69
@@ -86,7 +87,7 @@ export default defineComponent({
86
87
this.setState({ lastStepOffsetWidth: offsetWidth });
88
});
89
- }, 150),
90
+ },
91
92
render() {
93
const {
0 commit comments