mirror of
https://github.com/nuxt/nuxt.git
synced 2024-12-26 06:07:15 +00:00
94f76ea930
Co-authored-by: Daniel Roe <daniel@roe.dev>
29 lines
633 B
Vue
29 lines
633 B
Vue
<script setup>
|
|
const themeConfig = useRuntimeConfig().theme
|
|
const appConfig = useAppConfig()
|
|
const foo = useFoo()
|
|
const bar = getBar()
|
|
</script>
|
|
|
|
<template>
|
|
<NuxtExampleLayout example="advanced/config-extends">
|
|
appConfig:
|
|
<pre>{{ JSON.stringify(appConfig, null, 2) }}</pre>
|
|
runtimeConfig:
|
|
<pre>{{ JSON.stringify(themeConfig, null, 2) }}</pre>
|
|
<BaseButton>Base Button</BaseButton>
|
|
<FancyButton>Fancy Button</FancyButton>
|
|
<UIButton>UI Button</UIButton>
|
|
<br>
|
|
{{ foo }} {{ bar }}
|
|
<br>
|
|
{{ $myPlugin() }}
|
|
</NuxtExampleLayout>
|
|
</template>
|
|
|
|
<style scoped>
|
|
pre {
|
|
text-align: left;
|
|
}
|
|
</style>
|