[增添]添加了datasource的setting数据库以及默认值
This commit is contained in:
37
vendor/filament/notifications/resources/views/components/icon.blade.php
vendored
Normal file
37
vendor/filament/notifications/resources/views/components/icon.blade.php
vendored
Normal 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',
|
||||
),
|
||||
])
|
||||
"
|
||||
/>
|
||||
Reference in New Issue
Block a user