diff --git a/.vitepress/config.ts b/.vitepress/config.ts index 543fbf6e..bc2e338b 100644 --- a/.vitepress/config.ts +++ b/.vitepress/config.ts @@ -687,9 +687,5 @@ export default defineConfigWithTheme({ json: { stringify: true } - }, - - vue: { - reactivityTransform: true } }) diff --git a/.vitepress/theme/components/Banner.vue b/.vitepress/theme/components/Banner.vue index 088801d7..ece80388 100644 --- a/.vitepress/theme/components/Banner.vue +++ b/.vitepress/theme/components/Banner.vue @@ -5,13 +5,15 @@ * 2. uncomment and update BANNER_ID in ../../inlined-scripts/restorePreferences.ts * 3. update --vt-banner-height if necessary */ +import { ref } from 'vue' + +const open = ref(true) -let open = $ref(true) /** * Call this if the banner is dismissible */ function dismiss() { - open = false + open.value = false document.documentElement.classList.add('banner-dismissed') localStorage.setItem(`vue-docs-banner-${__VUE_BANNER_ID__}`, 'true') } diff --git a/.vitepress/theme/components/PreferenceSwitch.vue b/.vitepress/theme/components/PreferenceSwitch.vue index 088d8bfd..d718b122 100644 --- a/.vitepress/theme/components/PreferenceSwitch.vue +++ b/.vitepress/theme/components/PreferenceSwitch.vue @@ -1,7 +1,7 @@ diff --git a/.vitepress/theme/components/VueJobs.vue b/.vitepress/theme/components/VueJobs.vue index 85524e85..d7a2ff78 100644 --- a/.vitepress/theme/components/VueJobs.vue +++ b/.vitepress/theme/components/VueJobs.vue @@ -1,8 +1,10 @@