Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

antd所有样式不生效 #46

Open
noyalin opened this issue Mar 6, 2024 · 1 comment
Open

antd所有样式不生效 #46

noyalin opened this issue Mar 6, 2024 · 1 comment

Comments

@noyalin
Copy link

noyalin commented Mar 6, 2024

浏览器中审查元素,发现ant开头的class样式等都不生效,不知道为什么?代码如下:

nuxt.config.ts

export default defineNuxtConfig({
  devtools: { enabled: true },
  modules: [
    '@ant-design-vue/nuxt'
  ],
})

package.json

{
  "name": "nuxt-app",
  "private": true,
  "type": "module",
  "scripts": {
    "build": "nuxt build",
    "dev": "nuxt dev",
    "generate": "nuxt generate",
    "preview": "nuxt preview",
    "postinstall": "nuxt prepare"
  },
  "dependencies": {
    "nuxt": "^3.10.3",
    "vue": "^3.4.19",
    "vue-router": "^4.3.0"
  },
  "devDependencies": {
    "@ant-design-vue/nuxt": "^1.4.1"
  }
}

app.vue

<template>
  <div>
    <a-button>
      button
    </a-button>
  </div>
</template>
@luyaozi
Copy link

luyaozi commented May 12, 2024

还需要安装ant-design-vue 文档中没有xie

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants