Slider: add test

This commit is contained in:
Leopoldthecoder
2016-10-19 14:53:32 +08:00
committed by cinwell.li
parent c640d1ff8e
commit 66842c80e8
7 changed files with 189 additions and 54 deletions

View File

@@ -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;
}