适配顶部导航

This commit is contained in:
owen
2024-03-14 00:13:40 +08:00
parent 1a5e7902b8
commit c5b1ad480f
6 changed files with 263 additions and 78 deletions

View File

@@ -189,7 +189,7 @@ const emit = defineEmits(['update:modelValue', 'hotAreaSelected'])
const emitUpdateModelValue = () => emit('update:modelValue', hotAreas)
// 热区选中
const selectedHotAreaIndex = ref(-1)
const selectedHotAreaIndex = ref(0)
const handleHotAreaSelected = (hotArea: Rect, index: number) => {
selectedHotAreaIndex.value = index
emit('hotAreaSelected', hotArea, index)