From 8fb55f2fb1f1e024cd1b2882aefd17242959b48c Mon Sep 17 00:00:00 2001 From: Hccake Date: Wed, 15 Jun 2022 23:30:12 +0800 Subject: [PATCH] fix: antdv variable.less not loaded when sets root-entry-name to variable --- src/core/resolvers/antdv.ts | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/core/resolvers/antdv.ts b/src/core/resolvers/antdv.ts index ad5b8c94..32f97374 100644 --- a/src/core/resolvers/antdv.ts +++ b/src/core/resolvers/antdv.ts @@ -1,4 +1,3 @@ -import { resolve } from 'path' import type { ComponentResolver, SideEffectsInfo } from '../../types' import { kebabCase } from '../utils' interface IMatcher { @@ -222,8 +221,13 @@ function getSideEffects(compName: string, options: AntDesignVueResolverOptions): const lib = options.cjs ? 'lib' : 'es' if (importStyle === 'less' || importLess) { - const styleDir = getStyleDir(compName) - return `ant-design-vue/${lib}/${styleDir}/style` + if (compName === 'Col' || compName === 'Row') { + return `ant-design-vue/${lib}/style/index.less` + } + else { + const styleDir = getStyleDir(compName) + return `ant-design-vue/${lib}/${styleDir}/style/index.less` + } } else { const styleDir = getStyleDir(compName) pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy