优化搜索ui
This commit is contained in:
parent
bb2bc90c49
commit
7c6e1f1d6b
@ -69,11 +69,11 @@
|
|||||||
@media screen and (max-width: 700px) {
|
@media screen and (max-width: 700px) {
|
||||||
.el-dialog {
|
.el-dialog {
|
||||||
--el-dialog-width: 100% !important;
|
--el-dialog-width: 100% !important;
|
||||||
--el-dialog-margin-top: 0 !important;
|
// --el-dialog-margin-top: 0 !important;
|
||||||
}
|
|
||||||
.el-dialog:not(.is-fullscreen) {
|
|
||||||
margin-top: 0 !important;
|
|
||||||
}
|
}
|
||||||
|
// .el-dialog:not(.is-fullscreen) {
|
||||||
|
// margin-top: 0 !important;
|
||||||
|
// }
|
||||||
.el-drawer {
|
.el-drawer {
|
||||||
width: 85% !important;
|
width: 85% !important;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,9 +1,9 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="header-search">
|
<div class="header-search">
|
||||||
<svg-icon class-name="search-icon" name="search" @click.stop="click" />
|
<svg-icon class-name="search-icon" name="search" @click.stop="click" />
|
||||||
<el-dialog title="搜索" v-model="open" append-to-body width="500" @close="close" draggable="">
|
<el-dialog v-model="open" width="500" @close="close">
|
||||||
<el-select
|
<el-select
|
||||||
style="width: 95%"
|
style="width: 100%"
|
||||||
ref="headerSearchSelectRef"
|
ref="headerSearchSelectRef"
|
||||||
size="large"
|
size="large"
|
||||||
v-model="search"
|
v-model="search"
|
||||||
@ -11,7 +11,8 @@
|
|||||||
filterable
|
filterable
|
||||||
default-first-option
|
default-first-option
|
||||||
remote
|
remote
|
||||||
placeholder="搜索,支持标题、URL模糊查询"
|
class="header_search_select"
|
||||||
|
placeholder="菜单搜索,支持标题、URL模糊查询"
|
||||||
@change="change">
|
@change="change">
|
||||||
<template #prefix>
|
<template #prefix>
|
||||||
<el-icon color="#409EFC" class="no-inherit">
|
<el-icon color="#409EFC" class="no-inherit">
|
||||||
@ -161,7 +162,29 @@ watch(searchPool, (list) => {
|
|||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.header-search {
|
.header-search {
|
||||||
// font-size: 0 !important;
|
height: 100%;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
|
||||||
|
:deep(.el-dialog) {
|
||||||
|
.el-dialog__header {
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
--el-dialog-bg-color: #00000;
|
||||||
|
.el-dialog__body {
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.header_search_select {
|
||||||
|
height: 50px;
|
||||||
|
|
||||||
|
:deep(.el-input__wrapper) {
|
||||||
|
height: 50px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.search-icon {
|
.search-icon {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user