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
+27 -10
View File
@@ -2,16 +2,33 @@ import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
import tailwindcss from "@tailwindcss/vite";
import { fileURLToPath, URL } from "node:url";
export default defineConfig({
export default defineConfig(({ command }) => ({
plugins: [vue(), tailwindcss()],
resolve: {
alias: {
"@heroui-vue/components": fileURLToPath(
new URL("../../packages/vue/src/index.ts", import.meta.url),
),
"@heroui-vue/styles": fileURLToPath(
new URL("../../packages/styles/src/index.ts", import.meta.url),
),
},
alias: [
...(command === "serve"
? [
{
find: /^@heroui-vue\/styles\/css$/,
replacement: fileURLToPath(
new URL("../../packages/styles/index.css", import.meta.url),
),
},
]
: []),
{
find: /^@heroui-vue\/components$/,
replacement: fileURLToPath(
new URL("../../packages/vue/src/index.ts", import.meta.url),
),
},
{
find: /^@heroui-vue\/styles$/,
replacement: fileURLToPath(
new URL("../../packages/styles/src/index.ts", import.meta.url),
),
},
],
dedupe: ["vue"],
},
});
}));