fix: bug#10921
This commit is contained in:
parent
7474254a45
commit
eb21e64cc1
|
@ -48,7 +48,7 @@ const label: Record<number, any> = {
|
|||
|
||||
const emit = defineEmits<Emit>()
|
||||
|
||||
const myValue = ref<ValueType>(props.value)
|
||||
const myValue = ref<ValueType>(props.value || [undefined, undefined] as any)
|
||||
const mySource = ref<string>(props.source)
|
||||
|
||||
const onSelect = (v: any, _label: string, index: number) => {
|
||||
|
|
|
@ -100,7 +100,7 @@ type Emit = {
|
|||
}
|
||||
|
||||
const props = defineProps({
|
||||
...defaultSetting
|
||||
...defaultSetting,
|
||||
})
|
||||
|
||||
const emit = defineEmits<Emit>()
|
||||
|
|
|
@ -14,7 +14,7 @@ export type TabsOption = {
|
|||
key: string;
|
||||
component: string
|
||||
}
|
||||
type ValueArrayType = [string, number]
|
||||
type ValueArrayType = [string, number, undefined]
|
||||
export type ValueType = string | number | undefined | ValueArrayType
|
||||
|
||||
export const defaultSetting = {
|
||||
|
|
|
@ -133,7 +133,7 @@ const props = defineProps({
|
|||
type: '',
|
||||
termType: 'eq',
|
||||
value: {
|
||||
source: 'fixed',
|
||||
source: 'manual',
|
||||
value: undefined
|
||||
}
|
||||
})
|
||||
|
@ -223,7 +223,13 @@ const showDouble = computed(() => {
|
|||
metricOption.value = []
|
||||
}
|
||||
|
||||
return isRange && !isMetric.value && !isSourceMetric
|
||||
if (isRange) {
|
||||
if (isMetric.value) {
|
||||
return !isSourceMetric
|
||||
}
|
||||
return true
|
||||
}
|
||||
return false
|
||||
})
|
||||
|
||||
const mouseover = () => {
|
||||
|
@ -298,7 +304,7 @@ const termAdd = () => {
|
|||
const terms = {
|
||||
column: undefined,
|
||||
value: {
|
||||
source: 'fixed',
|
||||
source: 'manual',
|
||||
value: undefined
|
||||
},
|
||||
termType: undefined,
|
||||
|
|
|
@ -97,7 +97,7 @@ const addWhen = () => {
|
|||
{
|
||||
column: undefined,
|
||||
value: {
|
||||
source: 'fixed',
|
||||
source: 'manual',
|
||||
value: undefined
|
||||
},
|
||||
termType: undefined,
|
||||
|
|
Loading…
Reference in New Issue