From c1fa84083f3db6cbaa0da00bfdc82d4815fcffc6 Mon Sep 17 00:00:00 2001 From: Viet An Date: Mon, 8 Jun 2026 10:19:16 +0700 Subject: [PATCH] changes --- app/components/Modal.vue | 31 +++++++++++++++++--------- app/components/SearchBox.vue | 3 +++ app/components/datatable/ScrollBox.vue | 10 ++++++++- 3 files changed, 33 insertions(+), 11 deletions(-) diff --git a/app/components/Modal.vue b/app/components/Modal.vue index 2fc3d20..00f7b3e 100644 --- a/app/components/Modal.vue +++ b/app/components/Modal.vue @@ -14,7 +14,7 @@ @@ -56,8 +67,8 @@ const { $store } = useNuxtApp(); const props = defineProps({ component: String, - width: String, - height: String, + width: { type: String, default: "60%" }, + height: { type: String, default: "750px" }, vbind: Object, title: String, }); diff --git a/app/components/SearchBox.vue b/app/components/SearchBox.vue index afca68b..012db5f 100644 --- a/app/components/SearchBox.vue +++ b/app/components/SearchBox.vue @@ -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 }); } diff --git a/app/components/datatable/ScrollBox.vue b/app/components/datatable/ScrollBox.vue index c6a9339..25e0535 100644 --- a/app/components/datatable/ScrollBox.vue +++ b/app/components/datatable/ScrollBox.vue @@ -17,7 +17,7 @@ {{ $stripHtml(v[name] || v.fullname || v.code || "n/a", 75) }} props.clearTrigger, + () => { + checked.value = {}; + }, +); + function getdata() { currentPage.value = 1; array.value = $copy(props.data);