mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 12:14:41 +01:00
23 lines
473 B
Vue
23 lines
473 B
Vue
<script setup lang="ts">
|
|
import json5 from 'json5'
|
|
import icons from '../../../../src/theme/icons'
|
|
|
|
const { data: ast } = await useAsyncData(`icons-theme`, async () => {
|
|
const md = `
|
|
\`\`\`ts [app.config.ts]
|
|
export default defineAppConfig(${json5.stringify({
|
|
ui: {
|
|
icons
|
|
}
|
|
}, null, 2).replace(/,([ |\t\n]+[}|\])])/g, '$1')})
|
|
\`\`\`\
|
|
`
|
|
|
|
return parseMarkdown(md)
|
|
})
|
|
</script>
|
|
|
|
<template>
|
|
<MDCRenderer v-if="ast" :body="ast.body" :data="ast.data" />
|
|
</template>
|