🔨 优化卡片右键菜单.
This commit is contained in:
@@ -112,7 +112,6 @@ public class HostConnectServiceImpl implements HostConnectService {
|
||||
Streams.close(sessionStore);
|
||||
}
|
||||
}
|
||||
// TODO: 其他连接方式
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -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)">
|
||||
<!-- 标题 -->
|
||||
|
||||
@@ -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: '',
|
||||
|
||||
@@ -13,7 +13,6 @@ export interface CardProps {
|
||||
cardHeight?: string;
|
||||
cardClass?: string;
|
||||
cardBodyStyle?: CSSProperties;
|
||||
contextMenu?: boolean;
|
||||
filterCount?: number;
|
||||
searchInputPlaceholder?: string;
|
||||
searchInputWidth?: string;
|
||||
|
||||
Reference in New Issue
Block a user