2021-04-23 19:52:32 +00:00
|
|
|
<template>
|
2021-10-02 20:30:20 +00:00
|
|
|
<div>
|
2022-02-14 10:46:27 +00:00
|
|
|
<Head>
|
|
|
|
<Title>Basic fixture</Title>
|
|
|
|
</Head>
|
2022-02-18 18:14:57 +00:00
|
|
|
<h1>Hello Nuxt 3!</h1>
|
2022-03-08 18:03:21 +00:00
|
|
|
<div>RuntimeConfig | testConfig: {{ config.testConfig }}</div>
|
|
|
|
<div>Composable | foo: {{ foo }}</div>
|
|
|
|
<div>Composable | bar: {{ bar }}</div>
|
2022-06-08 20:09:31 +00:00
|
|
|
<div>Composable | template: {{ templateAutoImport }}</div>
|
2022-05-03 09:31:58 +00:00
|
|
|
<div>Path: {{ $route.fullPath }}</div>
|
2022-04-04 08:23:11 +00:00
|
|
|
<NuxtLink to="/">
|
|
|
|
Link
|
|
|
|
</NuxtLink>
|
2022-03-17 22:17:59 +00:00
|
|
|
<SugarCounter :count="12" />
|
2022-02-17 14:23:55 +00:00
|
|
|
<CustomComponent />
|
2022-07-27 13:05:34 +00:00
|
|
|
<component :is="`test${'-'.toString()}global`" />
|
|
|
|
<component :is="`with${'-'.toString()}suffix`" />
|
2022-08-02 15:05:02 +00:00
|
|
|
<ClientWrapped ref="clientRef" style="color: red;" class="client-only" />
|
2021-10-02 20:30:20 +00:00
|
|
|
</div>
|
2021-04-23 19:52:32 +00:00
|
|
|
</template>
|
2021-10-02 20:30:20 +00:00
|
|
|
|
|
|
|
<script setup>
|
2022-08-17 14:44:36 +00:00
|
|
|
import { setupDevtoolsPlugin } from '@vue/devtools-api'
|
2022-07-21 14:27:23 +00:00
|
|
|
import { useRuntimeConfig } from '#imports'
|
|
|
|
|
2022-08-17 14:44:36 +00:00
|
|
|
setupDevtoolsPlugin({}, () => {})
|
|
|
|
|
2022-02-25 20:14:53 +00:00
|
|
|
const config = useRuntimeConfig()
|
|
|
|
|
2022-08-02 11:20:44 +00:00
|
|
|
// reset title template example
|
|
|
|
useHead({
|
2022-08-10 15:46:46 +00:00
|
|
|
titleTemplate: ''
|
2022-08-02 11:20:44 +00:00
|
|
|
})
|
|
|
|
|
2022-02-25 20:14:53 +00:00
|
|
|
const foo = useFoo()
|
|
|
|
const bar = useBar()
|
2022-08-02 15:05:02 +00:00
|
|
|
const clientRef = ref()
|
|
|
|
|
|
|
|
onMounted(() => {
|
|
|
|
clientRef.value.exposedFunc()
|
|
|
|
})
|
2021-10-02 20:30:20 +00:00
|
|
|
</script>
|