[增添]添加了datasource的setting数据库以及默认值
This commit is contained in:
32
vendor/filament/notifications/resources/views/notifications.blade.php
vendored
Normal file
32
vendor/filament/notifications/resources/views/notifications.blade.php
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
@php
|
||||
use Filament\Support\Enums\Alignment;
|
||||
use Filament\Support\Enums\VerticalAlignment;
|
||||
@endphp
|
||||
|
||||
<div>
|
||||
<div
|
||||
@class([
|
||||
'fi-no pointer-events-none fixed inset-4 z-50 mx-auto flex gap-3',
|
||||
match (static::$alignment) {
|
||||
Alignment::Start, Alignment::Left => 'items-start',
|
||||
Alignment::Center => 'items-center',
|
||||
Alignment::End, Alignment::Right => 'items-end',
|
||||
default => null,
|
||||
},
|
||||
match (static::$verticalAlignment) {
|
||||
VerticalAlignment::Start => 'flex-col-reverse justify-end',
|
||||
VerticalAlignment::End => 'flex-col justify-end',
|
||||
VerticalAlignment::Center => 'flex-col justify-center',
|
||||
},
|
||||
])
|
||||
role="status"
|
||||
>
|
||||
@foreach ($notifications as $notification)
|
||||
{{ $notification }}
|
||||
@endforeach
|
||||
</div>
|
||||
|
||||
@if ($broadcastChannel = $this->getBroadcastChannel())
|
||||
<x-filament-notifications::echo :channel="$broadcastChannel" />
|
||||
@endif
|
||||
</div>
|
||||
Reference in New Issue
Block a user