Skip to content

Commit 574de69

Browse files
authored
Merge pull request #409 from ownego/fix/filter-action-provide
Fix: wrong inject name and uses in Action List
2 parents 8346e7b + ba13e42 commit 574de69

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: src/components/ActionList/ActionList.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ const emits = defineEmits<{
8585
'action-any-item': [];
8686
}>();
8787
88-
const filterActions = useFilterActions();
88+
const { filterActions } = useFilterActions();
8989
const i18n = useI18n();
9090
9191
const searchText = ref<string>('');

Diff for: src/use/useFilterActions.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { inject } from 'vue';
22

33
export default function useFilterActions() {
4-
const context = inject('filter-actions', { filterActions: false });
4+
const context = inject('filterActions', { filterActions: false });
55
return context;
66
}

0 commit comments

Comments
 (0)