File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
adminforth/spa/src/components Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 55</template >
66
77<script setup lang="ts">
8- const props = defineProps <{ disabled? : boolean }>();
8+ const props = defineProps <{ disabled? : boolean , extra ? : any }>();
99const emit = defineEmits <{ (e : ' callAction' , extra ? : any ): void }>();
1010
1111function onClick() {
1212 if (props .disabled ) return ;
13- const extra = { someData: ' example' };
14- emit (' callAction' , extra );
13+ emit (' callAction' , props .extra );
1514}
1615 </script >
Original file line number Diff line number Diff line change 4141 </a >
4242 </component >
4343 </li >
44- <li v-for =" action in bulkActions? .filter(a => a.showInThreeDotsDropdown)" :key =" action.id" >
44+ <li v-for =" action in ( bulkActions ?? []) .filter(a => a.showInThreeDotsDropdown)" :key =" action.id" >
4545 <a href =" #" @click.prevent =" startBulkAction(action.id)"
4646 class =" block px-4 py-2 hover:text-lightThreeDotsMenuBodyTextHover hover:bg-lightThreeDotsMenuBodyBackgroundHover dark:hover:bg-darkThreeDotsMenuBodyBackgroundHover dark:hover:text-darkThreeDotsMenuBodyTextHover"
4747 :class =" {
You can’t perform that action at this time.
0 commit comments