[增添]添加了datasource的setting数据库以及默认值
This commit is contained in:
+10
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
namespace {{ namespace }};
|
||||
|
||||
use Filament\Infolists\Components\Entry;
|
||||
|
||||
class {{ class }} extends Entry
|
||||
{
|
||||
protected string $view = '{{ view }}';
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
<x-dynamic-component :component="$getEntryWrapperView()" :entry="$entry">
|
||||
<div>
|
||||
{{ $getState() }}
|
||||
</div>
|
||||
</x-dynamic-component>
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
<div {{ $attributes }}>
|
||||
{{ $getChildComponentContainer() }}
|
||||
</div>
|
||||
Reference in New Issue
Block a user