vite-plugin-theme-preprocessor icon indicating copy to clipboard operation
vite-plugin-theme-preprocessor copied to clipboard

antd-vue在deep选择器+scoped下编译变量名会丢失属性

Open yutao-lin opened this issue 2 years ago • 1 comments

下方less编译后会丢失color属性只包含了font-size, 如果不使用变量的形式就正常

theme

@import "ant-design-vue/lib/style/themes/default.less";
@primary-color: #ed0a5a;

antd-vue-table

<style scoped lang="less">
:deep(.ant-table) th{
  font-size: 12px;
  color: @primary-color !important;
}
</style>

yutao-lin avatar Dec 12 '22 07:12 yutao-lin

你有找到好的解决方法吗?

chengup-git avatar May 09 '23 09:05 chengup-git