mirror of
https://github.com/youzan/vant.git
synced 2025-10-21 03:11:15 +00:00
[improvement] AddressList: add switchable prop (#1938)
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
v-for="(item, index) in list"
|
||||
:data="item"
|
||||
:key="item.id"
|
||||
:switchable="switchable"
|
||||
@select="$emit('select', item, index)"
|
||||
@edit="$emit('edit', item, index)"
|
||||
/>
|
||||
@@ -54,6 +55,10 @@ export default create({
|
||||
disabledText: String,
|
||||
addButtonText: String,
|
||||
value: [String, Number],
|
||||
switchable: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
},
|
||||
list: {
|
||||
type: Array,
|
||||
default: () => []
|
||||
|
Reference in New Issue
Block a user