add nova
This commit is contained in:
27
nova/resources/js/fields/Detail/RelationshipPanel.vue
Normal file
27
nova/resources/js/fields/Detail/RelationshipPanel.vue
Normal file
@@ -0,0 +1,27 @@
|
||||
<template>
|
||||
<div>
|
||||
<component
|
||||
:key="`${field.attribute}:${resourceId}`"
|
||||
:is="`detail-${field.component}`"
|
||||
:resource-name="resourceName"
|
||||
:resource-id="resourceId"
|
||||
:resource="resource"
|
||||
:field="field"
|
||||
@actionExecuted="actionExecuted"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { BehavesAsPanel } from '@/mixins'
|
||||
|
||||
export default {
|
||||
mixins: [BehavesAsPanel],
|
||||
|
||||
computed: {
|
||||
field() {
|
||||
return this.panel.fields[0]
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user