mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-15 20:48:12 +01:00
Compare commits
5 Commits
refactor/t
...
feat/detec
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
eb523f0171 | ||
|
|
d23ae6d8a5 | ||
|
|
dbed234c73 | ||
|
|
8ffe5ca69b | ||
|
|
05313dc0d4 |
@@ -86,9 +86,11 @@ const themeLink = computed(() => {
|
||||
return `https://github.com/nuxt/${repo}/blob/v3/src/theme/${slug}.ts`
|
||||
})
|
||||
|
||||
const { data: ast } = await useAsyncData(`component-theme-${camelName}-${hash({ props })}`, async () => {
|
||||
const themeHash = route.hash === '#theme'
|
||||
|
||||
const { data: ast } = await useAsyncData(`component-theme-${camelName}-${hash({ props, themeHash })}`, async () => {
|
||||
const md = `
|
||||
::code-collapse{class="nuxt-only"}
|
||||
::code-collapse{class="nuxt-only" ${themeHash ? 'open' : null} }
|
||||
|
||||
\`\`\`ts [app.config.ts]
|
||||
export default defineAppConfig(${json5.stringify(component.value, null, 2).replace(/,([ |\t\n]+[}|\])])/g, '$1')})
|
||||
@@ -96,7 +98,7 @@ export default defineAppConfig(${json5.stringify(component.value, null, 2).repla
|
||||
|
||||
::
|
||||
|
||||
::code-collapse{class="vue-only"}
|
||||
::code-collapse{class="vue-only" ${themeHash ? 'open' : null} }
|
||||
|
||||
\`\`\`ts [vite.config.ts]
|
||||
import { defineConfig } from 'vite'
|
||||
|
||||
Reference in New Issue
Block a user