[增添]添加了datasource的setting数据库以及默认值
This commit is contained in:
37
vendor/filament/actions/resources/views/components/action.blade.php
vendored
Normal file
37
vendor/filament/actions/resources/views/components/action.blade.php
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
@props([
|
||||
'action',
|
||||
'dynamicComponent',
|
||||
'icon' => null,
|
||||
])
|
||||
|
||||
@php
|
||||
$isDisabled = $action->isDisabled();
|
||||
$url = $action->getUrl();
|
||||
@endphp
|
||||
|
||||
<x-dynamic-component
|
||||
:color="$action->getColor()"
|
||||
:component="$dynamicComponent"
|
||||
:disabled="$isDisabled"
|
||||
:form="$action->getFormToSubmit()"
|
||||
:form-id="$action->getFormId()"
|
||||
:href="$isDisabled ? null : $url"
|
||||
:icon="$icon ?? $action->getIcon()"
|
||||
:icon-size="$action->getIconSize()"
|
||||
:key-bindings="$action->getKeyBindings()"
|
||||
:label-sr-only="$action->isLabelHidden()"
|
||||
:tag="$url ? 'a' : 'button'"
|
||||
:target="($url && $action->shouldOpenUrlInNewTab()) ? '_blank' : null"
|
||||
:tooltip="$action->getTooltip()"
|
||||
:type="$action->canSubmitForm() ? 'submit' : 'button'"
|
||||
:wire:click="$action->getLivewireClickHandler()"
|
||||
:wire:target="$action->getLivewireTarget()"
|
||||
:x-on:click="$action->getAlpineClickHandler()"
|
||||
:attributes="
|
||||
\Filament\Support\prepare_inherited_attributes($attributes)
|
||||
->merge($action->getExtraAttributes(), escape: false)
|
||||
->class(['fi-ac-action'])
|
||||
"
|
||||
>
|
||||
{{ $slot }}
|
||||
</x-dynamic-component>
|
||||
Reference in New Issue
Block a user