From 9d39cd46e9821b7b3883f81f45782fe8b52984b4 Mon Sep 17 00:00:00 2001 From: Evan You Date: Tue, 30 Mar 2021 22:00:46 -0400 Subject: [PATCH] workflow(sfc-playground): support selecting versions --- packages/sfc-playground/package.json | 2 +- packages/sfc-playground/src/App.vue | 3 +- packages/sfc-playground/src/Header.vue | 139 ++++++++++++++++++--- packages/sfc-playground/src/sfcCompiler.ts | 53 +++++--- yarn.lock | 8 +- 5 files changed, 166 insertions(+), 39 deletions(-) diff --git a/packages/sfc-playground/package.json b/packages/sfc-playground/package.json index 7f9473ed..27d5c7a8 100644 --- a/packages/sfc-playground/package.json +++ b/packages/sfc-playground/package.json @@ -18,7 +18,7 @@ "@types/codemirror": "^0.0.108", "@vitejs/plugin-vue": "^1.2.0", "codemirror": "^5.60.0", - "vite": "^2.1.4" + "vite": "^2.1.5" }, "dependencies": { "file-saver": "^2.0.5", diff --git a/packages/sfc-playground/src/App.vue b/packages/sfc-playground/src/App.vue index d2f16932..cf4424ad 100644 --- a/packages/sfc-playground/src/App.vue +++ b/packages/sfc-playground/src/App.vue @@ -24,9 +24,10 @@ body { font-size: 13px; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; - color: #444; + color:var(--base); margin: 0; background-color: #f8f8f8; + --base: #444; --nav-height: 50px; --font-code: 'Source Code Pro', monospace; --color-branding: #3ca877; diff --git a/packages/sfc-playground/src/Header.vue b/packages/sfc-playground/src/Header.vue index 8ec6b118..9c408e16 100644 --- a/packages/sfc-playground/src/Header.vue +++ b/packages/sfc-playground/src/Header.vue @@ -5,9 +5,21 @@ Vue SFC Playground