[增添]添加了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,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>