mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-02-02 21:27:54 +01:00
docs(IconsTheme): omit @nuxt/ui-pro icons
This commit is contained in:
@@ -1,20 +1,15 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import json5 from 'json5'
|
import json5 from 'json5'
|
||||||
|
import icons from '../../../../src/theme/icons'
|
||||||
const appConfig = useAppConfig()
|
|
||||||
|
|
||||||
const icons = computed(() => {
|
|
||||||
return {
|
|
||||||
ui: {
|
|
||||||
icons: appConfig.ui.icons
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
const { data: ast } = await useAsyncData(`icons-theme`, async () => {
|
const { data: ast } = await useAsyncData(`icons-theme`, async () => {
|
||||||
const md = `
|
const md = `
|
||||||
\`\`\`ts [app.config.ts]
|
\`\`\`ts [app.config.ts]
|
||||||
export default defineAppConfig(${json5.stringify(icons.value, null, 2).replace(/,([ |\t\n]+[}|\])])/g, '$1')})
|
export default defineAppConfig(${json5.stringify({
|
||||||
|
ui: {
|
||||||
|
icons
|
||||||
|
}
|
||||||
|
}, null, 2).replace(/,([ |\t\n]+[}|\])])/g, '$1')})
|
||||||
\`\`\`\
|
\`\`\`\
|
||||||
`
|
`
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user