Skip to content

Commit

Permalink
fix: multi focus show
Browse files Browse the repository at this point in the history
  • Loading branch information
lisonge committed Aug 6, 2024
1 parent e89aa2b commit a92aba9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions src/components/DraggableCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ const props = withDefaults(
};
minWidth?: number;
sizeDraggable?: boolean;
disabled?: boolean;
show?: boolean;
}>(),
{ initialValue: () => ({}) },
{ initialValue: () => ({}), show: true },
);
const isLeft = props.initialValue.left !== void 0;
Expand Down Expand Up @@ -147,8 +147,9 @@ const updateTarget = (arg: unknown) => {
};
</script>
<template>
<Teleport to="#app" :disabled="disabled">
<Teleport to="#app">
<div
v-if="show"
fixed
ref="box"
:style="[$attrs.style as string, currentStyle]"
Expand Down
2 changes: 1 addition & 1 deletion src/views/snapshot/MultiFocusCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const left = _1vw * 25.5;
:initialValue="{ top: 215, left }"
v-slot="{ onRef }"
class="z-2 box-shadow-dim w-420px"
:disabled="!focusNodes"
:show="!!focusNodes"
>
<NCard v-if="focusNodes" size="small" closable @close="onClose">
<template #header>
Expand Down

0 comments on commit a92aba9

Please sign in to comment.