🔨 优化卡片右键菜单.

This commit is contained in:
lijiahangmax
2025-07-09 00:18:42 +08:00
parent bf04e8eace
commit 0224e2f19a
4 changed files with 4 additions and 6 deletions

View File

@@ -112,7 +112,6 @@ public class HostConnectServiceImpl implements HostConnectService {
Streams.close(sessionStore);
}
}
// TODO: 其他连接方式
}
@Override

View File

@@ -9,7 +9,6 @@
:bordered="false"
:hoverable="true"
:body-style="cardBodyStyle as Record<string, any>"
@contextmenu.prevent="() => false"
@click="bubblesEmitter(CardEmitter.CLICK, item, index)"
@dblclick="bubblesEmitter(CardEmitter.DBL_CLICK, item, index)">
<!-- 标题 -->

View File

@@ -33,7 +33,9 @@
v-bind="cardLayoutCols"
:class="{ 'disabled-col': item.disabled === true }">
<!-- 右键菜单 -->
<a-dropdown trigger="contextMenu" alignPoint>
<a-dropdown trigger="contextMenu"
:disabled="!$slots.contextMenu"
alignPoint>
<!-- 卡片 -->
<card-item v-bind="props"
:index="index"
@@ -48,7 +50,7 @@
</template>
</card-item>
<!-- 右键菜单 -->
<template v-if="contextMenu" #content>
<template v-if="$slots.contextMenu" #content>
<slot name="contextMenu"
:record="item"
:index="index"
@@ -92,7 +94,6 @@
pagination: false,
loading: false,
cardHeight: '100%',
contextMenu: true,
filterCount: 0,
searchInputWidth: '200px',
searchValue: '',

View File

@@ -13,7 +13,6 @@ export interface CardProps {
cardHeight?: string;
cardClass?: string;
cardBodyStyle?: CSSProperties;
contextMenu?: boolean;
filterCount?: number;
searchInputPlaceholder?: string;
searchInputWidth?: string;