表达式语法提示

This commit is contained in:
zhuangdashia 2025-06-29 22:48:22 +08:00
parent 6d57007d7b
commit e998d44266
3 changed files with 2 additions and 11 deletions

View File

@ -48,17 +48,8 @@ const getSystemVariables = async () =>{
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 = [

View File

@ -30,7 +30,7 @@ const props = defineProps({
type: {
type: Number,
// required: true,
validator: (val: number) => [1, 2, 3].includes(val),
validator: (val: number) => [1, 2, 3, 4].includes(val),
default:4
}
})

View File

@ -169,7 +169,7 @@ watch(visible, () => {
:label="$t(item.label)"
/>
</NSpace>
<example-expression />
<example-expression :type=4 />
</NRadioGroup>
<!-- <NPopover trigger="hover"-->
<!-- >-->