Compare commits

...

3 Commits

Author SHA1 Message Date
Grapelllar
7cba35ec02
Pre Merge pull request !220 from Grapelllar/dev 2025-04-15 05:47:36 +00:00
奔跑的面条
64d4c40c07 feat: 倒计时组件支持接口轮训,修改ts定义错误的写法 2025-04-15 13:47:20 +08:00
mahengjie
a4ec445da6 fix: 解决组件组合后弹幕组件溢出问题 2023-12-29 11:27:02 +08:00
3 changed files with 10 additions and 4 deletions

View File

@ -1,5 +1,5 @@
<template>
<div>
<div ref="vChartRef">
<n-countdown
ref="countdownRef"
:duration="totalDuration"
@ -79,6 +79,8 @@ import { CreateComponentType } from '@/packages/index.d'
import { Flipper } from '@/components/Pages/Flipper'
import { OptionType } from './config'
import { CountdownInst, CountdownProps } from 'naive-ui/es/countdown/src/Countdown'
import { useChartDataFetch } from '@/hooks'
import { useChartEditStore } from '@/store/modules/chartEditStore/chartEditStore'
const props = defineProps({
chartConfig: {
@ -174,6 +176,10 @@ watch(
onMounted(() => {
updateTotalDuration()
})
const { vChartRef } = useChartDataFetch(props.chartConfig, useChartEditStore, (newData: any) => {
props.chartConfig.option.dataset = newData
})
</script>
<style lang="scss" scoped>

View File

@ -27,9 +27,9 @@ export type ConfigType = {
// 标题
title: string
// 分类
category: ChatCategoryEnum
category: string
// 分类名称
categoryName: ChatCategoryEnumName
categoryName: string
// 所属包
package: PackagesCategoryEnum
// 归类

View File

@ -187,7 +187,7 @@ onMounted(() => {
})
</script>
<style lang="scss" scoped>
<style lang="scss">
@include goId('chart-edit-layout') {
position: relative;
width: 100%;