Skip to content

Commit 13647ed

Browse files
committed
refactor(varlet-ui): exclude custom directives resolved
1 parent 67cc844 commit 13647ed

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/core/resolvers/varlet-ui.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ export function getResolved(name: string, options: VarletUIResolverOptions): Com
5959
}
6060
}
6161

62+
const varDirectives = ['Ripple', 'Lazy']
63+
6264
/**
6365
* Resolver for VarletUI
6466
*
@@ -82,6 +84,9 @@ export function VarletUIResolver(options: VarletUIResolverOptions = {}): Compone
8284
if (!directives)
8385
return
8486

87+
if (!varDirectives.includes(name))
88+
return
89+
8590
return getResolved(name, options)
8691
},
8792
},

0 commit comments

Comments
 (0)
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