From: 三咲智子 Kevin Deng Date: Sun, 9 Jul 2023 16:18:59 +0000 (+0800) Subject: workflow: support custom TS version for playground (#8735) X-Git-Tag: v3.3.5~80 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=788527e29ca261c61c2bbc30ef86c4fe32a5245e;p=thirdparty%2Fvuejs%2Fcore.git workflow: support custom TS version for playground (#8735) --- diff --git a/packages/sfc-playground/package.json b/packages/sfc-playground/package.json index 76e6a014e7..04752e3912 100644 --- a/packages/sfc-playground/package.json +++ b/packages/sfc-playground/package.json @@ -9,10 +9,10 @@ }, "devDependencies": { "@vitejs/plugin-vue": "^4.2.3", - "vite": "^4.3.9" + "vite": "^4.4.2" }, "dependencies": { - "@vue/repl": "^2.4.0", + "@vue/repl": "^2.5.4", "file-saver": "^2.0.5", "jszip": "^3.6.0", "vue": "workspace:*" diff --git a/packages/sfc-playground/src/App.vue b/packages/sfc-playground/src/App.vue index f9b77f47ea..744cfd4d9c 100644 --- a/packages/sfc-playground/src/App.vue +++ b/packages/sfc-playground/src/App.vue @@ -73,7 +73,7 @@ function toggleSSR() { store.setFiles(store.getFiles()) } -const theme = ref('dark') +const theme = ref<'dark' | 'light'>('dark') function toggleTheme(isDark: boolean) { theme.value = isDark ? 'dark' : 'light' } diff --git a/packages/sfc-playground/src/Header.vue b/packages/sfc-playground/src/Header.vue index d8271b8e52..e865a76a5f 100644 --- a/packages/sfc-playground/src/Header.vue +++ b/packages/sfc-playground/src/Header.vue @@ -1,44 +1,35 @@ @@ -109,28 +60,28 @@ async function fetchVersions(): Promise { Vue SFC Playground