fix: modify search modal height

This commit is contained in:
chansee97 2024-05-06 10:38:25 +08:00
parent 1387db71bc
commit 8ae6acd62d
2 changed files with 4 additions and 4 deletions

2
.env
View File

@ -5,7 +5,7 @@ VITE_APP_NAME=Nova - Admin
# 路由模式 # 路由模式
VITE_ROUTE_MODE = web VITE_ROUTE_MODE = web
# 权限路由模式: static dynamic # 权限路由模式: static dynamic
VITE_AUTH_ROUTE_MODE=static VITE_AUTH_ROUTE_MODE=dynamic
# 设置登陆后跳转地址 # 设置登陆后跳转地址
VITE_HOME_PATH = /dashboard/workbench VITE_HOME_PATH = /dashboard/workbench

View File

@ -134,7 +134,7 @@ function handleEnter() {
</CommonWrapper> </CommonWrapper>
<n-modal <n-modal
v-model:show="showModal" v-model:show="showModal"
class="w-560px fixed top-100px inset-x-0" class="w-560px fixed top-60px inset-x-0"
size="small" size="small"
preset="card" preset="card"
:segmented="{ :segmented="{
@ -153,7 +153,7 @@ function handleEnter() {
</template> </template>
</n-input> </n-input>
</template> </template>
<n-scrollbar ref="scrollbarRef" class="h-600px"> <n-scrollbar ref="scrollbarRef" class="h-450px">
<ul <ul
v-if="options.length" v-if="options.length"
class="flex flex-col gap-8px p-1 p-r-3" class="flex flex-col gap-8px p-1 p-r-3"
@ -175,7 +175,7 @@ function handleEnter() {
</n-el> </n-el>
</ul> </ul>
<n-empty v-else size="large" class="h-600px flex-center" /> <n-empty v-else size="large" class="h-450px flex-center" />
</n-scrollbar> </n-scrollbar>
<template #footer> <template #footer>