Skip to content

Commit d84a4b9

Browse files
committed
fix: add exposeAction as click
1 parent 5642aba commit d84a4b9

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

custom/ExportCsv.vue

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ const filtersStore = useFiltersStore();
1919
const coreStore = useCoreStore();
2020
const inProgress = ref(false);
2121
22+
defineExpose({
23+
click,
24+
});
25+
2226
const props = defineProps({
2327
meta: Object,
2428
record: Object,
@@ -77,4 +81,8 @@ async function exportCsv() {
7781
adminforth.list.closeThreeDotsDropdown();
7882
}
7983
}
84+
85+
function click() {
86+
exportCsv();
87+
}
8088
</script>

custom/ImportCsv.vue

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ import { useI18n } from 'vue-i18n';
5555
5656
5757
const { t } = useI18n();
58+
defineExpose({
59+
click,
60+
});
5861
5962
const importProgress: Ref<boolean> = ref(false);
6063
const checkProgress: Ref<boolean> = ref(false);
@@ -217,4 +220,8 @@ function handleImportClick() {
217220
importCsv();
218221
}
219222
}
223+
224+
function click() {
225+
importCsv();
226+
}
220227
</script>

0 commit comments

Comments
 (0)