@@ -1,6 +1,6 @@
{{-- resources/views/components/ui/search-input.blade.php --}}
@props([
-'action',
+'action' => route('library.search', [], false),
'value' => '',
'placeholder' => '搜索…',
'buttonText' => '搜索',
@@ -54,7 +54,6 @@
{{-- 搜索 --}}
<div class="sb-card" style="padding: .85rem 1.1rem; margin-bottom: 1.1rem;">
<x-ui.search-input
- :action="route('library.search')"
:placeholder="__('library.search_anthology')"
:hidden-fields="['resource_type' => 'anthology']" />
</div>
@@ -20,7 +20,6 @@
<p class="hero-subtitle">{{ __('library.portal_hero_subtitle') }}</p>
<div class="search-box">
:placeholder="__('library.search_placeholder_home')"
size="lg" />
@@ -14,7 +14,6 @@
{{-- 搜索框 --}}
<div class="wiki-search-bar-wrap">
:value="$query"
:placeholder="__('library.search_placeholder')"
:autofocus="true"
@@ -72,7 +72,6 @@
<div>
:value="request('q')"
:placeholder="__('library.search_tipitaka')"
:hidden-fields="['resource_type' => 'tipitaka']" />
size="lg"
/>
@@ -26,7 +26,6 @@
<div class="wiki-home-search">
:placeholder="__('library.wiki_search_placeholder')"
@@ -7,7 +7,6 @@
{{-- 搜索框组件 --}}
<div class="wiki-search-wrapper">