mirror of
https://github.com/pheralb/svgl.git
synced 2025-02-05 22:48:17 +08:00
🛠️ Upgrade custom icons props
This commit is contained in:
parent
6598247779
commit
83845e2dd3
@ -1,5 +1,6 @@
|
||||
<script lang="ts">
|
||||
export let iconSize: number;
|
||||
import type { IconProps } from '@/types/icons';
|
||||
let { iconSize }: IconProps = $props();
|
||||
</script>
|
||||
|
||||
<svg
|
||||
|
@ -1,5 +1,6 @@
|
||||
<script lang="ts">
|
||||
export let iconSize: number;
|
||||
import type { IconProps } from '@/types/icons';
|
||||
let { iconSize }: IconProps = $props();
|
||||
</script>
|
||||
|
||||
<svg
|
||||
|
@ -1,5 +1,11 @@
|
||||
<script lang="ts">
|
||||
import type { IconProps } from '@/types/icons';
|
||||
let { iconSize }: IconProps = $props();
|
||||
</script>
|
||||
|
||||
<svg
|
||||
width="30"
|
||||
width={iconSize || 30}
|
||||
height={iconSize || 30}
|
||||
name="SVGL Logo"
|
||||
viewBox="0 0 512 512"
|
||||
fill="none"
|
||||
|
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.9 KiB |
@ -1,6 +1,6 @@
|
||||
<script lang="ts">
|
||||
export let iconSize: number;
|
||||
export let className: string;
|
||||
import type { IconProps } from '@/types/icons';
|
||||
let { iconSize, className }: IconProps = $props();
|
||||
</script>
|
||||
|
||||
<svg
|
||||
|
File diff suppressed because one or more lines are too long
@ -1,5 +1,6 @@
|
||||
<script lang="ts">
|
||||
export let iconSize: number;
|
||||
import type { IconProps } from '@/types/icons';
|
||||
let { iconSize, color }: IconProps = $props();
|
||||
</script>
|
||||
|
||||
<svg
|
||||
|
@ -1,5 +1,6 @@
|
||||
<script lang="ts">
|
||||
export let iconSize: number;
|
||||
import type { IconProps } from '@/types/icons';
|
||||
let { iconSize }: IconProps = $props();
|
||||
</script>
|
||||
|
||||
<svg
|
||||
|
@ -1,5 +1,6 @@
|
||||
<script lang="ts">
|
||||
export let iconSize: number;
|
||||
import type { IconProps } from '@/types/icons';
|
||||
let { iconSize }: IconProps = $props();
|
||||
</script>
|
||||
|
||||
<svg
|
||||
|
5
src/types/icons.ts
Normal file
5
src/types/icons.ts
Normal file
@ -0,0 +1,5 @@
|
||||
export interface IconProps {
|
||||
iconSize: number;
|
||||
className?: string;
|
||||
color?: string;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user