forked from Leaf/amber-ui
移除不必要的元素
This commit is contained in:
parent
e57690d596
commit
a6bc70b6e7
@ -1,7 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div
|
<div
|
||||||
class="relative flex flex-col h-[calc(100vh-var(--header-height)*1.9)]"
|
class="relative flex flex-col h-[calc(100vh-var(--header-height)*1.9)]"
|
||||||
style="--header-height: 48px"
|
|
||||||
>
|
>
|
||||||
<div class="flex-grow mt-3 mb-1 text-5xl">
|
<div class="flex-grow mt-3 mb-1 text-5xl">
|
||||||
<n-gradient-text type="info" class="pr-3">
|
<n-gradient-text type="info" class="pr-3">
|
||||||
@ -74,8 +73,8 @@ const inputText: InputHTMLAttributes | null = ref(null);
|
|||||||
const actionContainer: any = ref(null);
|
const actionContainer: any = ref(null);
|
||||||
const isPlaceholderVisible = ref(true);
|
const isPlaceholderVisible = ref(true);
|
||||||
const triggerTimes = ref(0);
|
const triggerTimes = ref(0);
|
||||||
const showSendBtn = ref(false)
|
const showSendBtn = ref(false);
|
||||||
const content = ref("")
|
const content = ref("");
|
||||||
|
|
||||||
function updateInputHeight() {
|
function updateInputHeight() {
|
||||||
if (!inputText?.value || !inputContainer.value || !actionContainer.value) {
|
if (!inputText?.value || !inputContainer.value || !actionContainer.value) {
|
||||||
@ -121,7 +120,7 @@ function updateInputHeight() {
|
|||||||
action.classList.add("pt-4");
|
action.classList.add("pt-4");
|
||||||
action.classList.add("pb-0");
|
action.classList.add("pb-0");
|
||||||
action.classList.add("mt-2");
|
action.classList.add("mt-2");
|
||||||
showSendBtn.value = true
|
showSendBtn.value = true;
|
||||||
} else {
|
} else {
|
||||||
container.classList.remove("rounded-lg");
|
container.classList.remove("rounded-lg");
|
||||||
container.classList.add("rounded-full");
|
container.classList.add("rounded-full");
|
||||||
@ -134,7 +133,7 @@ function updateInputHeight() {
|
|||||||
action.classList.remove("pt-4");
|
action.classList.remove("pt-4");
|
||||||
action.classList.remove("pt-0");
|
action.classList.remove("pt-0");
|
||||||
action.classList.remove("mt-2");
|
action.classList.remove("mt-2");
|
||||||
showSendBtn.value = false
|
showSendBtn.value = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user