add nova
This commit is contained in:
19
nova/resources/js/fields/Detail/MarkdownField.vue
Normal file
19
nova/resources/js/fields/Detail/MarkdownField.vue
Normal file
@@ -0,0 +1,19 @@
|
||||
<template>
|
||||
<PanelItem :index="index" :field="field">
|
||||
<template #value>
|
||||
<Excerpt :content="excerpt" :should-show="field.shouldShow" />
|
||||
</template>
|
||||
</PanelItem>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
props: ['index', 'resource', 'resourceName', 'resourceId', 'field'],
|
||||
|
||||
computed: {
|
||||
excerpt() {
|
||||
return this.field.previewFor
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user