feat: 产品筛选器竖屏适配
- 切换到竖屏是产品筛选器改为两行
This commit is contained in:
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="question-category">
|
<div class="question-category">
|
||||||
<el-row :gutter="12">
|
<el-row class="hide-on-mobile" :gutter="12">
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<span class="select-label">产品分类</span>
|
<span class="select-label">产品分类</span>
|
||||||
<el-select
|
<el-select
|
||||||
@ -43,6 +43,48 @@
|
|||||||
/>
|
/>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
<el-row class="display-on-mobile" :gutter="12">
|
||||||
|
<el-col :span="12">
|
||||||
|
<span class="select-label">产品分类</span>
|
||||||
|
<el-select
|
||||||
|
v-model="model.selectedType"
|
||||||
|
placeholder="选择产品类型"
|
||||||
|
clearable
|
||||||
|
>
|
||||||
|
<el-option
|
||||||
|
v-for="type in productTypeOptions"
|
||||||
|
:key="type.id"
|
||||||
|
:label="type.name"
|
||||||
|
:value="type.id"
|
||||||
|
/>
|
||||||
|
</el-select>
|
||||||
|
</el-col>
|
||||||
|
|
||||||
|
<el-col :span="12">
|
||||||
|
<span class="select-label">产品系列</span>
|
||||||
|
<el-select
|
||||||
|
v-model="model.selectedProduct"
|
||||||
|
placeholder="选择系列产品"
|
||||||
|
clearable
|
||||||
|
>
|
||||||
|
<el-option
|
||||||
|
v-for="product in productOptions"
|
||||||
|
:key="product.id"
|
||||||
|
:label="product.name"
|
||||||
|
:value="product.id"
|
||||||
|
/>
|
||||||
|
</el-select>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
<el-row class="display-on-mobile">
|
||||||
|
<span class="select-label">关键词</span>
|
||||||
|
<el-input
|
||||||
|
v-model="model.keyword"
|
||||||
|
placeholder="输入关键词..."
|
||||||
|
clearable
|
||||||
|
:prefix-icon="Search"
|
||||||
|
/>
|
||||||
|
</el-row>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -82,4 +124,18 @@
|
|||||||
height: 40px;
|
height: 40px;
|
||||||
font-size: 0.9rem;
|
font-size: 0.9rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.display-on-mobile {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 768px) {
|
||||||
|
.hide-on-mobile {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
.display-on-mobile {
|
||||||
|
display: flex;
|
||||||
|
margin-bottom: 1rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user