页面优化,功能修复

This commit is contained in:
jiangdong.cheng
2026-02-12 13:06:12 +08:00
parent d35c397e8d
commit 67cd9501de
24 changed files with 975 additions and 242 deletions

View File

@@ -0,0 +1,29 @@
@props([
'title' => '',
'moreUrl' => null,
'moreText' => '查看全部',
'items' => [],
'itemUrl' => '#',
'itemTitle' => null,
'itemMeta' => null,
'emptyText' => '暂无数据',
])
<section class="channel-panel">
<header class="channel-panel-head">
<h3 class="channel-panel-title">{{ $title }}</h3>
@if($moreUrl)
<a class="tiny-link" href="{{ $moreUrl }}">{{ $moreText }}</a>
@endif
</header>
@forelse($items as $item)
<article class="side-list-item">
<a href="{{ value($itemUrl, $item) }}">{{ value($itemTitle, $item) }}</a>
<small>{{ value($itemMeta, $item) }}</small>
</article>
@empty
<p class="text-muted-soft small mb-0">{{ $emptyText }}</p>
@endforelse
</section>