答案 0 :(得分:4)
从 v1.1.4 开始,有一个选项始终显示。
Textarea::make('Title')->alwaysShow()
从 v1.0.19 开始,您不能。如果您查看TextareaField.vue
( nova / resources / js / components / Detail / TextareaField.vue ):
<template>
<panel-item :field="field">
<template slot="value">
<excerpt :content="field.value" />
</template>
</panel-item>
</template>
然后,如果您看看Excerpt.vue
( nova / resources / js / components / Excerpt.vue ):
<div v-if="hasContent">
<div v-if="expanded" class="markdown leading-normal" v-html="content" />
<a
@click="toggle"
class="cursor-pointer dim inline-block text-primary font-bold"
:class="{ 'mt-6': expanded }"
aria-role="button"
>
{{ showHideLabel }}
</a>
</div>
还有Vue的道具:
props: {
content: {
type: String,
},
},
data: () => ({ expanded: false }),
没有传递扩展属性的选项。