2022-01-31 21:13:58 +00:00
|
|
|
<script setup>
|
|
|
|
const themeConfig = useRuntimeConfig().theme
|
2022-08-17 15:23:13 +00:00
|
|
|
const appConfig = useAppConfig()
|
2022-03-09 11:03:36 +00:00
|
|
|
const foo = useFoo()
|
|
|
|
const bar = getBar()
|
2022-01-31 21:13:58 +00:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
2022-03-31 13:31:04 +00:00
|
|
|
<NuxtExampleLayout example="advanced/config-extends">
|
2022-08-17 15:23:13 +00:00
|
|
|
appConfig:
|
|
|
|
<pre>{{ JSON.stringify(appConfig, null, 2) }}</pre>
|
|
|
|
runtimeConfig:
|
2022-01-31 21:13:58 +00:00
|
|
|
<pre>{{ JSON.stringify(themeConfig, null, 2) }}</pre>
|
2022-02-07 20:48:25 +00:00
|
|
|
<BaseButton>Base Button</BaseButton>
|
|
|
|
<FancyButton>Fancy Button</FancyButton>
|
2022-03-16 20:36:30 +00:00
|
|
|
<UIButton>UI Button</UIButton>
|
2022-03-09 11:03:36 +00:00
|
|
|
<br>
|
|
|
|
{{ foo }} {{ bar }}
|
|
|
|
<br>
|
2022-03-09 10:51:32 +00:00
|
|
|
{{ $myPlugin() }}
|
2022-01-31 21:13:58 +00:00
|
|
|
</NuxtExampleLayout>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
pre {
|
|
|
|
text-align: left;
|
|
|
|
}
|
|
|
|
</style>
|