Merge branch 'prod'
commit
ea5a98daba
|
@ -39,12 +39,12 @@ app.use(PrimeVue, {
|
||||||
},
|
},
|
||||||
code2: {
|
code2: {
|
||||||
basic: `
|
basic: `
|
||||||
<Button label="Toggle Color Scheme" @click="toggleColorScheme()" />
|
<Button label="Toggle Dark Mode" @click="toggleDarkMode()" />
|
||||||
`
|
`
|
||||||
},
|
},
|
||||||
code3: {
|
code3: {
|
||||||
basic: `
|
basic: `
|
||||||
const toggleColorScheme() {
|
function toggleDarkMode() {
|
||||||
const element = document.querySelector('html');
|
const element = document.querySelector('html');
|
||||||
element.classList.toggle('my-app-dark');
|
element.classList.toggle('my-app-dark');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue