prep: replace $$props.class with props
This commit is contained in:
1 parent
3ca72662ca
commit
0718c8e0c6
69 files changed
+383
-214
No files matched your search
@@ -7,9 +7,12 @@
|
||||
notation: 'compact',
|
||||
}
|
||||
|
||||
let clazz: string = ''
|
||||
export { clazz as class }
|
||||
|
||||
export { localeToUse as locale }
|
||||
</script>
|
||||
|
||||
<span class={$$props.class ?? ''}>
|
||||
<span class={clazz ?? ''}>
|
||||
{Intl.NumberFormat(localeToUse, options).format(number)}
|
||||
</span>
|
||||
@@ -57,13 +57,11 @@
|
||||
}
|
||||
|
||||
$: dateTime = toLocaleDateString(date)
|
||||
export let style: string = ''
|
||||
let clazz: string = ''
|
||||
export { clazz as class }
|
||||
</script>
|
||||
|
||||
<time
|
||||
datetime={dateTime}
|
||||
title={dateTime}
|
||||
class={$$props.class ?? ''}
|
||||
style={$$props.style ?? ''}
|
||||
>
|
||||
<time datetime={dateTime} title={dateTime} class={clazz} {style}>
|
||||
{formatRelativeDate(date, options, $locale, relativeTo)}
|
||||
</time>
|
||||
Reference in new issue
Block a user