mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-16 02:44:51 +00:00
12 lines
284 B
TypeScript
12 lines
284 B
TypeScript
|
import { defineComponent } from 'vue'
|
||
|
|
||
|
export default defineComponent({
|
||
|
name: 'NuxtPage',
|
||
|
setup (_, props) {
|
||
|
if (process.dev) {
|
||
|
console.warn('Create a Vue component in the `pages/` directory to enable `<NuxtPage>`')
|
||
|
}
|
||
|
return () => props.slots.default?.()
|
||
|
}
|
||
|
})
|