feat: migrate Modal Popover and Tooltip with shared overlay foundation

This commit is contained in:
maoyingjie
2026-10-22 23:39:51 +08:00
parent b086d7f30d
commit 2b4ac04df1
108 changed files with 6888 additions and 100 deletions
+16 -1
View File
@@ -1,5 +1,17 @@
<script setup lang="ts">
import { ref } from "vue";
import OverlayAnimationLab from "./OverlayAnimationLab.vue";
const animationLab =
typeof window !== "undefined" &&
new URLSearchParams(window.location.search).has("overlay-animation");
import OverlayLab from "./OverlayLab.vue";
import OverlayComponentsLab from "./OverlayComponentsLab.vue";
const componentsLab =
typeof window !== "undefined" &&
new URLSearchParams(window.location.search).has("overlay-components");
const overlayLab =
typeof window !== "undefined" &&
new URLSearchParams(window.location.search).has("overlay-lab");
import { Button, Card, Input, Switch } from "@heroui-vue/components";
const dark = ref(false),
notifications = ref(true),
@@ -11,7 +23,10 @@ function save() {
}
</script>
<template>
<div class="lab" :data-theme="dark ? 'dark' : 'light'">
<OverlayAnimationLab v-if="animationLab" />
<OverlayComponentsLab v-else-if="componentsLab" />
<OverlayLab v-else-if="overlayLab" />
<div v-else class="lab" :data-theme="dark ? 'dark' : 'light'">
<header>
<a class="wordmark" href="#">
hero