Files
2024-09-01 18:54:23 +05:00

32 lines
702 B
Vue

<template>
<ResourceIndex
:field="field"
:resource-name="field.resourceName"
:via-resource="resourceName"
:via-resource-id="resourceId"
:via-relationship="field.hasManyThroughRelationship"
:relationship-type="'hasManyThrough'"
@actionExecuted="actionExecuted"
:load-cards="false"
:initialPerPage="field.perPage || 5"
:should-override-meta="false"
/>
</template>
<script>
export default {
emits: ['actionExecuted'],
props: ['resourceName', 'resourceId', 'resource', 'field'],
methods: {
/**
* Handle the actionExecuted event and pass it up the chain.
*/
actionExecuted() {
this.$emit('actionExecuted')
},
},
}
</script>