Skip to content

Commit 97dc7c7

Browse files
authored
Merge pull request #5 from devforth/addClickExpose
fix: add click expose
2 parents 8bad701 + b326b52 commit 97dc7c7

File tree

3 files changed

+8279
-1432
lines changed

3 files changed

+8279
-1432
lines changed

custom/VisionAction.vue

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<div class="flex items-end justify-start gap-2 cursor-pointer" @click="openDialog">
2+
<div class="flex items-end justify-start gap-2 cursor-pointer">
33
<div class="flex items-center justify-center text-white bg-gradient-to-r h-[18px] from-purple-500 via-purple-600 to-purple-700 hover:bg-gradient-to-br focus:ring-4 focus:outline-none focus:ring-purple-300 dark:focus:ring-purple-800 font-medium rounded-md text-sm px-1 text-center">
44
AI
55
</div>
@@ -78,6 +78,10 @@ const props = defineProps<{
7878
}
7979
}>();
8080
81+
defineExpose({
82+
click
83+
});
84+
8185
const confirmDialog = ref(null);
8286
const records = ref<any[]>([]);
8387
const images = ref<any[]>([]);
@@ -745,4 +749,8 @@ async function findPreviewURLForImages() {
745749
}
746750
}
747751
752+
function click() {
753+
openDialog();
754+
}
755+
748756
</script>

0 commit comments

Comments
 (0)