fix list height
This commit is contained in:
@@ -1,5 +1,11 @@
|
|||||||
<template>
|
<template>
|
||||||
<t-popup v-model="popupVisible" placement="right" destroy-on-close>
|
<t-popup
|
||||||
|
v-model="popupVisible"
|
||||||
|
placement="right"
|
||||||
|
destroy-on-close
|
||||||
|
:z-index="popupZIndex"
|
||||||
|
:overlay-props="{ zIndex: popupZIndex - 1 }"
|
||||||
|
>
|
||||||
<section class="ai-conversation-list" @scroll="handleScroll">
|
<section class="ai-conversation-list" @scroll="handleScroll">
|
||||||
<header class="header glass-white">
|
<header class="header glass-white">
|
||||||
<h3>历史会话</h3>
|
<h3>历史会话</h3>
|
||||||
@@ -98,6 +104,8 @@ const emit = defineEmits<{
|
|||||||
delete: [conversationId: string];
|
delete: [conversationId: string];
|
||||||
}>();
|
}>();
|
||||||
|
|
||||||
|
const popupZIndex = 4000;
|
||||||
|
const deleteDialogZIndex = 12000;
|
||||||
const pageSize = 20;
|
const pageSize = 20;
|
||||||
const popupVisible = computed({
|
const popupVisible = computed({
|
||||||
get() {
|
get() {
|
||||||
@@ -203,6 +211,8 @@ async function confirmDelete(conversation: GaoAiConversation): Promise<void> {
|
|||||||
content: "确定删除这段历史会话吗?删除后无法恢复。",
|
content: "确定删除这段历史会话吗?删除后无法恢复。",
|
||||||
cancelBtn: "取消",
|
cancelBtn: "取消",
|
||||||
confirmBtn: "删除",
|
confirmBtn: "删除",
|
||||||
|
zIndex: deleteDialogZIndex,
|
||||||
|
overlayProps: { zIndex: deleteDialogZIndex },
|
||||||
onCancel() {
|
onCancel() {
|
||||||
dialog.destroy();
|
dialog.destroy();
|
||||||
},
|
},
|
||||||
@@ -288,6 +298,7 @@ watch(() => props.sessionKey, async () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.items {
|
.items {
|
||||||
|
flex: 1;
|
||||||
|
|
||||||
.item {
|
.item {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user