| | |
| | | import type { TabsPaneContext } from 'element-plus'; |
| | | import type { PropType } from 'vue'; |
| | | import { onMounted, ref } from 'vue'; |
| | | import { ChartTypeEnum, chartTypeMapEchart, chartTypeMapName } from './types'; |
| | | import { ChartTypeEnum, chartTypeMapEchart, chartTypeMapName } from '../types'; |
| | | import type { RecordSetValues } from '/@/api/ai/chat'; |
| | | import { dateRegex } from '/@/utils/toolsValidate'; |
| | | const activeName = ref('first'); |
| | |
| | | show: true, |
| | | }, |
| | | title: { |
| | | // text: props.data.title, |
| | | text: props.data.title, |
| | | left: 'center', |
| | | |
| | | }, |
| | | xAxis: { |
| | | name: props.data?.names[0], |
| | |
| | | setTimeout(() => { |
| | | |
| | | const parent = chartRef.value.parentElement; |
| | | |
| | | if(!parent){ |
| | | } |
| | | const parentBound = parent.getBoundingClientRect(); |
| | | chartInstance = echarts.init(chartRef.value,undefined,{ |
| | | width:parentBound.width, |