From: w2xi <57785259+w2xi@users.noreply.github.com> Date: Fri, 11 Oct 2024 02:31:01 +0000 (+0800) Subject: chore(sfc-playground): adjust the tooltip text for toggling the theme (#12116) X-Git-Tag: v3.5.12~19 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e0a591e1cdf842631104f16ce5753e487c08e439;p=thirdparty%2Fvuejs%2Fcore.git chore(sfc-playground): adjust the tooltip text for toggling the theme (#12116) * chore(sfc-playground): adjust the tooltip text for toggling the theme * [autofix.ci] apply automated fixes --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> --- diff --git a/packages-private/sfc-playground/src/App.vue b/packages-private/sfc-playground/src/App.vue index c9295d41b0..d163b1a3ee 100644 --- a/packages-private/sfc-playground/src/App.vue +++ b/packages-private/sfc-playground/src/App.vue @@ -123,6 +123,7 @@ onMounted(() => { :prod="productionMode" :ssr="useSSRMode" :autoSave="autoSave" + :theme="theme" @toggle-theme="toggleTheme" @toggle-prod="toggleProdMode" @toggle-ssr="toggleSSR" diff --git a/packages-private/sfc-playground/src/Header.vue b/packages-private/sfc-playground/src/Header.vue index 2778724b0a..aea6c022a3 100644 --- a/packages-private/sfc-playground/src/Header.vue +++ b/packages-private/sfc-playground/src/Header.vue @@ -15,6 +15,7 @@ const props = defineProps<{ prod: boolean ssr: boolean autoSave: boolean + theme: 'dark' | 'light' }>() const emit = defineEmits([ 'toggle-theme', @@ -117,7 +118,11 @@ function toggleDark() { > {{ autoSave ? 'AutoSave ON' : 'AutoSave OFF' }} -