[增添]添加了datasource的setting数据库以及默认值
This commit is contained in:
10
vendor/filament/infolists/stubs/Entry.stub
vendored
Normal file
10
vendor/filament/infolists/stubs/Entry.stub
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
namespace {{ namespace }};
|
||||
|
||||
use Filament\Infolists\Components\Entry;
|
||||
|
||||
class {{ class }} extends Entry
|
||||
{
|
||||
protected string $view = '{{ view }}';
|
||||
}
|
||||
5
vendor/filament/infolists/stubs/EntryView.stub
vendored
Normal file
5
vendor/filament/infolists/stubs/EntryView.stub
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<x-dynamic-component :component="$getEntryWrapperView()" :entry="$entry">
|
||||
<div>
|
||||
{{ $getState() }}
|
||||
</div>
|
||||
</x-dynamic-component>
|
||||
15
vendor/filament/infolists/stubs/LayoutComponent.stub
vendored
Normal file
15
vendor/filament/infolists/stubs/LayoutComponent.stub
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
namespace {{ namespace }};
|
||||
|
||||
use Filament\Infolists\Components\Component;
|
||||
|
||||
class {{ class }} extends Component
|
||||
{
|
||||
protected string $view = '{{ view }}';
|
||||
|
||||
public static function make(): static
|
||||
{
|
||||
return app(static::class);
|
||||
}
|
||||
}
|
||||
3
vendor/filament/infolists/stubs/LayoutComponentView.stub
vendored
Normal file
3
vendor/filament/infolists/stubs/LayoutComponentView.stub
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<div {{ $attributes }}>
|
||||
{{ $getChildComponentContainer() }}
|
||||
</div>
|
||||
Reference in New Issue
Block a user