mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 10:44:59 +00:00
[Improvement] more component use bem mixin (#932)
This commit is contained in:
@@ -1,8 +1,7 @@
|
||||
|
||||
<template>
|
||||
<div
|
||||
class="van-picker-column"
|
||||
:class="className"
|
||||
:class="[b(), className]"
|
||||
:style="columnStyle"
|
||||
@touchstart="onTouchStart"
|
||||
@touchmove.prevent="onTouchMove"
|
||||
@@ -14,10 +13,10 @@
|
||||
v-for="(option, index) in options"
|
||||
v-text="getOptionText(option)"
|
||||
class="van-ellipsis"
|
||||
:class="{
|
||||
'van-picker-column--disabled': isDisabled(option),
|
||||
'van-picker-column--selected': index === currentIndex
|
||||
}"
|
||||
:class="b('item', {
|
||||
disabled: isDisabled(option),
|
||||
selected: index === currentIndex
|
||||
})"
|
||||
@click="setIndex(index, true)"
|
||||
/>
|
||||
</ul>
|
||||
|
Reference in New Issue
Block a user