Skip to content

Commit c1ffcd6

Browse files
authored
fix(varlet-ui): fix the problem that ImagePreview cannot be imported automatically (#544)
1 parent 288644b commit c1ffcd6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/resolvers/varlet-ui.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export interface VarletUIResolverOptions {
4242
importLess?: boolean
4343
}
4444

45-
const varFunctions = ['Snackbar', 'Picker', 'ActionSheet', 'Dialog', 'Locale', 'StyleProvider']
45+
const varFunctions = ['ImagePreview', 'Snackbar', 'Picker', 'ActionSheet', 'Dialog', 'Locale', 'StyleProvider']
4646
const varDirectives = ['Ripple', 'Lazy']
4747

4848
export function getResolved(name: string, options: VarletUIResolverOptions): ComponentResolveResult {

0 commit comments

Comments
 (0)