feat: 新增自动展开站点绑定下拉

This commit is contained in:
xudan 2025-08-27 11:19:45 +08:00
parent da7470341c
commit d48a96f36b

View File

@ -26,6 +26,7 @@ const area = computed<MapAreaInfo | null>(() => {
const refBindPoint = shallowRef<PointBindModalRef>();
const pointKeyword = ref<string>('');
const activeCollapseKeys = ref<string[]>(['bind-sites']);
const points = computed<MapPen[]>(
() =>
<MapPen[]>(
@ -105,7 +106,7 @@ const actions = computed<MapPen[]>(() => points.value?.filter(({ point }) => poi
</a-col>
</a-row>
<a-collapse expand-icon-position="end" :bordered="false">
<a-collapse expand-icon-position="end" :bordered="false" v-model:activeKey="activeCollapseKeys">
<template #expandIcon="v">
<i class="icon dropdown" :class="{ active: v?.isActive }" />
</template>
@ -136,6 +137,7 @@ const actions = computed<MapPen[]>(() => points.value?.filter(({ point }) => poi
area.type !== MapAreaType.描述区
"
:header="$t('绑定站点')"
key="bind-sites"
>
<template #extra>
<a-button class="icon-btn" size="small" @click.stop="refBindPoint?.open(pen)">