From 1bc0434c0d81f4cd45d96874d0b8982d6e8c9175 Mon Sep 17 00:00:00 2001 From: Evan You Date: Wed, 1 Mar 2023 11:04:44 +0800 Subject: [PATCH] remove use of reactivity transform --- .vitepress/config.ts | 4 --- .vitepress/theme/components/Banner.vue | 6 ++-- .../theme/components/PreferenceSwitch.vue | 10 +++---- .vitepress/theme/components/SponsorsGroup.vue | 25 ++++++++++------- .vitepress/theme/components/VueJobs.vue | 20 +++++++------ .../theme/components/VueMasteryModal.vue | 4 +-- env.d.ts | 1 - src/about/releases.md | 6 ++-- .../built-ins/keep-alive-demos/CompA.vue | 3 +- .../built-ins/keep-alive-demos/CompB.vue | 3 +- .../keep-alive-demos/SwitchComponent.vue | 5 ++-- src/guide/built-ins/teleport.md | 3 +- .../built-ins/transition-demos/Basic.vue | 3 +- .../transition-demos/BetweenComponents.vue | 4 +-- .../transition-demos/BetweenElements.vue | 6 ++-- .../transition-demos/CssAnimation.vue | 3 +- .../built-ins/transition-demos/JsHooks.vue | 3 +- .../built-ins/transition-demos/ListMove.vue | 11 ++++---- .../transition-demos/ListStagger.vue | 5 ++-- .../transition-demos/NestedTransitions.vue | 3 +- .../built-ins/transition-demos/SlideFade.vue | 3 +- .../essentials/reactivity-fundamentals.md | 25 ----------------- src/guide/extras/demos/Colors.vue | 7 +++-- src/guide/extras/demos/DisabledButton.vue | 8 ++++-- src/guide/extras/demos/ElasticHeader.vue | 18 ++++++------ src/guide/typescript/composition-api.md | 17 ----------- src/partners/components/PartnerAll.vue | 6 ++-- src/partners/components/PartnerCard.vue | 4 +-- src/partners/components/PartnerHero.vue | 4 +-- src/partners/components/PartnerLanding.vue | 9 +++--- src/partners/components/PartnerList.vue | 28 +++++++++++-------- src/partners/components/PartnerPage.vue | 4 +-- 32 files changed, 126 insertions(+), 135 deletions(-) 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 @@