mirror of
https://gitee.com/dromara/go-view.git
synced 2026-04-23 00:00:12 +08:00
perf: 优化散点图,新增数据mock
This commit is contained in:
+4
-1
@@ -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
|
||||
|
||||
+7
-2
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user