workflow(sfc-playground): share and download buttons

This commit is contained in:
Evan You
2021-03-28 23:36:36 -04:00
parent aa8bf1b7a3
commit 9613969ffc
15 changed files with 232 additions and 25 deletions

View File

@@ -38,15 +38,10 @@ const mode = ref<Modes>('preview')
background-color: white;
}
.tab-buttons button {
margin: 0;
font-size: 13px;
font-family: var(--font-code);
border: none;
outline: none;
background-color: transparent;
padding: 8px 16px 6px;
text-transform: uppercase;
cursor: pointer;
color: #999;
box-sizing: border-box;
}

View File

@@ -97,7 +97,8 @@
['clear', 'log', 'info', 'dir', 'warn', 'error', 'table'].forEach((level) => {
const original = console[level];
console[level] = (...args) => {
if (String(args[0]).includes('You are running a development build of Vue')) {
const msg = String(args[0])
if (msg.includes('You are running a development build of Vue')) {
return
}
const stringifiedArgs = stringify(args);