From 9ac0ddea4beec1a1c4471463d3476ccd019bd84e Mon Sep 17 00:00:00 2001 From: wxsm Date: Sun, 12 Dec 2021 10:01:48 +0800 Subject: [PATCH] feat(sfc-playground): add github link (#5067) --- packages/sfc-playground/src/Header.vue | 15 ++++++++++++++- packages/sfc-playground/src/icons/GitHub.vue | 7 +++++++ 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 packages/sfc-playground/src/icons/GitHub.vue diff --git a/packages/sfc-playground/src/Header.vue b/packages/sfc-playground/src/Header.vue index 44b1d46f..69311c4b 100644 --- a/packages/sfc-playground/src/Header.vue +++ b/packages/sfc-playground/src/Header.vue @@ -5,6 +5,7 @@ import Sun from './icons/Sun.vue' import Moon from './icons/Moon.vue' import Share from './icons/Share.vue' import Download from './icons/Download.vue' +import GitHub from './icons/GitHub.vue' // @ts-ignore const { store } = defineProps(['store']) @@ -125,6 +126,17 @@ async function fetchVersions(): Promise { > + @@ -272,7 +284,8 @@ h1 img { } .share, -.download { +.download, +.github { margin: 0 2px; } diff --git a/packages/sfc-playground/src/icons/GitHub.vue b/packages/sfc-playground/src/icons/GitHub.vue new file mode 100644 index 00000000..a20522f1 --- /dev/null +++ b/packages/sfc-playground/src/icons/GitHub.vue @@ -0,0 +1,7 @@ +