表达式语法提示
This commit is contained in:
parent
6d57007d7b
commit
e998d44266
@ -48,17 +48,8 @@ const getSystemVariables = async () =>{
|
|||||||
value: item.variableKey.replace("$",'')
|
value: item.variableKey.replace("$",'')
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
console.log("syncOptions"+syncOptions.value[0].value)
|
|
||||||
console.log("syncOptions"+syncOptions.value[0].label)
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const filteredOptions = computed(() => {
|
|
||||||
return inputValue.value
|
|
||||||
? syncOptions.value.filter(opt =>
|
|
||||||
opt.label.includes(inputValue.value) ||
|
|
||||||
opt.value.includes(inputValue.value))
|
|
||||||
: syncOptions.value
|
|
||||||
});
|
|
||||||
|
|
||||||
|
|
||||||
const typeOptions = [
|
const typeOptions = [
|
||||||
|
@ -30,7 +30,7 @@ const props = defineProps({
|
|||||||
type: {
|
type: {
|
||||||
type: Number,
|
type: Number,
|
||||||
// required: true,
|
// required: true,
|
||||||
validator: (val: number) => [1, 2, 3].includes(val),
|
validator: (val: number) => [1, 2, 3, 4].includes(val),
|
||||||
default:4
|
default:4
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
@ -169,7 +169,7 @@ watch(visible, () => {
|
|||||||
:label="$t(item.label)"
|
:label="$t(item.label)"
|
||||||
/>
|
/>
|
||||||
</NSpace>
|
</NSpace>
|
||||||
<example-expression />
|
<example-expression :type=4 />
|
||||||
</NRadioGroup>
|
</NRadioGroup>
|
||||||
<!-- <NPopover trigger="hover"-->
|
<!-- <NPopover trigger="hover"-->
|
||||||
<!-- >-->
|
<!-- >-->
|
||||||
|
Loading…
Reference in New Issue
Block a user