mirror of
https://github.com/hpware/news-analyze.git
synced 2025-06-24 00:01:03 +08:00
- Updated DraggableWindow.vue to improve shadow effects. - Refactored AboutWindow.vue for better structure and readability. - Added chatbot functionality in chatbot.vue with cookie management. - Improved navigation component for better code clarity. - Created a new chat history table in the database schema. - Modified error handling in error.vue to display error messages correctly. - Integrated ChatbotWindow into the desktop application layout. - Implemented accordion component in home.vue for Q/A section. - Enhanced API for chat functionality with improved error handling. - Removed unused routes for cleaner codebase. - Added custom animations for accordion components in tailwind.config.js. - Developed accordion UI components (Accordion, AccordionContent, AccordionItem, AccordionTrigger) for better user interaction.
27 lines
689 B
Vue
27 lines
689 B
Vue
<script setup lang="ts">
|
|
import { cn } from "@/lib/utils";
|
|
import { AccordionContent, type AccordionContentProps } from "reka-ui";
|
|
import { computed, type HTMLAttributes } from "vue";
|
|
|
|
const props = defineProps<
|
|
AccordionContentProps & { class?: HTMLAttributes["class"] }
|
|
>();
|
|
|
|
const delegatedProps = computed(() => {
|
|
const { class: _, ...delegated } = props;
|
|
|
|
return delegated;
|
|
});
|
|
</script>
|
|
|
|
<template>
|
|
<AccordionContent
|
|
v-bind="delegatedProps"
|
|
class="overflow-hidden text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down"
|
|
>
|
|
<div :class="cn('pb-4 pt-0', props.class)">
|
|
<slot />
|
|
</div>
|
|
</AccordionContent>
|
|
</template>
|