fix: replace rocket resource type dropdown

This commit is contained in:
zhx 2026-05-15 10:57:53 +08:00
parent 5bbb158f57
commit f46a95df79

View File

@ -14,7 +14,6 @@ import {
Empty,
Input,
Pagination,
Select,
Space,
Spin,
} from 'antdv-next';
@ -316,15 +315,19 @@ watch(
width="920"
@close="emit('close')"
>
<div v-if="!fixedType" class="type-filter">
<Button
v-for="item in typeOptions"
:key="item.value"
size="small"
:type="query.type === item.value ? 'primary' : 'default'"
@click="handleTypeChange(item.value)"
>
{{ item.label }}
</Button>
</div>
<Space class="toolbar" wrap>
<Select
v-if="!fixedType"
v-model:value="query.type"
:options="typeOptions"
option-label-prop="label"
style="width: 180px"
@change="handleTypeChange"
/>
<Input
v-model:value="query.keyword"
allow-clear
@ -379,6 +382,13 @@ watch(
margin-bottom: 16px;
}
.type-filter {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin-bottom: 12px;
}
.resource-grid {
display: grid;
gap: 16px;