Skip to content

Commit

Permalink
feat: fix image type
Browse files Browse the repository at this point in the history
  • Loading branch information
Sanqi committed Nov 3, 2022
1 parent fe695a7 commit 7ca5cc8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/quark/src/image/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ type FitType = 'fill' | 'contain' | 'cover' | 'none' | 'scale-down';

type Stauts = 'loading' | 'loaded' | 'error';

type LazyLoadType = {
add: (el: HTMLImageElement, src: string, parent?: ParentNode | null) => void
}
@customElement({
tag: 'quark-image',
style
Expand Down Expand Up @@ -45,7 +48,7 @@ class QuarkImage extends QuarkElement {
@property()
radius: number | string = '';

lazyTarget: typeof LazyLoad | null = null;
lazyTarget: LazyLoadType = null;

@state()
status: Stauts = 'loading';
Expand Down

0 comments on commit 7ca5cc8

Please sign in to comment.