diff --git a/.vitepress/config.ts b/.vitepress/config.ts index fdbb5ecaf..7cf30860b 100644 --- a/.vitepress/config.ts +++ b/.vitepress/config.ts @@ -721,9 +721,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 088801d7d..ece803888 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 2c2590abc..2318444df 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 85524e859..d7a2ff78f 100644 --- a/.vitepress/theme/components/VueJobs.vue +++ b/.vitepress/theme/components/VueJobs.vue @@ -1,8 +1,10 @@