perf: 优化散点图,新增数据mock

This commit is contained in:
奔跑的面条
2022-09-17 21:43:20 +08:00
parent 5c5c0b02df
commit 368ae13db6
24 changed files with 218 additions and 752 deletions
@@ -88,7 +88,7 @@ import { ChartDataMonacoEditor } from '../ChartDataMonacoEditor'
import { useFile } from '../../hooks/useFile.hooks'
import { useTargetData } from '../../../hooks/useTargetData.hook'
import isObject from 'lodash/isObject'
import { toString } from '@/utils'
import { toString, isArray } from '@/utils'
const { targetData } = useTargetData()
const props = defineProps({
@@ -182,6 +182,9 @@ watch(
} else {
source.value = '此组件无数据源'
}
if (isArray(newData)) {
dimensionsAndSource.value = null
}
},
{
immediate: true
@@ -72,7 +72,9 @@ import {
textUrl,
imageUrl,
radarUrl,
heatMapUrl
heatMapUrl,
scatterBasicUrl
} from '@/api/mock'
const { HelpOutlineIcon } = icon.ionicons5
@@ -110,7 +112,10 @@ const apiList = [
},
{
value: `【热力图】${heatMapUrl}`
}
},
{
value: `【基础散点图】${scatterBasicUrl}`
},
]
</script>