🔨 优化卡片右键菜单.
This commit is contained in:
@@ -112,7 +112,6 @@ public class HostConnectServiceImpl implements HostConnectService {
|
|||||||
Streams.close(sessionStore);
|
Streams.close(sessionStore);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// TODO: 其他连接方式
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -9,7 +9,6 @@
|
|||||||
:bordered="false"
|
:bordered="false"
|
||||||
:hoverable="true"
|
:hoverable="true"
|
||||||
:body-style="cardBodyStyle as Record<string, any>"
|
:body-style="cardBodyStyle as Record<string, any>"
|
||||||
@contextmenu.prevent="() => false"
|
|
||||||
@click="bubblesEmitter(CardEmitter.CLICK, item, index)"
|
@click="bubblesEmitter(CardEmitter.CLICK, item, index)"
|
||||||
@dblclick="bubblesEmitter(CardEmitter.DBL_CLICK, item, index)">
|
@dblclick="bubblesEmitter(CardEmitter.DBL_CLICK, item, index)">
|
||||||
<!-- 标题 -->
|
<!-- 标题 -->
|
||||||
|
|||||||
@@ -33,7 +33,9 @@
|
|||||||
v-bind="cardLayoutCols"
|
v-bind="cardLayoutCols"
|
||||||
:class="{ 'disabled-col': item.disabled === true }">
|
:class="{ 'disabled-col': item.disabled === true }">
|
||||||
<!-- 右键菜单 -->
|
<!-- 右键菜单 -->
|
||||||
<a-dropdown trigger="contextMenu" alignPoint>
|
<a-dropdown trigger="contextMenu"
|
||||||
|
:disabled="!$slots.contextMenu"
|
||||||
|
alignPoint>
|
||||||
<!-- 卡片 -->
|
<!-- 卡片 -->
|
||||||
<card-item v-bind="props"
|
<card-item v-bind="props"
|
||||||
:index="index"
|
:index="index"
|
||||||
@@ -48,7 +50,7 @@
|
|||||||
</template>
|
</template>
|
||||||
</card-item>
|
</card-item>
|
||||||
<!-- 右键菜单 -->
|
<!-- 右键菜单 -->
|
||||||
<template v-if="contextMenu" #content>
|
<template v-if="$slots.contextMenu" #content>
|
||||||
<slot name="contextMenu"
|
<slot name="contextMenu"
|
||||||
:record="item"
|
:record="item"
|
||||||
:index="index"
|
:index="index"
|
||||||
@@ -92,7 +94,6 @@
|
|||||||
pagination: false,
|
pagination: false,
|
||||||
loading: false,
|
loading: false,
|
||||||
cardHeight: '100%',
|
cardHeight: '100%',
|
||||||
contextMenu: true,
|
|
||||||
filterCount: 0,
|
filterCount: 0,
|
||||||
searchInputWidth: '200px',
|
searchInputWidth: '200px',
|
||||||
searchValue: '',
|
searchValue: '',
|
||||||
|
|||||||
@@ -13,7 +13,6 @@ export interface CardProps {
|
|||||||
cardHeight?: string;
|
cardHeight?: string;
|
||||||
cardClass?: string;
|
cardClass?: string;
|
||||||
cardBodyStyle?: CSSProperties;
|
cardBodyStyle?: CSSProperties;
|
||||||
contextMenu?: boolean;
|
|
||||||
filterCount?: number;
|
filterCount?: number;
|
||||||
searchInputPlaceholder?: string;
|
searchInputPlaceholder?: string;
|
||||||
searchInputWidth?: string;
|
searchInputWidth?: string;
|
||||||
|
|||||||
Reference in New Issue
Block a user