mirror of
https://github.com/youzan/vant.git
synced 2025-10-19 10:07:07 +00:00
[bugfix] Area: fix test cases (#1451)
This commit is contained in:
@@ -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'
|
||||
};
|
||||
|
Reference in New Issue
Block a user