mirror of
https://github.com/youzan/vant.git
synced 2025-10-21 11:17:41 +00:00
[breaking change] Cell: show active color when clicked (#497)
This commit is contained in:
@@ -2,12 +2,12 @@
|
||||
<div class="van-contact-list">
|
||||
<radio-group :value="value" @input="$emit('input', $event)">
|
||||
<cell-group>
|
||||
<cell v-for="(item, index) in list" :key="item.id">
|
||||
<cell v-for="(item, index) in list" :key="item.id" is-link>
|
||||
<radio :name="item.id" @click="$emit('select', item, index)">
|
||||
<p class="van-contact-list__text">{{ $t('name') }}:{{ item.name }}</p>
|
||||
<p class="van-contact-list__text">{{ $t('tel') }}:{{ item.tel }}</p>
|
||||
</radio>
|
||||
<icon name="edit" class="van-contact-list__edit" @click="$emit('edit', item, index)" />
|
||||
<icon slot="right-icon" name="edit" class="van-contact-list__edit" @click="$emit('edit', item, index)" />
|
||||
</cell>
|
||||
</cell-group>
|
||||
</radio-group>
|
||||
|
Reference in New Issue
Block a user