feat: 新增自动展开站点绑定下拉
This commit is contained in:
parent
da7470341c
commit
d48a96f36b
@ -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)">
|
||||
|
Loading…
x
Reference in New Issue
Block a user