Skip to content

I want to create a template I defined using the nuxi add command. #397

Closed as duplicate

Description

@JangCool

When you create a component using the nuxi add command, the basic contents are created as follows.

<script lang="ts" setup></script>

<template>
  <div>
    Component: common/TheHeader
  </div>
</template>

<style scoped></style>

But, I would like to create a component with more content.

<script lang="ts" setup>

//example....
const common = useCommon();
const utils = useUtils();
const userInfo = useUserInfo();


</script>

<template>
  <div>
    Component: common/TheHeader
  </div>
</template>

<style scoped></style>

Is there a way to replace the template?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions