Skip to content

Commit

Permalink
fix: DraggableCard show
Browse files Browse the repository at this point in the history
  • Loading branch information
lisonge committed Nov 3, 2024
1 parent b7967d6 commit e767df8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/views/snapshot/AttrCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,13 @@ const attrs = computed(() => {

<template>
<DraggableCard
v-if="focusNode"
:initialValue="{ top: 40, right: 10 }"
v-slot="{ onRef }"
class="box-shadow-dim"
:show="Boolean(focusNode)"
>
<NTable
v-if="focusNode"
size="small"
striped
:singleLine="false"
Expand Down
9 changes: 7 additions & 2 deletions src/views/snapshot/OverlapCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,17 @@ const left = _1vw * 25.5;
</script>
<template>
<DraggableCard
v-if="overlapNodes && focusPosition"
:initialValue="{ top: 215, left }"
v-slot="{ onRef }"
class="z-2 box-shadow-dim w-420px"
:show="Boolean(overlapNodes && focusPosition)"
>
<NCard size="small" closable @close="overlapNodes = undefined">
<NCard
v-if="overlapNodes && focusPosition"
size="small"
closable
@close="overlapNodes = undefined"
>
<template #header>
<div :ref="onRef" cursor-move>
位置
Expand Down

0 comments on commit e767df8

Please sign in to comment.