vueComponent / ant-design-vue

🌈 An enterprise-class UI components based on Ant Design and Vue. 🐜
https://antdv.com/
Other
20.13k stars 3.78k forks source link

基于antdv二次封装插件,为了避免样式污染同时又要可配置主题色,将antd的index.less封装在mixins中报错 #2013

Closed 1335098094 closed 4 years ago

1335098094 commented 4 years ago

基于antdv二次封装插件,为了避免样式污染使用插件的第三方,同时要具备更改主题色功能,将antd的index.less封装在mixins中报错。less代码如下,亲测只要去掉@import "~ant-design-vue/dist/antd.less";这行就不会报错。

.set-primary-color(@color:#43bc60;) {
  @import "~ant-design-vue/dist/antd.less";
  @import "./variable.less";
  @import "./common.less";
  @import './iconfont/ibicons.less';
  @import './components/index.less';
  @primary-color:@color;
}
.item-bank-sdk{
  .set-primary-color()
}

报错信息

Maximum call stack size exceeded

close-issue-app[bot] commented 4 years ago

Your issue has been closed because it does not conform to our issue requirements. Please use the Issue Helper to create an issue, thank you!

为了能够进行高效沟通,我们对 issue 有一定的格式要求,你的 issue 因为不符合要求而被自动关闭。你可以通过 issue 助手 来创建 issue 以方便我们定位错误。谢谢配合!

github-actions[bot] commented 3 years ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.