Последняя версия с сервера прошлого разработчика
This commit is contained in:
26
nova/resources/js/components/Index/LineField.vue
Executable file
26
nova/resources/js/components/Index/LineField.vue
Executable file
@@ -0,0 +1,26 @@
|
||||
<template>
|
||||
<div :class="`text-${field.textAlign}`">
|
||||
<template v-if="hasValue">
|
||||
<div v-if="field.asHtml" v-html="field.value"></div>
|
||||
<span v-else class="whitespace-no-wrap" :class="field.classes">{{
|
||||
field.value
|
||||
}}</span>
|
||||
</template>
|
||||
<p v-else>—</p>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
props: ['resourceName', 'field'],
|
||||
|
||||
computed: {
|
||||
/**
|
||||
* Determine if the field has a value other than null.
|
||||
*/
|
||||
hasValue() {
|
||||
return this.field.value !== null
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user