Megghy 1ea4404307 feat: 重构弹幕组件和工具以改进结构和性能
- 更新 `useWebFetcher.ts`:将事件监听器从 `onEvent` 更改为 `on`,并修改了断开连接处理逻辑,增加了 30 秒后自动重连的功能。
- 增强 `MessageRender.vue`:为 `paidMessages` 使用 v-model,并将生命周期钩子更新为 `beforeUnmount`。
- 引入新组件 `ClientDanmakuItem.vue`:用于渲染具有卡片和文本样式的弹幕条目。
- 创建 `BaseDanmakuItem.vue`:封装弹幕条目的通用逻辑,包括表情符号解析和显示逻辑。
- 添加 `CardStyleDanmakuItem.vue` 和 `TextStyleDanmakuItem.vue`:用于实现不同显示样式的弹幕消息。
- 开发 `danmakuUtils.ts`:提供用于弹幕条目属性和样式的工具函数。
- 改进弹幕组件的 CSS 样式:确保外观统一和响应式布局。
2025-04-15 22:18:47 +08:00
2025-03-19 10:22:17 +08:00
2023-06-05 15:31:37 +08:00
2024-04-23 12:19:25 +08:00
2024-10-21 18:02:22 +08:00
2025-03-19 10:19:19 +08:00
2024-04-23 12:19:25 +08:00
2023-04-26 20:51:29 +08:00

vtsuru.live

Project setup

yarn install

Compiles and hot-reloads for development

yarn serve

Compiles and minifies for production

yarn build

Lints and fixes files

yarn lint

Customize configuration

See Configuration Reference.

Description
No description provided
Readme 15 MiB
Languages
Vue 64.9%
TypeScript 18.2%
JavaScript 14.1%
CSS 2.8%