mirror of
https://github.com/tencentmusic/supersonic.git
synced 2026-04-26 10:14:19 +08:00
[feature](webapp) merge query steps to one card
This commit is contained in:
@@ -12,6 +12,7 @@ import React, { useEffect, useRef, useState } from 'react';
|
||||
import moment from 'moment';
|
||||
import { ColumnType } from '../../../common/type';
|
||||
import NoPermissionChart from '../NoPermissionChart';
|
||||
import classNames from 'classnames';
|
||||
|
||||
type Props = {
|
||||
model?: string;
|
||||
@@ -201,12 +202,16 @@ const MetricTrendChart: React.FC<Props> = ({
|
||||
|
||||
const prefixCls = `${CLS_PREFIX}-metric-trend`;
|
||||
|
||||
const flowTrendChartClass = classNames(`${prefixCls}-flow-trend-chart`, {
|
||||
[`${prefixCls}-flow-trend-chart-single`]: !categoryColumnName,
|
||||
});
|
||||
|
||||
return (
|
||||
<div>
|
||||
{!metricField.authorized ? (
|
||||
<NoPermissionChart model={model || ''} onApplyAuth={onApplyAuth} />
|
||||
) : (
|
||||
<div className={`${prefixCls}-flow-trend-chart`} ref={chartRef} />
|
||||
<div className={flowTrendChartClass} ref={chartRef} />
|
||||
)}
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user