[bugfix] Area: fix test cases (#1451)

This commit is contained in:
neverland
2018-07-10 10:07:26 +08:00
committed by GitHub
parent 75d0aecd1e
commit ac092e877e
2 changed files with 14 additions and 14 deletions

View File

@@ -11,15 +11,14 @@
<ul :style="wrapperStyle">
<li
v-for="(option, index) in options"
:key="index"
v-html="getOptionText(option)"
:style="optionStyle"
class="van-ellipsis"
:class="b('item', {
disabled: isDisabled(option),
selected: index === currentIndex
})"
@click="setIndex(index, true)"
:style="itemStyle"
/>
</ul>
</div>
@@ -99,7 +98,8 @@ export default create({
lineHeight: this.itemHeight + 'px'
};
},
itemStyle() {
optionStyle() {
return {
height: this.itemHeight + 'px'
};