fix: support custom fetch for detail monitor modal
support use custom fetch when click the extend icon in the monitor chart card Change-Id: Ibbe4cf0ae22fa6523f1968ab99fab972c2e9331a
This commit is contained in:
parent
a8e7670082
commit
fa829ea7c4
@ -73,6 +73,7 @@ const ChartCard = (props) => {
|
|||||||
handleDataParams,
|
handleDataParams,
|
||||||
fetchDataParams,
|
fetchDataParams,
|
||||||
isModal = false,
|
isModal = false,
|
||||||
|
fetchPrometheusFunc,
|
||||||
} = props;
|
} = props;
|
||||||
const defaultNode = {};
|
const defaultNode = {};
|
||||||
const { params: fParams = {} } = fetchDataParams;
|
const { params: fParams = {} } = fetchDataParams;
|
||||||
@ -106,6 +107,7 @@ const ChartCard = (props) => {
|
|||||||
}}
|
}}
|
||||||
visibleHeight={props.chartProps.height}
|
visibleHeight={props.chartProps.height}
|
||||||
chartConfig={{
|
chartConfig={{
|
||||||
|
fetchPrometheusFunc,
|
||||||
chartCardList: [
|
chartCardList: [
|
||||||
{
|
{
|
||||||
title,
|
title,
|
||||||
|
Loading…
Reference in New Issue
Block a user