mirror of
https://gitee.com/dromara/go-view.git
synced 2026-07-24 23:55:36 +08:00
Compare commits
3 Commits
d416611056
...
7cba35ec02
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7cba35ec02 | ||
|
|
64d4c40c07 | ||
|
|
a4ec445da6 |
@ -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>
|
||||
|
||||
4
src/packages/index.d.ts
vendored
4
src/packages/index.d.ts
vendored
@ -27,9 +27,9 @@ export type ConfigType = {
|
||||
// 标题
|
||||
title: string
|
||||
// 分类
|
||||
category: ChatCategoryEnum
|
||||
category: string
|
||||
// 分类名称
|
||||
categoryName: ChatCategoryEnumName
|
||||
categoryName: string
|
||||
// 所属包
|
||||
package: PackagesCategoryEnum
|
||||
// 归类
|
||||
|
||||
@ -187,7 +187,7 @@ onMounted(() => {
|
||||
})
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
<style lang="scss">
|
||||
@include goId('chart-edit-layout') {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user