[增添]添加了datasource的setting数据库以及默认值

This commit is contained in:
makotocc0107
2024-08-27 09:57:44 +08:00
parent d111dfaea4
commit 72eb990970
10955 changed files with 978898 additions and 0 deletions

View File

@@ -0,0 +1,37 @@
@php
use Filament\Support\Enums\IconSize;
@endphp
@props([
'color' => 'gray',
'icon',
'size' => IconSize::Large,
])
<x-filament::icon
:icon="$icon"
:attributes="
$attributes
->class([
'fi-no-notification-icon',
match ($color) {
'gray' => 'text-gray-400',
default => 'fi-color-custom text-custom-400',
},
is_string($color) ? 'fi-color-' . $color : null,
match ($size) {
IconSize::Small, 'sm' => 'h-4 w-4',
IconSize::Medium, 'md' => 'h-5 w-5',
IconSize::Large, 'lg' => 'h-6 w-6',
default => $size,
},
])
->style([
\Filament\Support\get_color_css_variables(
$color,
shades: [400],
alias: 'notifications::notification.icon',
),
])
"
/>