New report system and views
This commit is contained in:
@@ -55,6 +55,7 @@ const selectedItem = computed(() =>
|
||||
function selectItem(selectedValue) {
|
||||
const newValue = selectedValue === props.modelValue ? "" : selectedValue;
|
||||
emit("update:modelValue", newValue);
|
||||
console.log(selectedValue);
|
||||
open.value = false;
|
||||
}
|
||||
</script>
|
||||
@@ -83,7 +84,11 @@ function selectItem(selectedValue) {
|
||||
v-for="item in items"
|
||||
:key="item.value"
|
||||
:value="item.value"
|
||||
@select="selectItem"
|
||||
@select="
|
||||
(ev) => {
|
||||
selectItem(ev.detail.value);
|
||||
}
|
||||
"
|
||||
>
|
||||
{{ item.label }}
|
||||
<CheckIcon
|
||||
|
||||
Reference in New Issue
Block a user