@@ -255,12 +255,14 @@ const props = withDefaults(defineProps<{
|
||||
autofocus?: boolean
|
||||
currentFloorId?: string
|
||||
currentFloorLabel?: string
|
||||
locationPreviewSelection?: boolean
|
||||
}>(), {
|
||||
initialKeyword: '',
|
||||
variant: 'page',
|
||||
autofocus: false,
|
||||
currentFloorId: '',
|
||||
currentFloorLabel: ''
|
||||
currentFloorLabel: '',
|
||||
locationPreviewSelection: false
|
||||
})
|
||||
|
||||
const emit = defineEmits<{
|
||||
@@ -913,7 +915,7 @@ const handleResultTap = (poi: MuseumPoi) => {
|
||||
// H5 普通 view 的滚动事件并非始终派发,进入详情前直接读取真实位置。
|
||||
captureResultListScroll()
|
||||
const context = createSearchContext()
|
||||
if (props.variant === 'home') {
|
||||
if (props.variant === 'home' || props.locationPreviewSelection) {
|
||||
emit('resultTap', poi, context)
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user