feat: set default value for showSymbol in the line graph (#258)

This commit is contained in:
Fine0830
2023-04-14 10:35:30 +08:00
committed by GitHub
parent 3f178f89f8
commit ce585d6e08
3 changed files with 6 additions and 5 deletions

View File

@@ -30,6 +30,7 @@ limitations under the License. -->
import type { LineConfig, EventParams, RelatedTrace, Filters } from "@/types/dashboard";
import Legend from "./components/Legend.vue";
import useLegendProcess from "@/hooks/useLegendProcessor";
import { isDef } from "@/utils/is";
/*global defineProps, defineEmits */
const emits = defineEmits(["click"]);
@@ -72,9 +73,8 @@ limitations under the License. -->
data: props.data[i].map((item: any, itemIndex: number) => [props.intervalTime[itemIndex], item]),
name: i,
type: "line",
symbol: "circle",
symbolSize: 8,
showSymbol: props.config.showSymbol,
symbolSize: 5,
showSymbol: isDef(props.config.showSymbol) ? props.config.showSymbol : true,
step: props.config.step,
smooth: props.config.smooth,
lineStyle: {