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);
|