Skip to content

Commit

Permalink
fix: typing (#212)
Browse files Browse the repository at this point in the history
  • Loading branch information
sakanjo authored Sep 5, 2023
1 parent c020f91 commit cf4d43f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion components/Alert/src/index.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
export let icon: KAlertProps['icon'] = '';
export let closable: KAlertProps['closable'] = true;
export let closeIcon: KAlertProps['closeIcon'] = 'i-carbon-close';
export let cls: KAlertProps['cls'] = '';
export let cls: KAlertProps['cls'] = undefined;
export let attrs: KAlertProps['attrs'] = {};
const dispatch = createEventDispatcher();
Expand Down
4 changes: 2 additions & 2 deletions components/Avatar/src/index.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
export let fit: 'fill' | 'contain' | 'cover' | 'none' | 'scale-down' = 'cover';
export let size: string | number = '50px';
export let radius: string | number = '4px';
export let cls: ClassValue = '';
export let attrs: any = {};
export let cls: ClassValue = undefined;
export let attrs: Record<string, string> = {};
let avatarSize: string = size;
$: if (isNumber(size)) {
Expand Down
3 changes: 2 additions & 1 deletion components/Backtop/src/index.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import { createEventDispatcher, onDestroy, onMount } from 'svelte';
import { clsx, type ClassValue } from 'clsx';
export let cls: ClassValue = '';
export let cls: ClassValue = undefined;
export let attrs: Record<string, string> = {};
export let right: number = 40;
export let bottom: number = 40;
Expand All @@ -31,6 +31,7 @@
to: { scrollTop: 0 },
easing: easing as easingType,
duration: duration,
delay: 0,
onUpdate: (keys: any) => {
if (targetEl) targetEl.scrollTop = keys.scrollTop;
}
Expand Down

0 comments on commit cf4d43f

Please sign in to comment.