mirror of https://github.com/ElemeFE/element
Slider: mitigate high cpu usage (#8989)
see: https://github.com/ElemeFE/element/issues/8989pull/9053/head
parent
bd616e37b6
commit
b0c382f2f8
|
@ -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.');
|
||||
|
|
Loading…
Reference in New Issue