mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-25 10:56:35 +08:00
fix(AddressList): bottom slot not work
This commit is contained in:
parent
966fb5f46a
commit
d9e0e753f1
@ -41,14 +41,14 @@ export default createComponent({
|
|||||||
|
|
||||||
return list.map((item, index) => (
|
return list.map((item, index) => (
|
||||||
<AddressItem
|
<AddressItem
|
||||||
|
v-slots={{
|
||||||
|
bottom: slots['item-bottom'],
|
||||||
|
}}
|
||||||
data={item}
|
data={item}
|
||||||
key={item.id}
|
key={item.id}
|
||||||
disabled={disabled}
|
disabled={disabled}
|
||||||
switchable={props.switchable}
|
switchable={props.switchable}
|
||||||
defaultTagText={props.defaultTagText}
|
defaultTagText={props.defaultTagText}
|
||||||
scopedSlots={{
|
|
||||||
bottom: slots['item-bottom'],
|
|
||||||
}}
|
|
||||||
onSelect={() => {
|
onSelect={() => {
|
||||||
emit(disabled ? 'select-disabled' : 'select', item, index);
|
emit(disabled ? 'select-disabled' : 'select', item, index);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user