mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 04:20:49 +08:00
unify sub category sort
This commit is contained in:
@@ -78,8 +78,8 @@ class CategoryResource extends Resource
|
||||
,
|
||||
Forms\Components\TextInput::make('sort_index')
|
||||
->default(0)
|
||||
->label(__('label.search_box.taxonomy.sort_index'))
|
||||
->helperText(__('label.search_box.taxonomy.sort_index_help'))
|
||||
->label(__('label.priority'))
|
||||
->helperText(__('label.priority_help'))
|
||||
,
|
||||
|
||||
]);
|
||||
@@ -97,7 +97,7 @@ class CategoryResource extends Resource
|
||||
Tables\Columns\TextColumn::make('class_name')->label(__('label.search_box.taxonomy.class_name')),
|
||||
Tables\Columns\TextColumn::make('sort_index')->label(__('label.search_box.taxonomy.sort_index'))->sortable(),
|
||||
])
|
||||
->defaultSort('sort_index', 'asc')
|
||||
->defaultSort('sort_index', 'desc')
|
||||
->filters([
|
||||
Tables\Filters\SelectFilter::make('mode')
|
||||
->options(SearchBox::query()->pluck('name', 'id')->toArray())
|
||||
|
||||
Reference in New Issue
Block a user