Commit b0c382f2 authored by wacky6.AriesMBP's avatar wacky6.AriesMBP Committed by 杨奕

Slider: mitigate high cpu usage (#8989)

see: https://github.com/ElemeFE/element/issues/8989
parent bd616e37
......@@ -260,6 +260,7 @@
computed: {
stops() {
if (!this.showStops) return [];
if (this.step === 0) {
process.env.NODE_ENV !== 'production' &&
console.warn('[Element Warn][Slider]step should not be 0.');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment