This commit is contained in:
Viet An
2026-06-08 10:19:16 +07:00
parent 605b016a5f
commit c1fa84083f
3 changed files with 33 additions and 11 deletions

View File

@@ -59,6 +59,7 @@
name: field,
fontsize: 14,
maxHeight: '200px',
clearTrigger,
}"
@selected="choose"
/>
@@ -187,6 +188,7 @@ const pos = computed(() => {
return "is-right";
}
});
const clearTrigger = ref(0);
if (props.vdata) {
orgdata.value = props.vdata;
@@ -273,6 +275,7 @@ function doSelect(option) {
function clearValue() {
value.value = undefined;
selected.value = undefined;
clearTrigger.value++;
emit("option", null);
emit("modalevent", { name: "option", data: null });
}