mirror of
https://github.com/XiaoDaiGua-Ray/ray-template.git
synced 2025-04-24 18:37:27 +08:00
微调细节
This commit is contained in:
parent
6e91374040
commit
5f3dd4332d
@ -1,10 +1,17 @@
|
|||||||
|
$globalSearchWidth: 650px;
|
||||||
|
|
||||||
.global-seach {
|
.global-seach {
|
||||||
|
position: fixed;
|
||||||
|
width: $globalSearchWidth;
|
||||||
|
left: 50%;
|
||||||
|
margin-left: -$globalSearchWidth / 2;
|
||||||
|
top: 60px;
|
||||||
|
|
||||||
& .global-seach__wrapper {
|
& .global-seach__wrapper {
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
|
||||||
& .global-seach__card {
|
& .global-seach__card {
|
||||||
width: 650px;
|
width: $globalSearchWidth;
|
||||||
height: 600px;
|
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
padding: 12px;
|
padding: 12px;
|
||||||
|
|
||||||
@ -17,7 +24,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
& .global-seach__card-content {
|
& .global-seach__card-content {
|
||||||
height: calc(100% - 98px);
|
height: auto;
|
||||||
|
max-height: calc(100% - 98px);
|
||||||
|
|
||||||
& .content-item {
|
& .content-item {
|
||||||
padding: 12px;
|
padding: 12px;
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
import './index.scss'
|
import './index.scss'
|
||||||
|
|
||||||
import { NInput, NModal, NScrollbar, NSpace } from 'naive-ui'
|
import { NInput, NModal, NResult, NScrollbar, NSpace } from 'naive-ui'
|
||||||
import RayIcon from '@/components/RayIcon/index'
|
import RayIcon from '@/components/RayIcon/index'
|
||||||
|
|
||||||
import { on, off } from '@/utils/element'
|
import { on, off } from '@/utils/element'
|
||||||
@ -146,6 +146,7 @@ const GlobalSeach = defineComponent({
|
|||||||
<NInput
|
<NInput
|
||||||
size="large"
|
size="large"
|
||||||
v-model:value={this.searchValue}
|
v-model:value={this.searchValue}
|
||||||
|
clearable
|
||||||
onInput={this.handleSearchMenuOptions.bind(this)}
|
onInput={this.handleSearchMenuOptions.bind(this)}
|
||||||
>
|
>
|
||||||
{{
|
{{
|
||||||
@ -154,6 +155,7 @@ const GlobalSeach = defineComponent({
|
|||||||
</NInput>
|
</NInput>
|
||||||
</div>
|
</div>
|
||||||
<NScrollbar class="global-seach__card-content">
|
<NScrollbar class="global-seach__card-content">
|
||||||
|
{this.searchOptions.length ? (
|
||||||
<NSpace vertical wrapItem={false} size={[8, 8]}>
|
<NSpace vertical wrapItem={false} size={[8, 8]}>
|
||||||
{this.searchOptions.map((curr) => (
|
{this.searchOptions.map((curr) => (
|
||||||
<NSpace
|
<NSpace
|
||||||
@ -175,6 +177,13 @@ const GlobalSeach = defineComponent({
|
|||||||
</NSpace>
|
</NSpace>
|
||||||
))}
|
))}
|
||||||
</NSpace>
|
</NSpace>
|
||||||
|
) : (
|
||||||
|
<NResult size="large" description="暂无搜索结果">
|
||||||
|
{{
|
||||||
|
icon: () => '',
|
||||||
|
}}
|
||||||
|
</NResult>
|
||||||
|
)}
|
||||||
</NScrollbar>
|
</NScrollbar>
|
||||||
<div class="global-seach__card-footer">
|
<div class="global-seach__card-footer">
|
||||||
<NSpace
|
<NSpace
|
||||||
|
@ -39,7 +39,9 @@ const ThemeSwitch = defineComponent({
|
|||||||
? {
|
? {
|
||||||
backgroundColor: '#000000',
|
backgroundColor: '#000000',
|
||||||
}
|
}
|
||||||
: {}
|
: {
|
||||||
|
color: '#000000',
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
@ -53,14 +53,9 @@ const SettingDrawer = defineComponent({
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
const handleRailStyle = () => ({
|
|
||||||
backgroundColor: '#000000',
|
|
||||||
})
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
modelShow,
|
modelShow,
|
||||||
t,
|
t,
|
||||||
handleRailStyle,
|
|
||||||
changePrimaryColor,
|
changePrimaryColor,
|
||||||
themeValue,
|
themeValue,
|
||||||
primaryColorOverride,
|
primaryColorOverride,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user