diff --git a/.github/workflows/ci-v3.yml b/.github/workflows/ci-v3.yml
index c0d92358f6..d5f649d429 100644
--- a/.github/workflows/ci-v3.yml
+++ b/.github/workflows/ci-v3.yml
@@ -56,6 +56,9 @@ jobs:
- name: Test
run: pnpm run test
+ - name: Test (vue)
+ run: pnpm run test:vue
+
- name: Build
run: pnpm run build
diff --git a/.gitignore b/.gitignore
index 4a7f73a2ed..96dceea8ac 100644
--- a/.gitignore
+++ b/.gitignore
@@ -22,3 +22,6 @@ logs
.env
.env.*
!.env.example
+
+playground-vue/auto-imports.d.ts
+playground-vue/components.d.ts
diff --git a/build.config.ts b/build.config.ts
index 981b59c3a3..6373e67aec 100644
--- a/build.config.ts
+++ b/build.config.ts
@@ -1,6 +1,13 @@
import { defineBuildConfig } from 'unbuild'
export default defineBuildConfig({
+ entries: [
+ './src/unplugin',
+ './src/vite'
+ ],
+ rollup: {
+ emitCJS: true
+ },
replace: {
'process.env.DEV': 'false'
},
@@ -8,5 +15,6 @@ export default defineBuildConfig({
'mkdist:entry:options'(ctx, entry, options) {
options.addRelativeDeclarationExtensions = false
}
- }
+ },
+ externals: ['#build/ui', 'vite']
})
diff --git a/docs/app/app.vue b/docs/app/app.vue
index 63be6b093d..d70202f652 100644
--- a/docs/app/app.vue
+++ b/docs/app/app.vue
@@ -76,7 +76,16 @@ useServerSeoMeta({
twitterCard: 'summary_large_image'
})
-provide('navigation', navigation)
+const updatedNavigation = computed(() => navigation.value.map(item => ({
+ ...item,
+ children: item.children?.map(child => ({
+ ...child,
+ active: child.title === 'Installation' ? route.path.startsWith('/getting-started/installation') : undefined,
+ children: child.title === 'Installation' ? [] : child.children
+ })) || []
+})))
+
+provide('navigation', updatedNavigation)
diff --git a/docs/app/components/Header.vue b/docs/app/components/Header.vue
index b5638fb16f..a1b6909b3f 100644
--- a/docs/app/components/Header.vue
+++ b/docs/app/components/Header.vue
@@ -55,7 +55,7 @@ defineShortcuts({
-->
-
+
diff --git a/docs/app/pages/[...slug].vue b/docs/app/pages/[...slug].vue
index adaa362c15..4cfda96f16 100644
--- a/docs/app/pages/[...slug].vue
+++ b/docs/app/pages/[...slug].vue
@@ -1,6 +1,7 @@
+