44 v-if =" !loading"
55 v-for =" c in coreStore?.resourceOptions?.pageInjections?.show?.beforeBreadcrumbs || []"
66 :is =" getCustomComponent(c)"
7- :meta =" c .meta"
7+ :meta =" (c as AdminForthComponentDeclarationFull) .meta"
88 :record =" coreStore.record"
99 :resource =" coreStore.resource"
1010 :adminUser =" coreStore.adminUser"
1111 />
1212 <BreadcrumbsWithButtons >
13- <template v-if =" coreStore .resource ?.options ?.actions " >
13+ <template v-if =" coreStore .resource ?.options ?.bulkActions " >
1414 <button
15- v-for =" action in coreStore.resource.options.actions .filter(a => a.showIn?.showButton)"
15+ v-for =" action in coreStore.resource.options.bulkActions .filter(a => a.showIn?.showButton)"
1616 :key =" action.id"
1717 @click =" startCustomAction(action.id)"
1818 :disabled =" actionLoadingStates[action.id]"
4949 </button >
5050
5151 <ThreeDotsMenu
52- :threeDotsDropdownItems =" coreStore.resourceOptions?.pageInjections?.show?.threeDotsDropdownItems"
53- :customActions =" customActions"
52+ :threeDotsDropdownItems =" Array.isArray(coreStore.resourceOptions?.pageInjections?.show?.threeDotsDropdownItems)
53+ ? coreStore.resourceOptions.pageInjections.show.threeDotsDropdownItems
54+ : coreStore.resourceOptions?.pageInjections?.show?.threeDotsDropdownItems
55+ ? [coreStore.resourceOptions.pageInjections.show.threeDotsDropdownItems]
56+ : undefined"
57+ :customActions =" customActions"
5458 ></ThreeDotsMenu >
5559 </BreadcrumbsWithButtons >
5660
5761 <component
5862 v-for =" c in coreStore?.resourceOptions?.pageInjections?.show?.afterBreadcrumbs || []"
5963 :is =" getCustomComponent(c)"
60- :meta =" c .meta"
64+ :meta =" (c as AdminForthComponentDeclarationFull) .meta"
6165 :record =" coreStore.record"
6266 :resource =" coreStore.resource"
6367 :adminUser =" coreStore.adminUser"
7882 >
7983 <div v-if =" !groups.length && allColumns.length" >
8084 <ShowTable
81- :columns =" allColumns"
8285 :resource =" coreStore.resource"
8386 :record =" coreStore.record"
87+ :columns =" allColumns as Array<{ name: string; label?: string; components?: any }>"
8488 />
8589 </div >
8690 <template v-else >
9599 </template >
96100 <template v-if =" otherColumns .length > 0 " >
97101 <ShowTable
98- :columns =" otherColumns"
99102 groupName =" Other Fields"
100103 :resource =" coreStore.resource"
101104 :record =" coreStore.record"
105+ :columns =" otherColumns as Array<{ name: string; label?: string; components?: any }>"
102106 />
103107 </template >
104108 </template >
112116 v-if =" !loading"
113117 v-for =" c in coreStore?.resourceOptions?.pageInjections?.show?.bottom || []"
114118 :is =" getCustomComponent(c)"
115- :meta =" c.meta"
116- :column =" column"
119+ :meta =" (c as AdminForthComponentDeclarationFull).meta"
117120 :record =" coreStore.record"
118121 :resource =" coreStore.resource"
119122 :adminUser =" coreStore.adminUser"
@@ -140,6 +143,7 @@ import ShowTable from '@/components/ShowTable.vue';
140143import adminforth from " @/adminforth" ;
141144import { useI18n } from ' vue-i18n' ;
142145import { getIcon } from ' @/utils' ;
146+ import { type AdminForthComponentDeclarationFull } from ' @/types/Common.js' ;
143147
144148const route = useRoute ();
145149const router = useRouter ();
0 commit comments