mirror of
https://github.com/filamentphp/filament.git
synced 2026-09-24 15:42:09 +08:00
Merge pull request #17750 from filamentphp/fix/sharing-deferred-table-filters-to-widgets
fix: Sharing deferred table filters to widgets
This commit is contained in:
Vendored
+1
-1
File diff suppressed because one or more lines are too long
@@ -75,7 +75,10 @@ trait InteractsWithPageTable /** @phpstan-ignore trait.unused */
|
||||
|
||||
/** @var HasTable $tableComponent */
|
||||
$page = app('livewire')->new($this->getTablePage());
|
||||
trigger('mount', $page, [
|
||||
|
||||
trigger('mount', $page, [], null, null);
|
||||
|
||||
foreach ([
|
||||
'activeTab' => $this->activeTab,
|
||||
'paginators' => $this->paginators,
|
||||
'parentRecord' => $this->parentRecord,
|
||||
@@ -86,7 +89,11 @@ trait InteractsWithPageTable /** @phpstan-ignore trait.unused */
|
||||
'tableSearch' => $this->tableSearch,
|
||||
'tableSort' => $this->tableSort,
|
||||
...$this->getTablePageMountParameters(),
|
||||
], null, null);
|
||||
] as $property => $value) {
|
||||
$page->{$property} = $value;
|
||||
}
|
||||
|
||||
$page->bootedInteractsWithTable();
|
||||
|
||||
return $this->tablePage = $page;
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
@apply relative block rounded-xl bg-white p-6 shadow-sm ring-1 ring-gray-950/5 dark:bg-gray-900 dark:ring-white/10;
|
||||
|
||||
& .fi-icon {
|
||||
@apply text-gray-400 dark:text-gray-500;
|
||||
@apply shrink-0 text-gray-400 dark:text-gray-500;
|
||||
}
|
||||
|
||||
& .fi-wi-stats-overview-stat-content {
|
||||
|
||||
Reference in New Issue
Block a user