Skip to content

Commit

Permalink
Remove demo popup
Browse files Browse the repository at this point in the history
Fennec committed Mar 10, 2024
1 parent f2ec7fc commit 0a34355
Showing 2 changed files with 3 additions and 6 deletions.
3 changes: 0 additions & 3 deletions app/src/components/demo1/style/container/layout.css
Original file line number Diff line number Diff line change
@@ -22,9 +22,6 @@
}

.rect {
&:hover {
background: #444 !important;
}
transition: transform 0.5s ease-out;
}
}
6 changes: 3 additions & 3 deletions app/src/components/demo1/utils/Rect.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div ref="cell" :class="pop" :style="{ transform }" @click="setPopup" v-on-click-outside="reset" />
<div ref="cell" :class="pop" :style="{ transform }" v-on-click-outside="reset" />
</template>

<script lang="ts" setup>
@@ -13,7 +13,7 @@ const cell = ref<HTMLElement>();
const pop = ref<string>("");
const transform = ref<string>("");
const setPopup = async () => {
/* const setPopup = async () => {
if (reset()) return;
const element = cell.value!;
@@ -31,7 +31,7 @@ const setPopup = async () => {
const scale = Math.min(mainWidth * 0.7 / width, mainHeight * 0.7 / height);
transform.value = `translate3d(${(mainLeft + mainWidth / 2) - (left + width / 2)}px, ${(mainTop + mainHeight / 2) - (top + height / 2)}px, 5px) scale(${scale}, ${scale})`;
}
} */
const reset = () => {
if (popup.value) {

0 comments on commit 0a34355

Please sign in to comment.