@@ -2,7 +2,6 @@
|
||||
<wd-popup
|
||||
v-model="visible"
|
||||
position="bottom"
|
||||
@close="handleClose"
|
||||
>
|
||||
<view class="goods-selector">
|
||||
<view v-if="selectedIndex !== -1" class="goods-info-mini">
|
||||
@@ -94,20 +93,9 @@ const handleConfirm = () => {
|
||||
return
|
||||
}
|
||||
|
||||
visible.value = false
|
||||
emit('confirm', props.goods[selectedIndex.value])
|
||||
}
|
||||
|
||||
/**
|
||||
* 关闭弹窗
|
||||
*/
|
||||
const handleClose = () => {
|
||||
visible.value = false
|
||||
emit('close')
|
||||
}
|
||||
|
||||
|
||||
|
||||
// 监听显示状态,重置选择
|
||||
watch(() => props.show, (newVal: boolean) => {
|
||||
if (newVal && props.goods.length > 0) {
|
||||
|
||||
Reference in New Issue
Block a user