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

+5
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)