Skip to content

next-dev-team/nuxt3-antd

Repository files navigation

DISCONTINUE

Since now official repo is supported https://github.com/vueComponent/ant-design-vue-nuxt/tree/main

Nuxt 3 Boilerplate with Ant Design

Look at the nuxt 3 documentation to learn more.

Online Preview

https://nuxt3-ant-design.netlify.app/

Setup

Make sure to install the dependencies:

# pnpm
pnpm i

Development Server

Start the development server on http://localhost:3000

pnpm  dev

Known Issue

  • hot reload antd not working in folder pages so I move all UI to template folder
  • Auto import Antd design Icon must be with Prefix <IconAnt...
  • Antd Typescript issue TypeScript not working with LiteralUnion please change new LiteralUnion here
type Primitive = null | undefined | string | number | boolean | symbol | bigint;

export type LiteralUnion<LiteralType, BaseType extends Primitive> =
  | LiteralType
  | (BaseType & Record<never, never>);

Credit

Thanks to Vue open source community