Skip to content

按需引入后,找不到ant-design-vue声明的less变量 #3138

@LinsRock

Description

@LinsRock
  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

2.0.0-beta.13

Environment

vue-cli 4.5 vue3 less

Reproduction link

https://github.com/vueComponent/ant-design-vue

Steps to reproduce

  1. 引入ant-design-vue样式
import 'ant-design-vue/dist/antd.less'
  1. 在项目中使用ant-design-vue中声明的less变量
h3 { color: @heading-color; }

What is expected?

可以正常使用ant-design-vue中声明的less变量

What is actually happening?

按需引入后,找不到ant-design-vue声明的less变量,不使用内置的less变量,样式是正常的
image
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions