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