mirror of
https://github.com/ElemeFE/element.git
synced 2025-12-19 12:04:02 +08:00
Slider: add test
This commit is contained in:
committed by
cinwell.li
parent
c640d1ff8e
commit
66842c80e8
@@ -80,6 +80,7 @@
|
||||
},
|
||||
computed: {
|
||||
hasText() {
|
||||
/* istanbul ignore next */
|
||||
return this.onText || this.offText;
|
||||
}
|
||||
},
|
||||
@@ -107,6 +108,7 @@
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
/* istanbul ignore if */
|
||||
if (this.width === 0) {
|
||||
this.coreWidth = this.hasText ? 58 : 46;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user