Skip to content

Commit

Permalink
为产品库存资源编辑操作添加图标
Browse files Browse the repository at this point in the history
在ProductStockResource中的编辑操作上添加了一个图标。这个改动是为了提升用户界面的一致性和直观性,通过使用FilamentIcon facade来引用一个通用的编辑图标。
  • Loading branch information
liushoukun committed Oct 9, 2024
1 parent 8c3842d commit 2ba050e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Clusters/Product/Resources/ProductStockResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
use Filament\Infolists\Infolist;
use Filament\Notifications\Notification;
use Filament\Resources\Resource;
use Filament\Support\Facades\FilamentIcon;
use Filament\Tables;
use Filament\Tables\Actions\Action;
use Filament\Tables\Table;
Expand Down Expand Up @@ -110,7 +111,7 @@ protected static function editStockAction() : Action
->label(__('red-jasmine-product::product-stock.labels.edit'))
->modalWidth('7xl')
->slideOver()
->modalAutofocus(false)
->icon(FilamentIcon::resolve('actions::edit-action') ?? 'heroicon-m-pencil-square')
->stickyModalFooter()
->form([

Expand Down

0 comments on commit 2ba050e

Please sign in to comment.