|
@@ -32,7 +32,7 @@ const emits = defineEmits(["update:modelValue", "change-metric"])
|
|
const metric = ref(props.modelValue)
|
|
const metric = ref(props.modelValue)
|
|
const changeMetric = ( newVal: string, oldVal: string) => {
|
|
const changeMetric = ( newVal: string, oldVal: string) => {
|
|
emits('update:modelValue', newVal)
|
|
emits('update:modelValue', newVal)
|
|
- emits('change-metric', oldVal, newVal)
|
|
|
|
|
|
+ emits('change-metric', newVal, oldVal)
|
|
}
|
|
}
|
|
const selectedData = computed(():MetricData|null => {
|
|
const selectedData = computed(():MetricData|null => {
|
|
const info = props.metricItems.find(item => item.value === metric.value)
|
|
const info = props.metricItems.find(item => item.value === metric.value)
|